![]() |
VR-Forces 4.1.1 Class Documentation
|
The back end data that will be used to construct a symbol. More...

Signals | |
| void | modelDataDestroyed (const QString &) |
| Emitted from the destructor. | |
Public Member Functions | |
| DtModelData () | |
| DtModelData (const DtModelData &orig) | |
| virtual | ~DtModelData () |
| DtModelData & | operator= (const DtModelData &rhs) |
| virtual const DtModelKey & | key () const |
| Key is a unique identifier for the symbol. | |
| virtual void | setKey (const DtModelKey &k) |
| virtual const DtModelKey & | modelKey () const |
| Model Key is the key that can translate this model data into a symbol through the symbol mapper,aka entity type. | |
| virtual void | setModelKey (const DtModelKey &k) |
| virtual void | setAllPoints (const QVector< DtPoint > *pts) |
| virtual const QVector< DtPoint > * | getAllPoints () const |
| virtual void | setPoint (int iIndex, const DtPoint &pnt) |
| Set a point at the particular index (if it is not out of range) | |
| virtual void | insertPoint (int iIndex, const DtPoint &pnt) |
| Inserts a point at the particular index (if it is not out of range) | |
| virtual void | removePoint (int iIndex) |
| Removes the point at the particular index. | |
| virtual void | setName (const QString &name) |
| The name of this symbol, usually the marking text. | |
| virtual const QString & | getName () const |
| virtual void | setLabel (const QString &name) |
| The label of this symbol. | |
| virtual const QString & | getLabel () const |
| virtual void | setForceId (int id) |
| Set what force this symbol belongs to, if appropriate. | |
| virtual int | getForceId () const |
| virtual void | updateFromModel () |
| Re-implement in derived classes that interact with your model. | |
| virtual bool | forceUpdate () const |
| Return true if this model data should always be updated regardless of cache state change. | |
| virtual void | setForceUpdate (bool b) |
| virtual int | rawAppearance () const |
| Appearance. Zero by default. | |
| virtual DtModelDataType | type () const |
| \ brief Returns the type of this model data | |
| virtual QString | typeStr () |
| Returns the string type of this model data. | |
| virtual DtEntityMapperKey | entityMapperKey () const |
| Returns an entity mapper key that identifies this type of object. | |
| virtual void | setIsPublished (bool b) |
| Set to true if this item is published on the network. | |
| virtual bool | isPublished () const |
| virtual void | setCanPublish (bool b) |
| Set to true if this item is can be published on the network. | |
| virtual bool | canPublish () const |
| virtual void | setDeleteFromLayer (bool b) |
| Return true if this object can be deleted from an overlay layer. | |
| virtual bool | deleteFromLayer () const |
| virtual void | setMustBeOnLayer (bool b) |
| Set to true if this item must be on a layer. By default returns false. | |
| virtual bool | mustBeOnLayer () const |
| virtual bool | isInExtent (const DtExtent &) const |
| Returns true if the model data can be drawn within the give extent. | |
| virtual const QStringList & | parents () const |
| The ability to add multiple parent's exists, however the system will only currently support the first parent in the list. | |
| virtual void | setParents (const QStringList &parent) |
| virtual void | addParent (const QString &parent) |
| virtual void | removeParent (const QString &parent) |
| virtual void | changeParentName (const QString &oldName, const QString &newName) |
| virtual bool | canEdit () const |
| Return true/false if this item can be edited. By default is true. | |
| virtual void | setCanEdit (bool) |
| void | setChangedFlags (int) |
| int | changedFlags () const |
| virtual void | setOriginPoint (double x=0, double y=0, double z=0) |
| The first point in the point list is defined as the origin. | |
| virtual void | setOriginPoint (const DtPoint &pnt) |
| The first point in the point list is defined as the origin. | |
| virtual const DtPoint * | getOriginPoint () const |
| The first point in the point list is defined as the origin. | |
Public Member Functions inherited from DtArchivableObject | |
| DtArchivableObject (QString name, DtArchivableObjectCreator fcn) | |
| This constructor will add this object to the archivable object factory. | |
| DtArchivableObject (QString name) | |
| DtArchivableObject () | |
| virtual | ~DtArchivableObject () |
| virtual QString | name () const |
| DtArchiver * | archiver () |
| Returns the archiver of this object. | |
| virtual void | setLevel (int i) |
| virtual int | level () const |
| virtual DtArchivableObject * | clone () |
| Allows for cloning of this object. | |
Protected Member Functions | |
| virtual bool | isInExtent (const DtExtent &, const QVector< DtPoint > *) const |
| virtual bool | isInExtent (const DtExtent &, const QVector< DtVector > *) const |
| virtual void | read (QTextStream &s) |
| Read/write points. | |
| virtual void | write (QTextStream &s) |
Protected Attributes | |
| QStringList | myParents |
| bool | myCanEdit |
| QVector< DtPoint > * | myPoints |
| QString | myName |
| QString | myLabel |
| QString | myTypeString |
| DtModelKey | myKey |
| DtModelKey | myModelKey |
| int | myForceId |
| int | myChangedFlags |
| bool | myForceUpdate |
| bool | myIsPublished |
| bool | myCanPublish |
| bool | myMustBeOnLayer |
| bool | myDeleteFromLayer |
Protected Attributes inherited from DtArchivableObject | |
| DtArchiver * | myArchiver |
The back end data that will be used to construct a symbol.
This information should be filled by your own backend in order to properly tie it in with the drawing front end. Override the following if you have more necessary data
| DtModelData::DtModelData | ( | ) |
| DtModelData::DtModelData | ( | const DtModelData & | orig | ) |
|
virtual |
| DtModelData& DtModelData::operator= | ( | const DtModelData & | rhs | ) |
|
virtual |
Key is a unique identifier for the symbol.
|
virtual |
|
virtual |
Model Key is the key that can translate this model data into a symbol through the symbol mapper,aka entity type.
|
virtual |
|
virtual |
The first point in the point list is defined as the origin.
|
virtual |
The first point in the point list is defined as the origin.
|
virtual |
The first point in the point list is defined as the origin.
Reimplemented in DtFormationModelData.
|
virtual |
|
virtual |
Reimplemented in DtTerrainModelData.
|
virtual |
Set a point at the particular index (if it is not out of range)
|
virtual |
Inserts a point at the particular index (if it is not out of range)
|
virtual |
Removes the point at the particular index.
|
virtual |
The name of this symbol, usually the marking text.
|
virtual |
|
virtual |
The label of this symbol.
|
virtual |
|
virtual |
Set what force this symbol belongs to, if appropriate.
standard convention has 1 for friendly, 2 for hostile, 3 for neutral, and 0 for unknown.
|
virtual |
|
virtual |
Re-implement in derived classes that interact with your model.
|
virtual |
Return true if this model data should always be updated regardless of cache state change.
By default returns false
|
virtual |
|
virtual |
Appearance. Zero by default.
Reimplemented in DtEnvironmentalModelData.
|
virtual |
\ brief Returns the type of this model data
Reimplemented in DtTerrainModelData, DtEnvironmentalModelData, DtFormationModelData, and DtCompassModelData.
|
virtual |
Returns the string type of this model data.
|
virtual |
Returns an entity mapper key that identifies this type of object.
If modelKey is not empty, returns that
Reimplemented in DtFormationModelData.
|
virtual |
Set to true if this item is published on the network.
|
virtual |
|
virtual |
Set to true if this item is can be published on the network.
|
virtual |
|
virtual |
Return true if this object can be deleted from an overlay layer.
Default is true
|
virtual |
|
virtual |
Set to true if this item must be on a layer. By default returns false.
|
virtual |
Returns true if the model data can be drawn within the give extent.
|
virtual |
The ability to add multiple parent's exists, however the system will only currently support the first parent in the list.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Return true/false if this item can be edited. By default is true.
|
virtual |
|
inline |
References myChangedFlags.
|
inline |
References myChangedFlags.
|
signal |
Emitted from the destructor.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Read/write points.
Reimplemented from DtArchivableObject.
|
protectedvirtual |
Reimplemented from DtArchivableObject.
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by changedFlags(), and setChangedFlags().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |