VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtTerrainModelData Class Reference
Inheritance diagram for DtTerrainModelData:
Inheritance graph
[legend]

Public Member Functions

 DtTerrainModelData ()
virtual ~DtTerrainModelData ()
 DtTerrainModelData (const DtTerrainModelData &orig)
DtTerrainModelDataoperator= (const DtTerrainModelData &rhs)
virtual void activateAll (bool)
 Activate or deactivate all elements in the terrain model.
virtual bool pruneInactiveVectorFeatures ()
virtual bool active () const
 Returns true if any items contained in the terrain model are active.
virtual DtTerrainModelDataclone () const
 Returns a clone of this item.
virtual void activateSegment (const DtNetworkSpecElement *parent, const DtNetworkElement *segment)
 Activates/deactivates segments in this edge list for drawing purposes.
virtual void deactivateSegment (const DtNetworkSpecElement *parent, const DtNetworkElement *segment)
virtual bool segmentActive (const DtNetworkSpecElement *parent, const DtNetworkElement *segment) const
void setIsPoint (bool b)
bool isPoint () const
int numElements () const
const QHash< void
*, DtSegmentList > & 
vectorFeatures () const
QHash< void *, DtSegmentList > & vectorFeatures ()
virtual const QVector< DtPoint > * getAllPoints () const
virtual DtModelDataType type () const
 \ brief Returns the type of this model data
- Public Member Functions inherited from DtEnvironmentalModelData
 DtEnvironmentalModelData ()
 DtEnvironmentalModelData (const DtEnvironmentalModelData &orig)
virtual ~DtEnvironmentalModelData ()
DtEnvironmentalModelDataoperator= (const DtEnvironmentalModelData &rhs)
virtual bool hasColor () const
virtual void setColor (QColor color)
virtual QColor color (bool applyAlpha=false) const
virtual void setRawAppearance (int app)
 Bypasses bit masking for line width and appearance and just sets the appearance field.
virtual int rawAppearance () const
 Appearance. Zero by default.
virtual void setAppearance (int app)
 Because the high 4 bits are used for line width, the only supported bits for appearance are the lower 28 bits.
virtual int appearance () const
virtual void setLineWidth (int width)
 Note that the color shares the myAppearance variable, using the high 4 bits.
virtual int lineWidth () const
virtual void setFillStyle (int style)
 Note that this shares the myAppearance variable, using the 12-15 bits.
virtual int fillStyle () const
virtual void setLineStyle (int style)
 Note that this shares the myAppearance variable, using the 8-11 bits line style is defined as Qt::PenStyle plus 1 with 0 being undefined.
virtual int lineStyle () const
virtual void setUserData (DtArchivableObject *obj)
 Allow for setting and retrieving of user data, which can be anything.
virtual DtArchivableObjectuserData ()
virtual void setTransparencyLevel (int i)
 Allow for transparency level of object from 0 (opaque) to 100 (completely transparent).
virtual int transparencyLevel () const
virtual void setCoordinateSystemType (int)
virtual int coordinateSystemType () const
virtual bool isControlPoint () const
 Questions to ask about this object Accessors to return info about the category.
virtual bool isAnyRoute () const
virtual bool isRoute () const
virtual bool isArea () const
virtual bool isAnyArea () const
virtual bool isObstacle () const
virtual bool isPhaseLine () const
virtual bool isVrfRoute () const
virtual bool isPuff () const
- Public Member Functions inherited from DtModelData
 DtModelData ()
 DtModelData (const DtModelData &orig)
virtual ~DtModelData ()
DtModelDataoperator= (const DtModelData &rhs)
virtual const DtModelKeykey () const
 Key is a unique identifier for the symbol.
virtual void setKey (const DtModelKey &k)
virtual const DtModelKeymodelKey () 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 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 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 DtPointgetOriginPoint () 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
DtArchiverarchiver ()
 Returns the archiver of this object.
virtual void setLevel (int i)
virtual int level () const
virtual DtArchivableObjectclone ()
 Allows for cloning of this object.

Protected Member Functions

void copyList (const QHash< void *, DtSegmentList > &)
virtual DtSegmentListsegmentList (const DtNetworkSpecElement *parent)
virtual void setOn (DtSegmentList &list, const DtNetworkElement *segment, bool onOff)

Protected Attributes

QHash< void *, DtSegmentListmyVectorFeatures
bool myIsPoint
- Protected Attributes inherited from DtEnvironmentalModelData
QColor myColor
int myAppearance
DtPtrQList< DtArchivableObject * > myUserData
 User a ptr list such that objects that are contained in this list can be recrated when read in (if they have a valid creator).
int myCoordinateSystemType
 Saved out as coordinate system type.
- Protected Attributes inherited from DtModelData
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
DtArchivermyArchiver

Additional Inherited Members

- Signals inherited from DtModelData
void modelDataDestroyed (const QString &)
 Emitted from the destructor.
- Static Public Member Functions inherited from DtEnvironmentalModelData
static DtArchivableObjectcreate ()
static QColor mapColorFrom8Bit (unsigned char iColor)
static unsigned char mapColorTo8Bit (QColor color)

Constructor & Destructor Documentation

DtTerrainModelData::DtTerrainModelData ( )
virtual DtTerrainModelData::~DtTerrainModelData ( )
virtual
DtTerrainModelData::DtTerrainModelData ( const DtTerrainModelData orig)

Member Function Documentation

DtTerrainModelData& DtTerrainModelData::operator= ( const DtTerrainModelData rhs)
virtual void DtTerrainModelData::activateAll ( bool  )
virtual

Activate or deactivate all elements in the terrain model.

virtual bool DtTerrainModelData::pruneInactiveVectorFeatures ( )
virtual
virtual bool DtTerrainModelData::active ( ) const
virtual

Returns true if any items contained in the terrain model are active.

virtual DtTerrainModelData* DtTerrainModelData::clone ( ) const
virtual

Returns a clone of this item.

virtual void DtTerrainModelData::activateSegment ( const DtNetworkSpecElement parent,
const DtNetworkElement segment 
)
virtual

Activates/deactivates segments in this edge list for drawing purposes.

As a side effect of adding or removing segments, the point list is destroyed and NULLed out so it must be recreated when updating model data

virtual void DtTerrainModelData::deactivateSegment ( const DtNetworkSpecElement parent,
const DtNetworkElement segment 
)
virtual
virtual bool DtTerrainModelData::segmentActive ( const DtNetworkSpecElement parent,
const DtNetworkElement segment 
) const
virtual
void DtTerrainModelData::setIsPoint ( bool  b)
inline

References myIsPoint.

bool DtTerrainModelData::isPoint ( ) const
inline

References myIsPoint.

int DtTerrainModelData::numElements ( ) const
inline

References myVectorFeatures.

const QHash< void *, DtSegmentList > & DtTerrainModelData::vectorFeatures ( ) const
inline

References myVectorFeatures.

QHash< void *, DtSegmentList > & DtTerrainModelData::vectorFeatures ( )
inline

References myVectorFeatures.

virtual const QVector<DtPoint>* DtTerrainModelData::getAllPoints ( ) const
virtual

Reimplemented from DtModelData.

virtual DtModelDataType DtTerrainModelData::type ( ) const
virtual

\ brief Returns the type of this model data

Reimplemented from DtEnvironmentalModelData.

void DtTerrainModelData::copyList ( const QHash< void *, DtSegmentList > &  )
protected
virtual DtSegmentList& DtTerrainModelData::segmentList ( const DtNetworkSpecElement parent)
protectedvirtual
virtual void DtTerrainModelData::setOn ( DtSegmentList list,
const DtNetworkElement segment,
bool  onOff 
)
protectedvirtual

Member Data Documentation

QHash<void*, DtSegmentList> DtTerrainModelData::myVectorFeatures
mutableprotected

Referenced by numElements(), and vectorFeatures().

bool DtTerrainModelData::myIsPoint
protected

Referenced by isPoint(), and setIsPoint().


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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)