![]() |
VR-Forces Developer's Guide
|
DtSimCommand subclass for creating a new VrfObjects. Used for both single and multi-point objects. Single point objects should specify just one vertex in the vertex list.

Public Member Functions | |
| DtCreateObjectCommand () | |
| DtCreateObjectCommand (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtCreateObjectCommand (const DtString &writeName, const DtCreateObjectCommand &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual | ~DtCreateObjectCommand () |
| DtCreateObjectCommand & | operator= (const DtCreateObjectCommand &orig) |
| virtual const DtSimCommandMessageType & | type () const |
| virtual DtSimCommand * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const |
| virtual void | clearVertices () |
| virtual void | addVertex (const DtVector &vertex) |
| virtual int | numberOfVertices () const |
| virtual DtVector | vertex (unsigned int index) const |
| virtual DtString | stringRep () const |
| virtual int | netRepSize () const |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| virtual bool | setToNet () |
| virtual const std::list < DtAdminContent * > & | initialAdminContent () const |
| virtual void | setInitialAdminContent (std::list< DtAdminContent * > adminContent) |
| virtual void | addInitialAdminContent (const DtAdminContent *adminContent) |
| virtual const std::list < DtSimInterfaceContent * > & | initialInterfaceContent () const |
| virtual void | setInitialInterfaceContent (std::list< DtSimInterfaceContent * > adminContent) |
| virtual void | addInitialInterfaceContent (const DtSimInterfaceContent *adminContent) |
| virtual void | createAndAddAdminContentFromEncodedBuffer (const DtString &) |
| virtual void | setAppearance (int) |
| virtual int | appearance () const |
| virtual void | encodeAndAddAdminContent (const DtAdminContent *) |
| virtual void | createAndAddInterfaceContentFromEncodedBuffer (const DtString &) |
| virtual void | encodeAndAddInterfaceContent (const DtSimInterfaceContent *) |
| virtual void | setExtendedData (const std::map< DtString, DtString > &) |
| virtual void | setExtendedData (const std::map< std::string, std::string > &) |
| virtual std::map< DtString, DtString > | extendedData () const |
| virtual void | setExtendedLabels (const std::map< int, DtString > &) |
| virtual std::map< int, DtString > | extendedLabels () const |
| virtual void | setUserData (const DtString &) |
| virtual void | setUserData (const std::string &) |
| virtual const DtString & | userData () const |
| virtual const DtUUID & | uuid () const |
| virtual void | setUUID (const DtUUID &) |
| virtual DtString | markingText () const |
| virtual void | setMarkingText (const DtString &name) |
| virtual DtObjectType | objectType () const |
| virtual void | setObjectType (const DtObjectType &objectType) |
| virtual DtForceType | forceType () const |
| virtual void | setForceType (const DtForceType &force) |
| virtual DtReal | heading () const |
| virtual void | setHeading (DtReal heading) |
| virtual bool | headingSpecified () const |
| virtual DtReal | pitch () const |
| virtual void | setPitch (DtReal pitch) |
| virtual bool | pitchSpecified () const |
| virtual bool | closedFigure () const |
| virtual void | setClosedFigure (bool closed) |
| virtual bool | projected () const |
| virtual void | setProjected (bool value) |
| virtual bool | clampedToGround () const |
| virtual void | setClampedToGround (bool value) |
| virtual bool | aggregated () const |
| virtual void | setAggregated (bool value) |
Public Member Functions inherited from DtSimCommand | |
| virtual | ~DtSimCommand () |
| virtual bool | init () |
| virtual DtSimCommand * | clone () const |
| virtual void | putData (std::string &fp, int indentLevel=0) |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual char * | netRep () |
| virtual void | setLocalDelivery (bool) |
| virtual bool | localDelivery () const |
Public Member Functions inherited from DtReaderWriter | |
| DtReaderWriter () | |
| DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false) | |
| DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL) | |
| const DtReaderWriter & | operator= (const DtReaderWriter &orig) |
| bool | operator== (const DtReaderWriter &) const |
| bool | operator!= (const DtReaderWriter &rhs) |
| virtual | ~DtReaderWriter () |
| virtual void | putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual void | postPutSelf () |
| virtual void | prePutSelf () |
| virtual void | postGetSelf () |
| virtual void | preGetSelf () |
| virtual void | writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) |
| virtual DtSymbolString | name () const |
| virtual void | addAlias (const DtSymbolString &alias) |
| virtual void | addAlias (const DtString &alias) |
| virtual bool | hasAlias (const DtSymbolString &alias) |
| virtual const aliasContainer & | aliases () const |
| virtual void | setReadonly (bool flag) |
| bool | isReadonly () const |
| virtual void | reset () |
| virtual int | alignment () const |
| virtual bool | variableIsBound () const |
| virtual void | unbindVariable () |
| virtual void | setName (const DtString &) |
| virtual const char * | readerWriterType () const |
| virtual const char * | xmlType () const |
| virtual DtString | prettyPrint () const |
| std::string | debugText () const |
| virtual void | bindVariables (DtVariableBindingsList variableBindings) |
| virtual std::list < DtVariableNameType > | unboundVariables () const |
| bool | invalid () const |
| virtual bool | hasChild (const DtReaderWriter *p) const |
| virtual bool | hasVariableReference () const |
| virtual void | bindLocalVariables (const DtVariableBindingsList &variableBindings) |
| virtual void | recordUpdateTime () const |
| virtual bool | changedSinceLastChecked () |
| virtual bool | peekChangedSinceLastChecked () const |
| virtual void | setValueSpecified (bool specified, bool recurse=false) |
| virtual bool | valueSpecified () const |
| virtual bool | isVariableReference () const |
| virtual void | setIsVariableReference (bool value) |
| virtual void | clearAllVariableReferenceFlags () |
| virtual DtSymbolString | variableName () const |
| virtual void | setVariableName (const DtSymbolString variableName) |
| virtual const DtReaderWriter * | defaultRWValue () const |
| virtual DtReaderWriter * | defaultRWValue () |
| virtual void | setDefaultRWValue (DtReaderWriter *) |
| virtual bool | checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference()) |
| const DtReaderWriterRegistry & | registry () const |
| DtReaderWriterRegistry & | registry () |
| virtual DtPropertyInterface * | property () |
| virtual const DtPropertyInterface * | property () const |
| virtual DtString | toXml () const |
| virtual DtRwVariableBindings * | generateVariableBindings () const |
| virtual bool | toXml (const DtFilename &) const |
| virtual bool | fromXml (const DtString &) |
| virtual bool | fromXmlFile (const DtFilename &) |
| virtual void | putSelf (DtEnvironmentSP, DtEnvValueSP parent) const |
| virtual void | putData (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const |
| virtual void | getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList()) |
| virtual void | unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings) |
| virtual void | getVariableReference (DtEnvironmentSP, DtEnvValueSP value) |
Static Public Member Functions | |
| static DtSimCommand * | creator () |
Static Public Member Functions inherited from DtSimCommand | |
| static DtSimCommand * | createSimCommand (DtlObjPtr mtlStream) |
| static DtSimCommand * | createSimCommand (const DtSimCommandMessageType &simCommandType) |
| static DtSimCommand * | createFromFactory (const DtSimCommandMessageType &simCommandType) |
| static void | addSimCommandCreatorFcn (const DtSimCommandMessageType &simCommandName, DtSimCommandCreatorFcn fcn) |
| static void | setFactory (DtSimCommandFactory *factory) |
| static DtSimCommandFactory * | factory () |
Static Public Member Functions inherited from DtReaderWriter | |
| static void | putIndent (std::string &fp, int indentLevel) |
| static const DtVariableBindingsList & | nullVariableReference () |
| static void | setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData) |
| static void | setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData) |
| static void | setPutIndent (bool) |
| static bool | putIndent () |
| static const char * | theXmlType () |
| static const DtFilename & | appPath () |
| static void | setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn) |
| static void | createReaderWriterFactory () |
| static void | cleanupFactory () |
| static DtReaderWriterFactory * | factory () |
| static void | setOutputStream (DtOutputStream *stream) |
| static DtOutputStream & | outputStream () |
| static DtReaderWriter * | createFromXmlFile (const DtFilename &, bool createAsProperty=false) |
| static DtReaderWriter * | createFromXml (const DtString &, bool createAsProperty=false) |
| static DtReaderWriter * | createFromEnvironment (DtEnvironmentSP, bool createAsProperty=false) |
| static DtString | getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root) |
Protected Member Functions | |
| virtual void | getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) |
| virtual char * | decodeBuffer (const DtString &) const |
| virtual DtString | encodeBuffer (const char *chr, int length) const |
Protected Member Functions inherited from DtSimCommand | |
| DtSimCommand () | |
| DtSimCommand (const DtString &writeName, DtReaderWriterRegistry *parentRegistry=0) | |
| DtSimCommand (const DtString &writeName, const DtSimCommand &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| const DtSimCommand & | operator= (const DtSimCommand &orig) |
| virtual char * | createNetworkBuffer () |
| virtual bool | isTypeRegistered (const DtSimCommandMessageType &commandType) |
Protected Member Functions inherited from DtReaderWriter | |
| virtual void | bindToRwAsVariable (const DtReaderWriter *rw) |
| DtCreateObjectCommand::DtCreateObjectCommand | ( | ) |
Default constructor.
| DtCreateObjectCommand::DtCreateObjectCommand | ( | const DtString & | writeName, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
Usual constructor.
| DtCreateObjectCommand::DtCreateObjectCommand | ( | const DtString & | writeName, |
| const DtCreateObjectCommand & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
|
virtual |
destructor
| DtCreateObjectCommand& DtCreateObjectCommand::operator= | ( | const DtCreateObjectCommand & | orig | ) |
assignment operator
|
virtual |
Implements DtSimCommand.
|
virtual |
Implements DtSimCommand.
|
virtual |
Name of the object to create. The name is optional. If no name (or a NULL name) is specified, the system will auto-generate a name for the object.
|
virtual |
Name of the object to create. The name is optional. If no name (or a NULL name) is specified, the system will auto-generate a name for the object.
|
virtual |
Type of object to create.
|
virtual |
Type of object to create.
|
virtual |
Force of the object to create.
|
virtual |
Force of the object to create.
|
virtual |
Clears out all vertices.
|
virtual |
Adds the specified vertex to the end of the vertex list. Vertices are specified in geocentric.
|
virtual |
Returns the number of vertices in the vertex list.
Returns the vertex at the specified index into the vertex list.
| DtException | if outside current vertex range (0 to numberOfVertices - 1) Vertices are specified in geocentric. |
|
virtual |
Heading of object to create. Only applicable to single-point objects. 0 is north, clockwise, in radians.
|
virtual |
Heading of object to create. Only applicable to single-point objects. 0 is north, clockwise, in radians.
|
virtual |
|
virtual |
Pitch to create object. Clockwise in radians.
|
virtual |
Pitch to create object. Clockwise in radians.
|
virtual |
|
virtual |
Indicated whether the object is a closed figure. Applies only to multi-point objects.
|
virtual |
Indicated whether the object is a closed figure. Applies only to multi-point objects.
|
virtual |
Indicated whether the object projected onto the terrain in the Z direction. Applies only to control/overlay objects.
|
virtual |
Indicated whether the object projected onto the terrain in the Z direction. Applies only to control/overlay objects.
|
virtual |
Indicated whether the object is clamped to terrain Applies only to entities.
|
virtual |
Indicated whether the object is clamped to terrain Applies only to entities.
|
virtual |
Indicated whether the object is aggregated Is only meaningful with respect to aggregates.
|
virtual |
Indicated whether the object is aggregated Is only meaningful with respect to aggregates.
|
virtual |
Text representation of this command.
Implements DtSimCommand.
|
virtual |
Returns the size in bytes of the network representation of the class. This is the size in bytes of the DtNetSimSimCommand structure. Derived classes should take into acount the size returned by this class when overriding (they should call down to this class and add the result to their additional size).
Reimplemented from DtSimCommand.
|
virtual |
Sets mySubsimCommand member from the incoming contentBuffer (cast to type DtNetSimSimCommand). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimCommand::netRepSize().
Reimplemented from DtSimCommand.
|
virtual |
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimSimCommand*, and then sets the mySubsimCommand member in the DtNetSimSimCommand from mySubsimCommand. Derived classes should call down to the base class version of setToNet() at the start of the function (before doing any processing on the network representation) They can then start to fill in their network data, starting at the location myNetRep + DtSimCommand::netRepSize().
Reimplemented from DtSimCommand.
|
virtual |
Set any Admin Content messages passed on initialization.
|
virtual |
|
virtual |
|
virtual |
Set any Interface Content messages passed on initialization.
|
virtual |
|
virtual |
|
virtual |
Recreates admin content from the encoded buffer and adds it to the list.
|
virtual |
For those that support it, the appearance.
|
virtual |
|
virtual |
Encodes admin content and adds to admin contents.
|
virtual |
Recreates interface content from the encoded buffer and adds it to the list.
|
virtual |
Encodes admin content and adds to interface contents.
|
virtual |
Accessors for extended data.
|
virtual |
Accessors for extended labels.
|
virtual |
Accessors for user data.
|
virtual |
|
virtual |
|
virtual |
The UUID that will be used when creating this object. This UUID will be passed into the object constructor.
|
virtual |
|
static |
Returns a new instance of this class.
|
protectedvirtual |
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter members in its DtReaderWriterRegistry (collection of child DtReaderWriter nodes). If a given member in the registry is of type DtReaderWriterFile, and the searchPath is specified with a non-NULL string, then file to be read in is searched for in the given path.
Reimplemented from DtReaderWriter.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Local only. DtRwStringList keeps the string rep of all the commands.
|
protected |
Local only. DtRwStringList keeps the string rep of all the commands.