3ds Max C++ API Reference
|
Simple wrapper for light objects. More...
#include <IGameObject.h>
Public Types | |
enum | LightType { IGAME_OMNI , IGAME_TSPOT , IGAME_DIR , IGAME_FSPOT , IGAME_TDIR , IGAME_UNKNOWN } |
Various Light types used by 3ds Max. More... | |
Public Types inherited from IGameObject | |
enum | ObjectTypes { IGAME_UNKNOWN , IGAME_LIGHT , IGAME_MESH , IGAME_SPLINE , IGAME_CAMERA , IGAME_HELPER , IGAME_BONE , IGAME_IKCHAIN , IGAME_XREF } |
Various IGame Object types. More... | |
enum | MaxType { IGAME_MAX_UNKNOWN , IGAME_MAX_GEOM , IGAME_MAX_SHAPE , IGAME_MAX_LIGHT , IGAME_MAX_CAMERA , IGAME_MAX_BONE , IGAME_MAX_HELPER } |
Various 3ds Max Object types. More... | |
Public Member Functions | |
virtual IGameProperty * | GetLightColor ()=0 |
Get the Light Color Data. | |
virtual IGameProperty * | GetLightMultiplier ()=0 |
Get the Light Multiplier Data. | |
virtual IGameProperty * | GetLightAttenEnd ()=0 |
Get the Light Attenuation End Data. | |
virtual IGameProperty * | GetLightAttenStart ()=0 |
Get the Light Attenuation Start Data. | |
virtual IGameProperty * | GetLightFallOff ()=0 |
Get the Light Falloff Data. | |
virtual IGameProperty * | GetLightHotSpot ()=0 |
Get the Light Hot spot Data. | |
virtual IGameProperty * | GetLightAspectRatio ()=0 |
Get the Light Aspect Ratio Data. | |
virtual IGameProperty * | GetLightDecayStart ()=0 |
Get the Light Decay Start Data. | |
virtual LightType | GetLightType ()=0 |
Get the Light type as defined in the UI. | |
virtual int | GetLightOvershoot ()=0 |
Get the Light overshoot. | |
virtual int | GetLightDecayType ()=0 |
Get the Decay Type of the Light. | |
virtual int | GetSpotLightShape ()=0 |
Get the shape of the Light. | |
virtual IGameNode * | GetLightTarget ()=0 |
Get the Target of the Light. | |
virtual bool | IsLightOn ()=0 |
Check if Light is On. | |
virtual bool | IsExcludeListReversed ()=0 |
Check Exclude List. | |
virtual int | GetExcludedNodesCount ()=0 |
Get the number of excluded nodes from the Light. | |
virtual IGameNode * | GetExcludedNode (int index)=0 |
Get the excluded node based on the index pass in. | |
Public Member Functions inherited from IGameObject | |
IGameObject () | |
Default constructor. | |
IGAMEEXPORT void | GetBoundingBox (Box3 &bb) |
The bounding box of the object. | |
IGAMEEXPORT bool | IsRenderable () |
Check if object renderable. | |
virtual ObjectTypes | GetIGameType ()=0 |
The IGame object type. | |
IGAMEEXPORT Object * | GetMaxObject () |
Access to the actual 3ds Max object. | |
IGAMEEXPORT MaxType | GetMaxType () |
The 3ds Max object type. | |
IGAMEEXPORT int | GetNumModifiers () |
The number of modifiers active on the object. | |
IGAMEEXPORT IGameModifier * | GetIGameModifier (int index) |
Access to IGame modifier. | |
IGAMEEXPORT | IGameObject (INode *node) |
The IGameObject constructor. | |
IGAMEEXPORT bool | CastShadows () |
Check if Object casts shadows. | |
IGAMEEXPORT bool | IsObjectSkinned () |
Check if object skinned. | |
IGAMEEXPORT IGameSkin * | GetIGameSkin () |
Access to the Skin interface. | |
IGAMEEXPORT bool | IsObjectXRef () |
Check if XRef object. | |
IGAMEEXPORT GMatrix | GetIGameObjectTM () |
Access to the ObjectTM. | |
virtual bool | InitializeData () |
Extract the 3ds Max data into IGame data. | |
virtual | ~IGameObject ()=0 |
Public Member Functions inherited from IExportEntity | |
virtual | ~IExportEntity () |
Destructor. | |
virtual IPropertyContainer * | GetIPropertyContainer () |
Retrieve the Property Container. | |
virtual bool | IsEntitySupported () |
Is the Entity directly supported. | |
virtual const MCHAR * | GetClassName ()=0 |
Retrieves the name of the entity class. | |
Additional Inherited Members | |
Static Public Member Functions inherited from MaxHeapOperators | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
New operator used to allocate arrays of objects. | |
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. | |
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. | |
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. | |
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 void * | operator 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 void * | aligned_malloc (size_t size, size_t alignment) |
Allocates memory on a specified alignment boundary. | |
static UtilExport void * | aligned_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. | |
Protected Member Functions inherited from IGameObject | |
void | SetNode (INode *n) |
Protected Attributes inherited from IGameObject | |
INode * | gameNode |
Object * | gameObject |
Simple wrapper for light objects.
An IGame Wrapper around 3ds Max's lights. This is a generic interface for all the lights
enum LightType |
Various Light types used by 3ds Max.
Enumerator | |
---|---|
IGAME_OMNI | Omnidirectional Light. |
IGAME_TSPOT | Targeted Spot Light. |
IGAME_DIR | Directional Light. |
IGAME_FSPOT | Free spot Light. |
IGAME_TDIR | Targeted Directional Light. |
IGAME_UNKNOWN | An unknown light type. |
|
pure virtual |
|
pure virtual |
Get the Light Multiplier Data.
|
pure virtual |
Get the Light Attenuation End Data.
|
pure virtual |
Get the Light Attenuation Start Data.
|
pure virtual |
Get the Light Falloff Data.
|
pure virtual |
Get the Light Hot spot Data.
|
pure virtual |
Get the Light Aspect Ratio Data.
|
pure virtual |
Get the Light Decay Start Data.
|
pure virtual |
Get the Light type as defined in the UI.
|
pure virtual |
|
pure virtual |
Get the Decay Type of the Light.
|
pure virtual |
Get the shape of the Light.
|
pure virtual |
|
pure virtual |
Check Exclude List.
Determines whether the exclude list actually maintains a list that is infact included by the light
|
pure virtual |
Get the number of excluded nodes from the Light.
This list contains nodes that should not be included in lighting calculations. It can also contain a list of only those lights that SHOULD be included. This all depends on the state of IsExcludedListReversed.