![]() |
VR-Forces Developer's Guide
|
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.

Public Member Functions | |
| DtScriptComponentSystem (const DtLocalObject *vrfObject) | |
| DtScriptComponentSystem (const DtScriptComponentSystem &orig) | |
| DtScriptComponentSystem & | operator= (const DtScriptComponentSystem &orig) |
| ~DtScriptComponentSystem () | |
| bool | operator== (const DtScriptComponentSystem &orig) |
| virtual const DtComponentSystem * | componentSystem () const |
| virtual void | setComponentSystem (const DtComponentSystem *system) |
| virtual DtString | serialize () |
| virtual void | init (const DtSimulationServices *, DtLocalObject *owner) |
| bool | deserialize (const DtString &data) |
| virtual DtString | objectType () const |
| virtual std::string | getName () const |
| virtual std::string | getFullName () const |
| virtual bool | isEnabled () const |
| virtual bool | isValid () const |
| virtual DtReaderWriter * | getAttribute (const std::string &attributeName, bool &error) const |
| virtual bool | setAttribute (const std::string &attributeName, DtReaderWriter *value) |
| virtual std::list< std::string > | getAllAttributeNames () const |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| virtual void | init (void *userData) |
Static Public Member Functions | |
| static DtAsciiSerializable * | creator () |
Protected Attributes | |
| const DtSimulationServices * | mySimServices |
| const DtLocalObject * | myObject |
| const DtComponentSystem * | myComponentSystem |
Private Member Functions | |
| DtScriptComponentSystem () | |
|
private |
Hide the default constructor so we always get a vrfObject to use.
| DtScriptComponentSystem::DtScriptComponentSystem | ( | const DtLocalObject * | 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 |
Gets the fully qualified name of the system.
|
virtual |
Returns if system is enabled.
|
virtual |
Returns true if this is a valid 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.
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 |