HitByNameDlgCallback Class Reference

HitByNameDlgCallback Class Reference

#include <maxapi.h>

Class Description

See also
Class Interface.

Description:
This is the callback object used with Interface::DoHitByNameDialog().
+ Inheritance diagram for HitByNameDlgCallback:

Public Member Functions

virtual ~HitByNameDlgCallback ()
 
virtual const MCHARdialogTitle ()
 
virtual const MCHARbuttonText ()
 
virtual BOOL singleSelect ()
 
virtual BOOL useFilter ()
 
virtual int filter (INode *node)
 
virtual BOOL useProc ()
 
virtual void proc (INodeTab &nodeTab)
 
virtual BOOL doCustomHilite ()
 
virtual BOOL doHilite (INode *node)
 
virtual BOOL showHiddenAndFrozen ()
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 

Constructor & Destructor Documentation

virtual ~HitByNameDlgCallback ( )
inlinevirtual
Remarks
Destructor.
2623 {}

Member Function Documentation

virtual const MCHAR* dialogTitle ( )
inlinevirtual
Remarks
Returns the title string displayed in the dialog.
Default Implementation:
{ return _M(""); }
2627 { return _M(""); }
#define _M(x)
Used to wrap string literals.
Definition: strbasic.h:67
virtual const MCHAR* buttonText ( )
inlinevirtual
Remarks
Returns the text displayed in the 'Select' or 'Pick' button.
Default Implementation:
{ return _M(""); }
2631 { return _M(""); }
#define _M(x)
Used to wrap string literals.
Definition: strbasic.h:67
virtual BOOL singleSelect ( )
inlinevirtual
Remarks
Returns TRUE if the user may only make a single selection in the list at one time; otherwise FALSE.
Default Implementation:
{ return FALSE; }
2636 { return FALSE; }
virtual BOOL useFilter ( )
inlinevirtual
Remarks
This gives the callback the opportunity to filter out items from the list. This is called before the dialog is presented. It returns TRUE if the filter() method (below) should be called; otherwise FALSE.
Default Implementation:
{ return TRUE; }
2642 { return TRUE; }
virtual int filter ( INode node)
inlinevirtual
Remarks
This method will be called if useFilter() above returned TRUE. This gives the callback the chance to filter out items from the list before they are presented to the user in the dialog. This is called once for each node that would otherwise be presented. Return nonzero to accept the item and zero to skip it.
Parameters:
INode *node

The node to check for inclusion in the list.
Returns
Nonzero to accept the item and zero to skip it.
Default Implementation:
{ return TRUE; }
2654 { return TRUE; }
virtual BOOL useProc ( )
inlinevirtual
Remarks
Normally, when the user selects OK from the dialog, the system selects all the chosen nodes in the scene. At times a developer may want to do something other than select the chosen nodes. If this method returns TRUE then the nodes in the list will not be selected, but the proc() method is called instead (see below). If this method returns FALSE, then the nodes are selected in the scene and proc() is not called.
Default Implementation:
{ return TRUE; }
2663 { return TRUE; }
virtual void proc ( INodeTab nodeTab)
inlinevirtual
Remarks
This allows the plug-in to process the nodes chosen from the dialog in any manner. For example if the developer wanted to delete the nodes chosen using this dialog, they would implement useProc() to return TRUE and this method to delete all the nodes in the table passed.
Parameters:
INodeTab &nodeTab

A table of those nodes selected by the user. See Template Class Tab.
Default Implementation:
{}
2674 {}
virtual BOOL doCustomHilite ( )
inlinevirtual
Remarks
Normally, when the dialog is entered, the nodes in the scene that are selected are highlighted in the list. If this method returns TRUE, the developer may control which items are highlighted by implementing doHilite() (see below). If this method returns FALSE the selected nodes will have their names highlighted in the list.
Default Implementation:
{ return FALSE; }
2682 { return FALSE; }
virtual BOOL doHilite ( INode node)
inlinevirtual
Remarks
This method is called for each item in the list if doCustomHilite() returns TRUE. This method returns TRUE or FALSE to control if each item is highlighted.
Parameters:
INode *node

The node to check.
Returns
TRUE to highlight the node in the list; FALSE to not highlight it.
Default Implementation:
{ return FALSE; }
2692 { return FALSE; }
virtual BOOL showHiddenAndFrozen ( )
inlinevirtual
Remarks
This defaults to returning FALSE, which means that hidden and frozen objects will not be included in the select by name dialog list. If this method is overridden to return TRUE, then hidden and frozen nodes will be sent through the user-supplied filter as in version 1.x. (Note that, apart from Unhide by Name and Unfreeze by Name, the new default behavior is likely to be correct for all uses of this class.)
Default Implementation:
{ return FALSE; }
2701 { return FALSE; }