LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::SceneObjectReference< showNone > Class Template Reference

Provide callback functions for LW Items in XPanels... More...

#include <objectinfo.h>

+ Inheritance diagram for lwpp::SceneObjectReference< showNone >:
+ Collaboration diagram for lwpp::SceneObjectReference< showNone >:

List of all members.

Public Member Functions

 SceneObjectReference ()
 Constructor.
int * DataGet ()
 XPanels compatible DataGet.
void DataSet (void *value)
 XPanels compatible DataSet.
const char * filename (int obj) const
int findObject (const std::string &objectName)
int findVmapIndex (const std::string &name, LWID id)
const char * GetSelectedName ()
std::set< LWSurfaceID > getSurfaces (int idx)
int layerExists (int obj, int layer) const
LWMeshInfoID layerMesh (int obj, int layer) const
int maxLayers (int obj) const
int numObjects (void) const
int numVMaps (LWID type) const
const char * refName (int obj) const
const char * userName (int obj) const
int vmapDim (LWID type, int index) const
const char * vmapName (LWID type, int index) const

Static Public Member Functions

static int PopCount (void *inst)
 PopCount callback for LightWave.
static const char * PopName (void *inst, int n)
 PopUpName name callback for LightWave.

Protected Member Functions

bool _acquireGlobal ()
virtual bool available () const
 Check if the global is available.
virtual LWObjectFuncs * getGlobal ()
 Get the pointer to the global.
LWObjectFuncs * operator-> ()
 Get the pointer to the global.
virtual size_t popCount (void)
 Return number of items.
virtual const char * popName (int idx)
 return name of item number idx

Protected Attributes

int index

Static Protected Attributes

static LWObjectFuncs * globPtr
 Pointer to the global functions.

Detailed Description

template<bool showNone = true>
class lwpp::SceneObjectReference< showNone >

Provide callback functions for LW Items in XPanels...

This class takes care of an item, including loading and saving item references

Todo:
turn this into a more universal wrapper, a managed variable/item or something like it...

Constructor & Destructor Documentation

template<bool showNone = true>
lwpp::SceneObjectReference< showNone >::SceneObjectReference ( )
inline

Constructor.


Member Function Documentation

bool lwpp::GlobalBase< LWObjectFuncs >::_acquireGlobal ( )
inlineprotectedinherited
virtual bool lwpp::GlobalBase< LWObjectFuncs >::available ( ) const
inlinevirtualinherited

Check if the global is available.

template<bool showNone = true>
int* lwpp::SceneObjectReference< showNone >::DataGet ( )
inline

XPanels compatible DataGet.

template<bool showNone = true>
void lwpp::SceneObjectReference< showNone >::DataSet ( void *  value)
inline

XPanels compatible DataSet.

const char* lwpp::SceneObjects::filename ( int  obj) const
inlineinherited
int lwpp::SceneObjects::findObject ( const std::string &  objectName)
inherited
int lwpp::SceneObjects::findVmapIndex ( const std::string &  name,
LWID  id 
)
inlineinherited
virtual LWObjectFuncs * lwpp::GlobalBase< LWObjectFuncs >::getGlobal ( )
inlinevirtualinherited

Get the pointer to the global.

const char* lwpp::PopUpCallback::GetSelectedName ( )
inlineinherited
std::set< LWSurfaceID > lwpp::SceneObjects::getSurfaces ( int  idx)
inherited
int lwpp::SceneObjects::layerExists ( int  obj,
int  layer 
) const
inlineinherited
LWMeshInfoID lwpp::SceneObjects::layerMesh ( int  obj,
int  layer 
) const
inlineinherited
int lwpp::SceneObjects::maxLayers ( int  obj) const
inlineinherited
int lwpp::SceneObjects::numObjects ( void  ) const
inlineinherited
int lwpp::SceneObjects::numVMaps ( LWID  type) const
inlineinherited
LWObjectFuncs * lwpp::GlobalBase< LWObjectFuncs >::operator-> ( )
inlineinherited

Get the pointer to the global.

static int lwpp::PopUpCallback::PopCount ( void *  inst)
inlinestaticinherited

PopCount callback for LightWave.

template<bool showNone = true>
virtual size_t lwpp::SceneObjectReference< showNone >::popCount ( void  )
inlineprotectedvirtual

Return number of items.

Implements lwpp::PopUpCallback.

static const char* lwpp::PopUpCallback::PopName ( void *  inst,
int  n 
)
inlinestaticinherited

PopUpName name callback for LightWave.

template<bool showNone = true>
virtual const char* lwpp::SceneObjectReference< showNone >::popName ( int  idx)
inlineprotectedvirtual

return name of item number idx

Implements lwpp::PopUpCallback.

const char* lwpp::SceneObjects::refName ( int  obj) const
inlineinherited
const char* lwpp::SceneObjects::userName ( int  obj) const
inlineinherited
int lwpp::SceneObjects::vmapDim ( LWID  type,
int  index 
) const
inlineinherited
const char* lwpp::SceneObjects::vmapName ( LWID  type,
int  index 
) const
inlineinherited

Member Data Documentation

LWObjectFuncs * lwpp::GlobalBase< LWObjectFuncs >::globPtr
staticprotectedinherited

Pointer to the global functions.

int lwpp::PopUpCallback::index
protectedinherited

The documentation for this class was generated from the following file: