![]() |
VR-Forces 4.0.4 Class Documentation
|
Dt2DGraphicalObjectStateRecord implements the 2d graphical object state record for the remote graphics API. More...

Public Member Functions | |
| Dt2DGraphicalObjectStateRecord () | |
| Constructor. | |
| Dt2DGraphicalObjectStateRecord (const Dt2DGraphicalObjectStateRecord &orig) | |
| Copy Constructor. | |
| const Dt2DGraphicalObjectStateRecord & | operator= (const Dt2DGraphicalObjectStateRecord &orig) |
| Assignment Operator. | |
| virtual | ~Dt2DGraphicalObjectStateRecord () |
| Destructor. | |
| virtual DtEnvironmentalRecord * | clone () const |
| Clone. | |
| virtual void | setColor (int r, int g, int b, int a) |
| Set/Get the color. | |
| virtual void | getColor (int &r, int &g, int &b, int &a) const |
| virtual void | setFillPattern (int pattern) |
| Set/Get the fill pattern. | |
| virtual int | fillPattern () const |
| virtual void | setFlashing (bool yesNo) |
| Set/Get flashing. | |
| virtual bool | flashing () const |
| virtual bool | setNumberOfApplicationIds (int newNumberOfAppIds) |
| virtual int | numberOfApplicationIds () const |
| virtual bool | setApplicationId (int index, const DtGlobalObjectDesignator &subID) |
| virtual bool | getApplicationId (int index, DtGlobalObjectDesignator &subID) const |
| virtual bool | setNumberOfVertices (unsigned int newNumberOfVertices) |
| virtual unsigned int | numberOfVertices () const |
| virtual bool | setVertex (unsigned int index, const DtVector &loc) |
| virtual bool | getVertex (unsigned int index, DtVector &loc) |
| virtual bool | setNumberOfParentOverlays (int newNumberOfParentOverlays) |
| virtual int | numberOfParentOverlays () const |
| virtual bool | setParentOverlay (int index, const DtString &name) |
| virtual bool | getParentOverlay (int index, DtString &name) const |
| virtual void | setWindowName (const DtString &name) |
| Set/Get Window Name. | |
| virtual const DtString & | windowName () const |
| virtual void | setUserData (const char *data, int length) |
| Set/Get user data. | |
| virtual const char * | userData (int *length=0) const |
| virtual bool | createNetworkRepresentation () |
| Create the record's network representation. | |
| const DtNet2DGraphicalObjectStateRecord * | objectNetRep () const |
| returns the network representation of the environmental record | |
| DtNet2DGraphicalObjectStateRecord * | objectNetRep () |
| virtual void | setFromNet (const DtNetEnvironmentalRecord &buffer) |
| used by the PDU class to fill in the network representation | |
| virtual int | netRepSize () const |
| returns the size of the net representation, in bytes. | |
Protected Member Functions | |
| virtual bool | resizeNetRep (int newSize) |
| virtual int | verticesNetSize () const |
| virtual void * | pointerToVertices () const |
| virtual void * | pointerToApplicationIds () const |
| virtual void * | pointerToParentOverlays () const |
| virtual void * | pointerToWindowName () const |
| virtual void * | pointerToUserData () const |
Protected Attributes | |
| int | myColorR |
| int | myColorG |
| int | myColorB |
| int | myColorA |
| int | myFillPattern |
| bool | myFlashing |
| std::vector< DtVector > | myVertices |
| DtGlobalObjectDesignatorList | myApplicationIds |
| DtStringList | myParentOverlays |
| DtString | myWindowName |
| char * | myUserData |
| int | myUserDataLength |
| int | myNetRepSize |
Dt2DGraphicalObjectStateRecord implements the 2d graphical object state record for the remote graphics API.
Constructor.
| Dt2DGraphicalObjectStateRecord::Dt2DGraphicalObjectStateRecord | ( | const Dt2DGraphicalObjectStateRecord & | orig | ) |
Copy Constructor.
| virtual Dt2DGraphicalObjectStateRecord::~Dt2DGraphicalObjectStateRecord | ( | ) | [virtual] |
Destructor.
| const Dt2DGraphicalObjectStateRecord& Dt2DGraphicalObjectStateRecord::operator= | ( | const Dt2DGraphicalObjectStateRecord & | orig | ) |
Assignment Operator.
| virtual DtEnvironmentalRecord* Dt2DGraphicalObjectStateRecord::clone | ( | ) | const [virtual] |
Clone.
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual void Dt2DGraphicalObjectStateRecord::setColor | ( | int | r, |
| int | g, | ||
| int | b, | ||
| int | a | ||
| ) | [virtual] |
Set/Get the color.
| virtual void Dt2DGraphicalObjectStateRecord::getColor | ( | int & | r, |
| int & | g, | ||
| int & | b, | ||
| int & | a | ||
| ) | const [virtual] |
| virtual void Dt2DGraphicalObjectStateRecord::setFillPattern | ( | int | pattern | ) | [virtual] |
Set/Get the fill pattern.
| virtual int Dt2DGraphicalObjectStateRecord::fillPattern | ( | ) | const [virtual] |
| virtual void Dt2DGraphicalObjectStateRecord::setFlashing | ( | bool | yesNo | ) | [virtual] |
Set/Get flashing.
| virtual bool Dt2DGraphicalObjectStateRecord::flashing | ( | ) | const [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::setNumberOfApplicationIds | ( | int | newNumberOfAppIds | ) | [virtual] |
| virtual int Dt2DGraphicalObjectStateRecord::numberOfApplicationIds | ( | ) | const [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::setApplicationId | ( | int | index, |
| const DtGlobalObjectDesignator & | subID | ||
| ) | [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::getApplicationId | ( | int | index, |
| DtGlobalObjectDesignator & | subID | ||
| ) | const [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::setNumberOfVertices | ( | unsigned int | newNumberOfVertices | ) | [virtual] |
| virtual unsigned int Dt2DGraphicalObjectStateRecord::numberOfVertices | ( | ) | const [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::setVertex | ( | unsigned int | index, |
| const DtVector & | loc | ||
| ) | [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::getVertex | ( | unsigned int | index, |
| DtVector & | loc | ||
| ) | [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::setNumberOfParentOverlays | ( | int | newNumberOfParentOverlays | ) | [virtual] |
| virtual int Dt2DGraphicalObjectStateRecord::numberOfParentOverlays | ( | ) | const [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::setParentOverlay | ( | int | index, |
| const DtString & | name | ||
| ) | [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::getParentOverlay | ( | int | index, |
| DtString & | name | ||
| ) | const [virtual] |
| virtual void Dt2DGraphicalObjectStateRecord::setWindowName | ( | const DtString & | name | ) | [virtual] |
Set/Get Window Name.
| virtual const DtString& Dt2DGraphicalObjectStateRecord::windowName | ( | ) | const [virtual] |
| virtual void Dt2DGraphicalObjectStateRecord::setUserData | ( | const char * | data, |
| int | length | ||
| ) | [virtual] |
Set/Get user data.
| virtual const char* Dt2DGraphicalObjectStateRecord::userData | ( | int * | length = 0 | ) | const [virtual] |
| virtual bool Dt2DGraphicalObjectStateRecord::createNetworkRepresentation | ( | ) | [virtual] |
Create the record's network representation.
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
returns the network representation of the environmental record
| virtual void Dt2DGraphicalObjectStateRecord::setFromNet | ( | const DtNetEnvironmentalRecord & | buffer | ) | [virtual] |
used by the PDU class to fill in the network representation
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual int Dt2DGraphicalObjectStateRecord::netRepSize | ( | ) | const [virtual] |
returns the size of the net representation, in bytes.
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual bool Dt2DGraphicalObjectStateRecord::resizeNetRep | ( | int | newSize | ) | [protected, virtual] |
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual int Dt2DGraphicalObjectStateRecord::verticesNetSize | ( | ) | const [protected, virtual] |
| virtual void* Dt2DGraphicalObjectStateRecord::pointerToVertices | ( | ) | const [protected, virtual] |
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual void* Dt2DGraphicalObjectStateRecord::pointerToApplicationIds | ( | ) | const [protected, virtual] |
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual void* Dt2DGraphicalObjectStateRecord::pointerToParentOverlays | ( | ) | const [protected, virtual] |
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual void* Dt2DGraphicalObjectStateRecord::pointerToWindowName | ( | ) | const [protected, virtual] |
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
| virtual void* Dt2DGraphicalObjectStateRecord::pointerToUserData | ( | ) | const [protected, virtual] |
Reimplemented in Dt2DGraphicalObjectTextStateRecord.
int Dt2DGraphicalObjectStateRecord::myColorR [protected] |
int Dt2DGraphicalObjectStateRecord::myColorG [protected] |
int Dt2DGraphicalObjectStateRecord::myColorB [protected] |
int Dt2DGraphicalObjectStateRecord::myColorA [protected] |
int Dt2DGraphicalObjectStateRecord::myFillPattern [protected] |
bool Dt2DGraphicalObjectStateRecord::myFlashing [protected] |
std::vector<DtVector> Dt2DGraphicalObjectStateRecord::myVertices [protected] |
DtGlobalObjectDesignatorList Dt2DGraphicalObjectStateRecord::myApplicationIds [protected] |
DtString Dt2DGraphicalObjectStateRecord::myWindowName [protected] |
char* Dt2DGraphicalObjectStateRecord::myUserData [protected] |
int Dt2DGraphicalObjectStateRecord::myUserDataLength [protected] |
int Dt2DGraphicalObjectStateRecord::myNetRepSize [protected] |