VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtIfModifyVrfObject Class Reference

class DtIfModifyVrfObject: More...

Inheritance diagram for DtIfModifyVrfObject:
Inheritance graph
[legend]

Public Member Functions

 DtIfModifyVrfObject ()
 default constructor More...
 
virtual ~DtIfModifyVrfObject ()
 destructor More...
 
 DtIfModifyVrfObject (const DtIfModifyVrfObject &orig)
 copy constructor More...
 
DtIfModifyVrfObjectoperator= (const DtIfModifyVrfObject &orig)
 assignment operator More...
 
virtual DtSimInterfaceContentclone () const
 Returns a newly created instance of a DtIfModifyVrfObject. More...
 
virtual int type () const
 Returns the string type of message, DtModifyVrfObjectMessageType (defined in msgTypes.h). More...
 
virtual int netRepSize () const
 
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize)
 
virtual bool setToNet ()
 
virtual void printDataToString (DtString &str)
 
virtual bool isNameSpecified ()
 Accessors for the value specified flags. More...
 
virtual bool isObjectTypeSpecified ()
 
virtual bool isForceTypeSpecified ()
 
virtual bool isObjectLabelSpecified ()
 
virtual bool isHeadingSpecified ()
 
virtual bool isClosedFigureSpecified ()
 
virtual bool isProjectionSpecified ()
 
virtual bool isObjectGeometrySpecified ()
 
virtual bool isAppearanceSpecified ()
 
virtual bool isOverlayParentSpecified ()
 
virtual bool isExtendedDataSpecified ()
 
virtual bool isExtendedLabelsSpecified ()
 
virtual bool isUserDataSpecified ()
 
virtual void setMarkingText (const DtString &objectName)
 All the mutators from DtIfCreateVrfObject are overridden here so that the value specified flags can be set. More...
 
virtual void setObjectType (const DtObjectType &objectType)
 Set the object type of the vrf object to create. More...
 
virtual void setForceType (const DtForceType forceType)
 Set the force type of the vrf object to create. More...
 
virtual void setObjectLabel (const DtString &objectLabel)
 Set the object label of the vrf object to create. More...
 
virtual void setPosition (const DtVector &position)
 In local (database) coordinates. More...
 
virtual void setOverlayParent (const DtString &overlayParent)
 Sets the overlay parent of this object. More...
 
virtual void setHeading (DtReal heading)
 0 is north, clockwise, in radians. More...
 
virtual void addVertex (const DtVector &vertex)
 This is where the actually object geometry goes position() is just an alias for the first vertex. More...
 
virtual void setProjection (bool projection)
 Do the Z elements of the vectors in the vertex list have meaning? More...
 
virtual void setClosedFigure (bool closedFigure)
 Does the last vertex connect back to the first? Obviously, this is undefined for a single vertex (but I suppose an argument could be made for that being a closed figure...) More...
 
virtual void setAppearance (const DtAppearance &appearance)
 Appearance. More...
 
virtual void setUserData (const DtString &userData)
 
virtual void setExtendedData (const std::map< std::string, std::string > &userData)
 
virtual void setExtendedData (const DtString &keyword, const DtString &data)
 
virtual void setExtendedLabels (const std::map< int, DtString > &extendedLabels)
 Set/get the object label of the vrf object to create. More...
 
virtual void setMergeExtendedData (bool)
 Sets whether or not extended data is to be merged with existing data or simply replace existing extended data. More...
 
virtual bool mergeExtendedData () const
 
void setStartPosition (const DtVector &position)
 These are here for back compatibility and should be removed after the next release. More...
 
void setEndPosition (const DtVector &position)
 
- Public Member Functions inherited from DtIfCreateVrfObject
 DtIfCreateVrfObject ()
 default constructor More...
 
virtual ~DtIfCreateVrfObject ()
 destructor More...
 
 DtIfCreateVrfObject (const DtIfCreateVrfObject &orig)
 copy constructor More...
 
DtIfCreateVrfObjectoperator= (const DtIfCreateVrfObject &orig)
 assignment operator More...
 
virtual unsigned long requestId () const
 Set/get the request Id for the message. More...
 
virtual void setRequestId (unsigned long requestId)
 
virtual void setUUID (const DtUUID &)
 Use this UUID to create object (if specified). If the UUID exists will be regenerated on creation. More...
 
virtual const DtUUIDuuid () const
 
virtual void setVrfProcessAddress (const DtSimulationAddress &address)
 Set/get the address of the VR-Forces process that we want to create the new vrf object. More...
 
virtual const DtSimulationAddress & vrfProcessAddress () const
 
virtual const DtStringmarkingText () const
 
virtual void setMarkingTextPrefix (const DtString &objectName)
 Set/get the prefix for the object name of the vrf object to create. More...
 
virtual const DtStringmarkingTextPrefix () const
 
virtual const DtObjectTypeobjectType () const
 
virtual DtForceType forceType () const
 
virtual const DtStringobjectLabel () const
 
virtual const std::map< int,
DtString > & 
extendedLabels () const
 
virtual const DtStringoverlayParent () const
 
virtual const DtVectorposition () const
 In geocentric coordinates. More...
 
virtual DtReal heading () const
 0 is north, clockwise, in radians. More...
 
virtual DtReal pitch () const
 Set to specify pitch. More...
 
virtual void setPitch (DtReal pitch)
 
virtual bool isPitchSpecified () const
 
virtual void clearPitchSpecified ()
 
virtual const std::vector
< DtVector > & 
vertexList () const
 This is where the actually object geometry goes position() is just an alias for the first vertex. More...
 
virtual const DtList & vertices () const
 Backwards compatible access to vertexList. More...
 
virtual bool projection () const
 Do the Z elements of the vectors in the vertex list have meaning? More...
 
virtual bool closedFigure () const
 Does the last vertex connect back to the first? Obviously, this is undefined for a single vertex (but I suppose an argument could be made for that being a closed figure...) More...
 
virtual const DtAppearance & appearance ()
 Appearance. More...
 
virtual bool createSubObjects () const
 Create SubObjects. More...
 
virtual void setCreateSubObjects (bool createSubObjects)
 
virtual bool addToOrganization () const
 If True (the default) and the object being created is an orgainzed object type (as specified by the is-organized flag in the OPD file), the newly created object will be added to the organization manager directly below the force level aggregate of this object's force. More...
 
virtual void setAddToOrganization (bool addToOrg)
 
virtual bool clampToGround () const
 If True (the default) the object will be created and placed on the nearest polygon. More...
 
virtual void setClampToGround (bool clamp)
 
virtual DtAggregateState initialAggregateState () const
 Set/get the initial aggregate state when creating an aggregate. More...
 
virtual void setInitialAggregateState (DtAggregateState aggregateState)
 
virtual std::list
< DtAdminContent * > * 
initialAdminContent ()
 Set any Admin Content messages passed on initialization. More...
 
virtual void setInitialAdminContent (std::list< DtAdminContent * > adminContent)
 
virtual void addInitialAdminContent (DtAdminContent *adminContent)
 
virtual std::list
< DtSimInterfaceContent * > * 
initialInterfaceContent ()
 Set any Interface Content messages passed on initialization. More...
 
virtual void setInitialInterfaceContent (std::list< DtSimInterfaceContent * > adminContent)
 
virtual void addInitialInterfaceContent (DtSimInterfaceContent *adminContent)
 
virtual void setAddToOrbat (bool)
 Whether or not this item (if it can be) is also added to the orbat. Default is false. More...
 
virtual bool addToOrbat () const
 
virtual void setSuperior (const DtUUID &)
 Sets the unit which should be the superior of this object. More...
 
virtual const DtUUIDsuperior () const
 
void setStartPosition (const DtVector &position)
 These are here for back compatibility and should be removed after the next release. More...
 
const DtVectorstartPosition () const
 
void setEndPosition (const DtVector &position)
 
const DtVectorendPosition () const
 
virtual void setExtendedData (const std::map< DtString, DtString > &)
 
virtual const std::map
< std::string, std::string > & 
extendedData () const
 
virtual DtString userData () const
 
virtual DtString initialFormation () const
 The formation name to set when creating an aggregate. More...
 
virtual void setInitialFormation (const DtString &formation)
 
virtual bool publishObject () const
 Sets whether or not to publish the object on the network once created. More...
 
virtual void setPublishObject (bool)
 
virtual bool connectToRadioNetwork () const
 Sets whether or not the object will be connected to any applicable radio networks on creation. More...
 
virtual void setConnectToRadioNetwork (bool)
 
- Public Member Functions inherited from DtSimInterfaceContent
virtual ~DtSimInterfaceContent ()
 
virtual bool update (const DtSimInterfaceContent *data)
 
virtual charnetRep ()
 
virtual void printContentType (DtString &str)
 
virtual void setUseSessionId (bool yesNo)
 
virtual bool useSessionId () const
 

Static Public Member Functions

static DtSimInterfaceContentcreator ()
 
- Static Public Member Functions inherited from DtIfCreateVrfObject
static DtSimInterfaceContentcreator ()
 
- Static Public Member Functions inherited from DtSimInterfaceContent
static DtSimInterfaceContentcreateInterfaceContent (int type)
 
static void addInterfaceContentCreatorFcn (int type, DtInterfaceContentCreatorFcn fcn)
 
static void setFactory (DtInterfaceContentFactory *factory)
 
static DtInterfaceContentFactoryfactory ()
 
static void registerContentTypePrinter (DtSimInterfaceContentTypePrinterFcn printFcn)
 

Protected Attributes

DtUUID myObjectIdentifier
 
bool myNameSpecified
 
bool myObjectTypeSpecified
 
bool myForceTypeSpecified
 
bool myObjectLabelSpecified
 
bool myOverlayParentSpecified
 
bool myHeadingSpecified
 
bool myClosedFigureSpecified
 
bool myProjectionSpecified
 
bool myObjectGeometrySpecified
 
bool myAppearanceSpecified
 
bool myUserDataSpecified
 
bool myExtendedDataSpecified
 
bool myExtendedLabelsSpecified
 
bool myMergeExtendedData
 
- Protected Attributes inherited from DtIfCreateVrfObject
DtU32 myRequestId
 
DtSimulationAddress myVrfProcessAddress
 
DtString myMarkingText
 
DtString myMarkingTextPrefix
 
DtObjectType myObjectType
 
DtForceType myForceType
 
DtUUID myUUID
 
DtString myObjectLabel
 
std::map< int, DtStringmyExtendedLabels
 
DtReal myHeading
 
bool myClosedFigure
 
bool myProjection
 
std::vector< DtVectormyVertexList
 
DtList myVertices
 Backwards compatible vertex list as a DtList. More...
 
DtAppearance myAppearance
 
bool myCreateSubObjects
 
bool myAddToOrganization
 
bool myClampToGround
 
bool myPublishObject
 
DtString myInitialFormation
 
DtString myOverlayParent
 
DtU8 myInitialAggregateState
 
std::list< DtAdminContent * > myAdminContent
 
std::list
< DtSimInterfaceContent * > 
myInterfaceContent
 
DtString myUserData
 
std::map< std::string,
std::string > 
myExtendedData
 
bool myConnectToRadioNetwork
 
bool myAddToOrbat
 
DtUUID mySuperiorUUID
 
DtReal myPitch
 
bool myPitchSpecified
 
- Protected Attributes inherited from DtSimInterfaceContent
charmyNetRep
 
bool myUseSessionId
 

Additional Inherited Members

- Protected Member Functions inherited from DtIfCreateVrfObject
void copyList (const DtList &fromList)
 Note that these next two methods are not virtual. More...
 
void emptyList ()
 Clean the list out. More...
 
- Protected Member Functions inherited from DtSimInterfaceContent
 DtSimInterfaceContent ()
 
 DtSimInterfaceContent (const DtSimInterfaceContent &orig)
 
const DtSimInterfaceContentoperator= (const DtSimInterfaceContent &orig)
 
virtual charcreateNetworkBuffer ()
 
- Static Protected Attributes inherited from DtSimInterfaceContent
static DtInterfaceContentFactorymyFactory
 
static
DtSimInterfaceContentTypePrinterFcn 
theContentTypePrinterFcn
 

Detailed Description

class DtIfModifyVrfObject:

Instances of DtIfModifyVrfObject are the message content for modify vrf object messages. The purpose of this message is to directly modify a DtVrfObject. For example, if you want to modify a control object’s label, or add a vertex to its object geometry, you would send this message. Do not send this message to modify the object name of organized entities (objects configured with an Organization Manager). Go through the object’s organization manager instead.

Content-Type: DtModifyVrfObjectMessageType

Parameters: object type: The DtObjectType of the object created.

global Id: The DtGlobalObjectDesignator of the object created.

object identifier: The object’s DtUUID

vertices: The DtList of vertices in database coordinates, that make up the object’s geometry.

object name: The object’s unique DtString name.

object label: A DtString label associated with the object (not required to be unique).

force type: The DtForceType of the object (from disEnums.h).

closed figure: A bool flag indicating whether vertices making up the object’s geometry form a closed figure or not.

projection: A bool flag indicating whether the object’s geometry is projected (the z-coordinate is meaningless).

overlay parent: The overlay this object belongs to.

Constructor & Destructor Documentation

DtIfModifyVrfObject::DtIfModifyVrfObject ( )

default constructor

virtual DtIfModifyVrfObject::~DtIfModifyVrfObject ( )
virtual

destructor

DtIfModifyVrfObject::DtIfModifyVrfObject ( const DtIfModifyVrfObject orig)

copy constructor

Member Function Documentation

DtIfModifyVrfObject& DtIfModifyVrfObject::operator= ( const DtIfModifyVrfObject orig)

assignment operator

virtual DtSimInterfaceContent* DtIfModifyVrfObject::clone ( ) const
virtual

Returns a newly created instance of a DtIfModifyVrfObject.

Reimplemented from DtIfCreateVrfObject.

virtual int DtIfModifyVrfObject::type ( ) const
virtual

Returns the string type of message, DtModifyVrfObjectMessageType (defined in msgTypes.h).

Reimplemented from DtIfCreateVrfObject.

virtual int DtIfModifyVrfObject::netRepSize ( ) const
virtual

Reimplemented from DtIfCreateVrfObject.

virtual bool DtIfModifyVrfObject::setFromNet ( const char contentBuffer,
unsigned  contentSize 
)
virtual

Reimplemented from DtIfCreateVrfObject.

virtual bool DtIfModifyVrfObject::setToNet ( )
virtual

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::printDataToString ( DtString str)
virtual

Reimplemented from DtIfCreateVrfObject.

static DtSimInterfaceContent* DtIfModifyVrfObject::creator ( )
static
virtual bool DtIfModifyVrfObject::isNameSpecified ( )
virtual

Accessors for the value specified flags.

virtual bool DtIfModifyVrfObject::isObjectTypeSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isForceTypeSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isObjectLabelSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isHeadingSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isClosedFigureSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isProjectionSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isObjectGeometrySpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isAppearanceSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isOverlayParentSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isExtendedDataSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isExtendedLabelsSpecified ( )
virtual
virtual bool DtIfModifyVrfObject::isUserDataSpecified ( )
virtual
virtual void DtIfModifyVrfObject::setMarkingText ( const DtString objectName)
virtual

All the mutators from DtIfCreateVrfObject are overridden here so that the value specified flags can be set.

Set the object name of the vrf object to create.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setObjectType ( const DtObjectType objectType)
virtual

Set the object type of the vrf object to create.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setForceType ( const DtForceType  forceType)
virtual

Set the force type of the vrf object to create.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setObjectLabel ( const DtString objectLabel)
virtual

Set the object label of the vrf object to create.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setPosition ( const DtVector position)
virtual

In local (database) coordinates.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setOverlayParent ( const DtString overlayParent)
virtual

Sets the overlay parent of this object.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setHeading ( DtReal  heading)
virtual

0 is north, clockwise, in radians.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::addVertex ( const DtVector vertex)
virtual

This is where the actually object geometry goes position() is just an alias for the first vertex.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setProjection ( bool  projection)
virtual

Do the Z elements of the vectors in the vertex list have meaning?

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setClosedFigure ( bool  closedFigure)
virtual

Does the last vertex connect back to the first? Obviously, this is undefined for a single vertex (but I suppose an argument could be made for that being a closed figure...)

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setAppearance ( const DtAppearance &  appearance)
virtual

Appearance.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setUserData ( const DtString userData)
virtual

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setExtendedData ( const std::map< std::string, std::string > &  userData)
virtual

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setExtendedData ( const DtString keyword,
const DtString data 
)
virtual

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setExtendedLabels ( const std::map< int, DtString > &  extendedLabels)
virtual

Set/get the object label of the vrf object to create.

Reimplemented from DtIfCreateVrfObject.

virtual void DtIfModifyVrfObject::setMergeExtendedData ( bool  )
virtual

Sets whether or not extended data is to be merged with existing data or simply replace existing extended data.

Default is to merge

virtual bool DtIfModifyVrfObject::mergeExtendedData ( ) const
virtual
void DtIfModifyVrfObject::setStartPosition ( const DtVector position)

These are here for back compatibility and should be removed after the next release.

void DtIfModifyVrfObject::setEndPosition ( const DtVector position)

Member Data Documentation

DtUUID DtIfModifyVrfObject::myObjectIdentifier
protected
bool DtIfModifyVrfObject::myNameSpecified
protected
bool DtIfModifyVrfObject::myObjectTypeSpecified
protected
bool DtIfModifyVrfObject::myForceTypeSpecified
protected
bool DtIfModifyVrfObject::myObjectLabelSpecified
protected
bool DtIfModifyVrfObject::myOverlayParentSpecified
protected
bool DtIfModifyVrfObject::myHeadingSpecified
protected
bool DtIfModifyVrfObject::myClosedFigureSpecified
protected
bool DtIfModifyVrfObject::myProjectionSpecified
protected
bool DtIfModifyVrfObject::myObjectGeometrySpecified
protected
bool DtIfModifyVrfObject::myAppearanceSpecified
protected
bool DtIfModifyVrfObject::myUserDataSpecified
protected
bool DtIfModifyVrfObject::myExtendedDataSpecified
protected
bool DtIfModifyVrfObject::myExtendedLabelsSpecified
protected
bool DtIfModifyVrfObject::myMergeExtendedData
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)