Public Member Functions |
| | LWItemCallback (LWItemType t=LWI_OBJECT, LWItemID id=LWITEM_NULL, bool _showNone=true, const char *_noneName="(none)") |
| | Constructor, default to an object and no object selected.
|
| unsigned int | AxisLocks (LWItemParam p) |
| void | changeID (const LWItemID *id_array) |
| | Helper function.
|
| LWChanGroupID | ChanGroup (void) |
| void | Controller (LWItemParam p, int type[3]) |
| int * | DataGet () |
| | XPanels compatible DataGet.
|
| void | DataSet (void *value) |
| | XPanels compatible DataSet.
|
| bool | exists () const |
| | Checks if the light exists.
|
| LWItem & | First (LWItemType t) |
| LWItem & | FirstChild (void) |
| unsigned int | Flags (void) |
| ChannelGroup | getChannelGroup (void) |
| int | getExtension () |
| LWItemID | getFirstChild (void) |
| LWItemID | GetID () const |
| int | GetIndex () |
| | return the index of object ID
|
| LWItemID | GetIndexID (int idx) |
| | return id of item number idx
|
| const char * | getName (void) |
| Matrix4x4d | getObjectToWorld (LWTime time) |
| const char * | GetSelectedName () |
| const char * | GetTag (int t) |
| Matrix4x4d | getWorldTransform (LWTime time) |
| LWItem & | Goal (void) |
| double | GoalStrength (LWTime t) |
| bool | isValid () const |
| | Checks if the LWItemInfo global is available or not.
|
| unsigned int | Limits (LWItemParam p, LWDVector min, LWDVector max) |
| virtual LWError | Load (const LoadState &ls) |
| | Load on object, this will store the item ID in the end.
|
| LWTime | LookAhead (void) |
| LWItem & | Next (void) |
| LWItem & | NextChild (LWItem &parent) |
| bool | operator! () |
| | Check if the current item != LWITEM_NULL.
|
| void | Param (LWItemParam p, LWTime t, LWDVector v) |
| void | Param (LWItemParam p, LWTime t, Vector3d &v) |
| void | Param (LWItemParam p, LWTime t, Point3d &v) |
| LWItem | Parent (void) |
| virtual LWError | Save (const SaveState &ls) |
| | Save and object, using the name.
|
| const char * | Server (const char *s, int d) |
| unsigned int | ServerFlags (const char *s, int d) |
| void | SetID (LWItemID _id) |
| void | SetTag (int t, const char *tag) |
| void | Stiffness (LWItemParam p, LWDVector v) |
| LWItem & | Target (void) |
| LWItem & | ToParent (void) |
| void | transformToWorld (Point3d &pt, LWTime time) |
| LWItemType | Type (void) |
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...
| LWError lwpp::LWItem::Load |
( |
const LoadState & |
ls | ) |
|
|
virtualinherited |
Load on object, this will store the item ID in the end.
Loading an item is safe in Modeler as well. In Layout, lwpp will first try to find an item with a matching name. If that fails it will use the id that was stored to reference the item.
In Modeler, lwpp will just store the item name and id and the use that for the next save.
Reimplemented from lwpp::Storeable.