3ds Max C++ API Reference
IOsnapManager7 Class Referenceabstract

#include <omanapi.h>

+ Inheritance diagram for IOsnapManager7:

Public Member Functions

virtual int GetSnapPreviewRadius () const =0
 
virtual void SetSnapPreviewRadius (int nVal)=0
 
virtual int GetSnapRadius () const =0
 
virtual void SetSnapRadius (int nVal)=0
 
virtual bool GetDisplaySnapRubberBand () const =0
 
virtual void SetDisplaySnapRubberBand (bool bDisplayRubberBand)=0
 
virtual void SetAxisConstraint (BOOL bUseAxisConstraint)=0
 
virtual bool GetSnapInfo (SnapInfo &si) const =0
 
virtual const OsnapGetSnapOverride () const =0
 
virtual void SetAFlag (int mask)=0
 
virtual void ClearAFlag (int mask)=0
 
virtual void setactive (boolean state)=0
 
virtual void sethilite (Point3 col)=0
 
virtual Point3 gethilite ()=0
 
virtual void setmarksize (int val)=0
 
virtual int getmarksize ()=0
 
virtual BOOL SnapToFrozen ()=0
 
virtual void SetSnapToFrozen (BOOL state=TRUE)=0
 
virtual OsnapEnumerate (int FLAGS) const =0
 
virtual DWORD GetSnapFlags ()=0
 
- Public Member Functions inherited from IOsnapManager
virtual BOOL getactive () const =0
 
virtual BOOL getAxisConstraint ()=0
 
virtual void RecordHit (OsnapHit *somehit)=0
 
virtual BOOL OKForRelativeSnap ()=0
 
virtual BOOL RefPointWasSnapped ()=0
 
virtual Point3 GetRefPoint (BOOL top=TRUE)=0
 
virtual BOOL IsHolding ()=0
 
virtual OsnapHitGetHit ()=0
 
virtual ViewExpGetVpt ()=0
 
virtual INodeGetNode ()=0
 
virtual int GetSnapStrength ()=0
 
virtual Matrix3 GetObjectTM ()=0
 
virtual TimeValue GetTime ()=0
 
virtual void wTranspoint (Point3 *inpt, IPoint3 *outpt)=0
 
virtual void Reset ()=0
 
virtual BOOL TestAFlag (int mask)=0
 
virtual Point3 GetCurrentPoint ()=0
 
- Public Member Functions inherited from BaseInterface
virtual UtilExport ~BaseInterface ()
 Destructor. More...
 
UtilExport BaseInterfaceGetInterface (Interface_ID id) override
 
virtual UtilExport Interface_ID GetID ()
 
virtual LifetimeType LifetimeControl ()
 
virtual bool RegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual void UnRegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual BaseInterfaceAcquireInterface ()
 
virtual void ReleaseInterface ()
 
virtual void DeleteInterface ()
 
virtual BaseInterfaceCloneInterface (void *remapDir=nullptr)
 
- Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor. More...
 
template<class InterfaceType >
InterfaceType * GetTypedInterface ()
 

Static Public Member Functions

static CoreExport IOsnapManager7GetInstance ()
 
- 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...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Additional Inherited Members

- Public Types inherited from BaseInterface
enum  LifetimeType { noRelease , immediateRelease , wantsRelease , serverControlled }
 

Member Function Documentation

◆ GetSnapPreviewRadius()

virtual int GetSnapPreviewRadius ( ) const
pure virtual

◆ SetSnapPreviewRadius()

virtual void SetSnapPreviewRadius ( int  nVal)
pure virtual

◆ GetSnapRadius()

virtual int GetSnapRadius ( ) const
pure virtual

◆ SetSnapRadius()

virtual void SetSnapRadius ( int  nVal)
pure virtual

◆ GetDisplaySnapRubberBand()

virtual bool GetDisplaySnapRubberBand ( ) const
pure virtual

◆ SetDisplaySnapRubberBand()

virtual void SetDisplaySnapRubberBand ( bool  bDisplayRubberBand)
pure virtual

◆ SetAxisConstraint()

virtual void SetAxisConstraint ( BOOL  bUseAxisConstraint)
pure virtual

◆ GetSnapInfo()

virtual bool GetSnapInfo ( SnapInfo si) const
pure virtual

◆ GetSnapOverride()

virtual const Osnap* GetSnapOverride ( ) const
pure virtual

◆ SetAFlag()

virtual void SetAFlag ( int  mask)
pure virtual

◆ ClearAFlag()

virtual void ClearAFlag ( int  mask)
pure virtual

◆ setactive()

virtual void setactive ( boolean  state)
pure virtual

◆ sethilite()

virtual void sethilite ( Point3  col)
pure virtual

◆ gethilite()

virtual Point3 gethilite ( )
pure virtual

◆ setmarksize()

virtual void setmarksize ( int  val)
pure virtual

◆ getmarksize()

virtual int getmarksize ( )
pure virtual

◆ SnapToFrozen()

virtual BOOL SnapToFrozen ( )
pure virtual

◆ SetSnapToFrozen()

virtual void SetSnapToFrozen ( BOOL  state = TRUE)
pure virtual

◆ Enumerate()

virtual Osnap* Enumerate ( int  FLAGS) const
pure virtual

◆ GetSnapFlags()

virtual DWORD GetSnapFlags ( )
pure virtual

◆ GetInstance()

static CoreExport IOsnapManager7* GetInstance ( )
static