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

#include <impapi.h>

+ Inheritance diagram for ImpNode:

Public Member Functions

virtual RefResult Reference (ObjectHandle obj)=0
 
virtual void SetTransform (TimeValue t, Matrix3 tm)=0
 
virtual void SetName (const MCHAR *newname, bool registerForDuplicateNameCheck=true)=0
 
virtual void SetPivot (Point3 p)=0
 
virtual INodeGetINode ()=0
 
virtual int TempFunc1 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc2 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc3 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc4 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc5 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc6 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc7 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc8 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc9 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 
virtual int TempFunc10 (void *p1=NULL, void *p2=NULL, void *p3=NULL, void *p4=NULL, void *p5=NULL, void *p6=NULL, void *p7=NULL, void *p8=NULL)=0
 

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.
 

Detailed Description

See also
Class ImpInterface, Class INode, Class Matrix3, Class Point3.

Description:
Import Node class. Methods of this class may be used to set various properties of the node. All methods of this class are implemented by the system.
Sample Code:
The following sample code fragment (from /MAXSDK/SAMPLES/IMPEXP/DXFIMP.CPP) demonstrates the use of many of the methods of this class.

ImpNode *node = iface->CreateNode();
if (node)
{
// Now find the center of the vertices and use that as the pivot
int verts = m->getNumVerts();
Point3 accum(0,0,0);
for(int i = 0; i < verts; ++i)
accum += m->verts[i];
Point3 delta = accum / (float)verts;
for(i = 0; i < verts; ++i)
m->verts[i] -= delta;
tri->mesh = *m;
node->Reference(tri);
Matrix3 tm;
tm.IdentityMatrix(); // Reset initial matrix to identity
tm.SetTrans(delta); // Add in the center point
node->SetTransform(0,tm);
iface->AddNodeToScene(node);
node->SetName(n->name);
}
Definition: impapi.h:56
virtual void SetTransform(TimeValue t, Matrix3 tm)=0
virtual void SetName(const MCHAR *newname, bool registerForDuplicateNameCheck=true)=0
virtual RefResult Reference(ObjectHandle obj)=0
Definition: matrix3.h:99
void SetTrans(const Point3 &p)
void IdentityMatrix()
Definition: point3.h:54
Definition: triobj.h:63
Mesh mesh
Definition: triobj.h:89
CoreExport TriObject * CreateNewTriObject()

Member Function Documentation

◆ Reference()

virtual RefResult Reference ( ObjectHandle  obj)
pure virtual
Remarks
Sets the object that this node references.
Parameters:
ObjectHandle obj

The object to reference.
Returns
One of the following values:

REF_FAIL

The operation failed.

REF_SUCCEED

The operation succeeded.

◆ SetTransform()

virtual void SetTransform ( TimeValue  t,
Matrix3  tm 
)
pure virtual
Remarks
Sets the transformation matrix of the node.
Parameters:
TimeValue t

The time to set the matrix.

Matrix3 tm

The new transformation matrix of the node.

◆ SetName()

virtual void SetName ( const MCHAR newname,
bool  registerForDuplicateNameCheck = true 
)
pure virtual
Remarks
Sets the name of the node.
Parameters:
const MCHAR *newname

The new name for the node. bool registerForDuplicateNameCheck

If true the new name for the node will be registered for duplicate node name checking.

◆ SetPivot()

virtual void SetPivot ( Point3  p)
pure virtual
Remarks
Sets the pivot point of the node.
Parameters:
Point3 p

The pivot point of the node.

◆ GetINode()

virtual INode * GetINode ( )
pure virtual
Remarks
Returns the INode pointer for the node.

◆ TempFunc1()

virtual int TempFunc1 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc2()

virtual int TempFunc2 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc3()

virtual int TempFunc3 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc4()

virtual int TempFunc4 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc5()

virtual int TempFunc5 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc6()

virtual int TempFunc6 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc7()

virtual int TempFunc7 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc8()

virtual int TempFunc8 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc9()

virtual int TempFunc9 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual

◆ TempFunc10()

virtual int TempFunc10 ( void p1 = NULL,
void p2 = NULL,
void p3 = NULL,
void p4 = NULL,
void p5 = NULL,
void p6 = NULL,
void p7 = NULL,
void p8 = NULL 
)
pure virtual