3ds Max C++ API Reference
Loading...
Searching...
No Matches
GenModSelectionProcessor Class Reference

#include <objmode.h>

+ Inheritance diagram for GenModSelectionProcessor:

Public Member Functions

 GenModSelectionProcessor (MouseCallBack *mc, BaseObject *o, IObjParam *i)
 
- Public Member Functions inherited from SelectionProcessor
 SelectionProcessor (MouseCallBack *m, IObjParam *i)
 
virtual CoreExport int proc (HWND hwnd, int msg, int point, int flags, IPoint2 m)
 Called to handle the mouse event processing whenever a mouse event happens.
 
CoreExport void pan (IPoint2 d)
 
- Public Member Functions inherited from MouseCallBack
virtual ~MouseCallBack ()
 
virtual CoreExport int proc (HWND hwnd, int msg, int point, int flags, IPoint2 m)
 Called to handle the mouse event processing whenever a mouse event happens.
 
virtual void pan (IPoint2 offset)
 
virtual int override (int mode)
 Override the default drag mode.
 
void setMouseManager (MouseManager *mm)
 
MouseManagergetMouseManager ()
 
virtual BOOL SupportTransformGizmo ()
 Transform Gizmo Interface.
 
virtual void DeactivateTransformGizmo ()
 Deactivates the transform gizmo.
 
virtual BOOL SupportAutoGrid ()
 Returns FALSE by default, and needs to be overridden by the mouse procs wishing to utilize the AutoGrid feature.
 
virtual BOOL TolerateOrthoMode ()
 Returns FALSE by default.
 
- Public Member Functions inherited from BaseInterfaceServer
UtilExport BaseInterfaceGetInterface (Interface_ID id) override
 
virtual UtilExport int NumInterfaces () const
 
virtual UtilExport BaseInterfaceGetInterfaceAt (int i) const
 
virtual UtilExport ~BaseInterfaceServer ()
 
- Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor.
 
virtual UtilExport BaseInterfaceGetInterface (Interface_ID id)
 
template<class InterfaceType >
InterfaceType * GetTypedInterface ()
 

Protected Member Functions

CoreExport BOOL HitTest (ViewExp *vpt, IPoint2 *p, int type, int flags)
 
BOOL AnyHits (ViewExp *vpt)
 
CoreExport void Select (ViewExp *vpt, BOOL all, BOOL isclear, BOOL isInvert)
 
CoreExport void DeSelect (ViewExp *vpt, BOOL all)
 
CoreExport void ClearSelection ()
 
CoreExport void CloneSelected (int initialCall=TRUE)
 
CoreExport void AbortClone ()
 
CoreExport void AcceptClone ()
 
- Protected Member Functions inherited from SelectionProcessor
IPoint2Offset ()
 
virtual BOOL HitTest (ViewExp *vpt, IPoint2 *p, int type, int flags)=0
 
virtual BOOL AnyHits (ViewExp *vpt)=0
 
virtual HCURSOR GetTransformCursor ()=0
 
virtual void Select (ViewExp *vpt, BOOL all, BOOL isClear, BOOL isInvert)=0
 
virtual void DeSelect (ViewExp *vpt, BOOL all)=0
 
virtual void ClearSelection ()=0
 
virtual void CloneSelected (int initialCall=TRUE)=0
 
virtual void AbortClone ()=0
 
virtual void AcceptClone ()=0
 
virtual void SelectChildren (ViewExp *vpt)
 
virtual bool HasOverrideDoubleClickProc () const
 By default, SelectChildren(ViewExp*) will be called when double click message is triggered.
 
virtual void OverrideDoubleClickProc (ViewExp *vpt, int flags)
 Override double click handle function.
 

Protected Attributes

BaseObjectobj
 
BOOL transformGizmoActive
 
- Protected Attributes inherited from SelectionProcessor
IObjParamip
 
- Protected Attributes inherited from BaseInterfaceServer
Tab< BaseInterface * > interfaces
 

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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 

Constructor & Destructor Documentation

◆ GenModSelectionProcessor()

GenModSelectionProcessor ( MouseCallBack mc,
BaseObject o,
IObjParam i 
)
inline
250 : SelectionProcessor(mc,i) {obj = o; transformGizmoActive=FALSE; }
BOOL transformGizmoActive
Definition: objmode.h:237
BaseObject * obj
Definition: objmode.h:236
Definition: objmode.h:141

Member Function Documentation

◆ HitTest()

CoreExport BOOL HitTest ( ViewExp vpt,
IPoint2 p,
int  type,
int  flags 
)
protectedvirtual

Implements SelectionProcessor.

◆ AnyHits()

BOOL AnyHits ( ViewExp vpt)
inlineprotectedvirtual

Implements SelectionProcessor.

240{ return vpt->NumSubObjHits(); }
virtual int NumSubObjHits()=0

◆ Select()

CoreExport void Select ( ViewExp vpt,
BOOL  all,
BOOL  isclear,
BOOL  isInvert 
)
protectedvirtual

Implements SelectionProcessor.

◆ DeSelect()

CoreExport void DeSelect ( ViewExp vpt,
BOOL  all 
)
protectedvirtual

Implements SelectionProcessor.

◆ ClearSelection()

CoreExport void ClearSelection ( )
protectedvirtual

Implements SelectionProcessor.

◆ CloneSelected()

CoreExport void CloneSelected ( int  initialCall = TRUE)
protectedvirtual

Implements SelectionProcessor.

◆ AbortClone()

CoreExport void AbortClone ( )
protectedvirtual

Implements SelectionProcessor.

◆ AcceptClone()

CoreExport void AcceptClone ( )
protectedvirtual

Implements SelectionProcessor.

Member Data Documentation

◆ obj

BaseObject* obj
protected

◆ transformGizmoActive

BOOL transformGizmoActive
protected