![]() |
VR-Forces 4.6 Class Documentation
|
This class is a wrapper for a DtCompSystem for use by scripts. More...

Public Member Functions | |
| DtScriptComponentSystem (const DtVrfObject *vrfObject) | |
| DtScriptComponentSystem (const DtScriptComponentSystem &orig) | |
| DtScriptComponentSystem & | operator= (const DtScriptComponentSystem &orig) |
| ~DtScriptComponentSystem () | |
| bool | operator== (const DtScriptComponentSystem &orig) |
| virtual DtComponentSystem * | componentSystem () const |
| Gets the print name of this system. | |
| virtual void | setComponentSystem (DtComponentSystem *system) |
| Sets the component system. | |
| virtual DtString | serialize () |
| Inherited from DtAsciiSerializable. Returns a string serialized version of this class. | |
| virtual void | init (void *userData) |
| Called after object is constructed, but before deserialize() is called, during deserialization (scenario and script reload). | |
| bool | deserialize (const DtString &data) |
| Inherited from DtAsciiSerializable. | |
| virtual DtString | objectType () const |
| Should return the string name of this object. | |
| virtual std::string | getName () const |
| Script API functions. | |
| virtual DtReaderWriter * | getAttribute (const std::string &attributeName, bool &error) const |
| This is not directly in the API in Lua; there is a wrapper function. | |
| virtual bool | setAttribute (const std::string &attributeName, DtReaderWriter *value) |
| Sets the given attribute. | |
| virtual std::list< std::string > | getAllAttributeNames () const |
| Returns a list of the names of all of the attributes in this system that support get-attribute calls. | |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface. | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| Returns a std::string version of the objectType. | |
Static Public Member Functions | |
| static DtAsciiSerializable * | creator () |
| Inherited from DtAsciiSerializable. Returns a new object of this type with. | |
Static Public Member Functions inherited from DtObjectDebugger< DtScriptComponentSystem > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Protected Attributes | |
| DtSimManager * | mySimManager |
| Returns the vrf object referenced by myObject. | |
| const DtVrfObject * | myObject |
| DtComponentSystem * | myComponentSystem |
Private Member Functions | |
| DtScriptComponentSystem () | |
| Hide the default constructor so we always get a vrfObject to use. | |
Additional Inherited Members | |
Protected Member Functions inherited from DtObjectDebugger< DtAsciiSerializable > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Protected Member Functions inherited from DtObjectDebugger< DtScriptComponentSystem > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
This class is a wrapper for a DtCompSystem for use by scripts.
It derives from DtAsciiSerializable so that it can provide serialization functions for script saving/reloading.
|
private |
Hide the default constructor so we always get a vrfObject to use.
| DtScriptComponentSystem::DtScriptComponentSystem | ( | const DtVrfObject * | vrfObject | ) |
| DtScriptComponentSystem::DtScriptComponentSystem | ( | const DtScriptComponentSystem & | orig | ) |
| DtScriptComponentSystem::~DtScriptComponentSystem | ( | ) |
| DtScriptComponentSystem& DtScriptComponentSystem::operator= | ( | const DtScriptComponentSystem & | orig | ) |
| bool DtScriptComponentSystem::operator== | ( | const DtScriptComponentSystem & | orig | ) |
|
virtual |
Script API functions.
////////////////////////////////////! Gets the print name of the system.
|
virtual |
This is not directly in the API in Lua; there is a wrapper function.
that returns a Lua object, which can be any scalar type; the wrapper function converts the reader-write to the appropriate Luabind object.
|
virtual |
Sets the given attribute.
A wrapper function converts the Luabind object to the appropriate Reader-Writer type.
|
virtual |
Returns a list of the names of all of the attributes in this system that support get-attribute calls.
|
virtual |
Gets the print name of this system.
Script API functions above. ////////////////////////////////////! Returns the component system for this class
|
virtual |
Sets the component system.
|
virtual |
Inherited from DtAsciiSerializable. Returns a string serialized version of this class.
Implements DtAsciiSerializable.
|
virtual |
Called after object is constructed, but before deserialize() is called, during deserialization (scenario and script reload).
The Lua scenario loader constructs this object, then calls init with the SimManager as the argument; init saves this in mySimManager.
Reimplemented from DtAsciiSerializable.
Inherited from DtAsciiSerializable.
Returns true if it could fill its members with the data contained in the string. False otherwise.
Implements DtAsciiSerializable.
|
virtual |
Should return the string name of this object.
The object name should not be part of the serialization unless you want it to be, but you should take it into account when implementing both functions.
Implements DtAsciiSerializable.
|
static |
Inherited from DtAsciiSerializable. Returns a new object of this type with.
|
protected |
Returns the vrf object referenced by myObject.
DtVrfObject* vrfObject() const;
|
protected |
|
protected |