|
static UtilExport void * | operator new (size_t size) |
| Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
|
|
static UtilExport void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
| New operator used to allocate arrays of objects. More...
|
|
static UtilExport void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | aligned_malloc (size_t size, size_t alignment) |
| Allocates memory on a specified alignment boundary. More...
|
|
static UtilExport void * | aligned_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...
|
|
| Noncopyable () |
|
| ~Noncopyable () |
|
IPopulateIdleArea is the interface class to Populate idle area objects.
The idle area object is a scripted plugin that can be found in: stdplugs\stdscripts\IdleAreaObject.ms. Because it is a scripted plugin, the interface to it is different than a standard class interface.
Also, Idle Areas inherit from EPoly class. To create or edit their geometry, you have to access the base edit poly object.
- Example
- The following code creates a rectangular Populate idle area, sets some if its parameters, and adds it to Populate.
{
for (
int i=0;i<rmak->
NumRefs();i++)
{
if (cd)
{
break;
}
}
}
float width = 400.0f;
float length = 400.0f;
int faceVerts[4];
Point3 corner0(-(width*0.5f),-(length*0.5f),0.0f);
Point3 corner1(width*0.5f,-(length*0.5f),0.0f);
Point3 corner2(width*0.5f,length*0.5f,0.0f);
Point3 corner3(-(width*0.5f),length*0.5f,0.0f);
faceVerts[0] = mm->
NewVert(corner0);
faceVerts[1] = mm->
NewVert(corner1);
faceVerts[2] = mm->
NewVert(corner2);
faceVerts[3] = mm->
NewVert(corner3);
IpopIA->SetDensity(0.7f);
IpopIA->SetGroups(0.33f);
iPopulate->AddIdleArea(iaNode);
#define POPULATE_IDLEAREA_CLASS_ID
The class ID for the IPopulateIdleArea class.
Definition: IPopulateIdleArea.h:18
#define NULL
Definition: autoptr.h:18
virtual CoreExport Class_ID ClassID()
Retrieves a constant that uniquely identifies the plugin class.
virtual int EpfnCreateFace(int *v, int deg, bool select=true)
Definition: iepoly.h:1602
virtual MNMesh * GetMeshPtr()
Definition: iepoly.h:513
virtual Object * GetObjectRef()=0
Definition: maxapi.h:2991
virtual INode * CreateObjectNode(Object *obj)=0
virtual void * CreateInstance(SClass_ID superID, Class_ID classID)=0
The MNMesh class is provided for temporary use by plug-ins, to help with complex topology-based modif...
Definition: mnmesh.h:1163
DllExport int NewVert(const Point3 &p)
Creates a new vertex (increasing numv) and sets it to the specified point.
static IPopulate * GetInstance()
Returns the interface to Populate.
Definition: IPopulate.h:284
IPopulateIdleArea()
Definition: IPopulateIdleArea.h:45
The object class is the base class for all objects.
Definition: object.h:1428
A scene entity that owns other scene entities and listens to messages from them.
Definition: ref.h:1155
virtual CoreExport RefTargetHandle GetReference(int i)
Returns the 'i-th' reference.
virtual CoreExport int NumRefs()
Returns the total number of references this ReferenceMaker can hold.
A scene entity that is being owned and listened to by other scene entities.
Definition: ref.h:1844
virtual CoreExport void * GetInterface(ULONG id)
Inherited from Animatable.
#define GEOMOBJECT_CLASS_ID
Geometric object super-class ID.
Definition: plugapi.h:398
CoreExport Interface * GetCOREInterface()
#define EPOLY_INTERFACE
Definition: iepoly.h:203
\sa IPopulate, IPopulateFlow, IPopulateSeat