![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2000 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: entitySymbol.h,v $ $Revision: 1.31 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef ENTITYSYMBOL_H 00013 #define ENTITYSYMBOL_H 00014 00015 #include "symbology/movingObjectSymbol.h" 00016 00017 class DtTTSSymbol; 00018 class DtBMPSymbol; 00019 class DtPolygonSymbol; 00020 class DtCompositeLabelSymbol; 00021 00027 #include "symbology/symbologyDefines.h" 00028 class DT_DLL_symbology DtEntitySymbol : public DtMovingObjectSymbol 00029 { 00030 00031 public: 00032 00034 DtEntitySymbol(DtSymbolDrawer& d); 00035 00037 virtual ~DtEntitySymbol(); 00038 00040 DtEntitySymbol(const DtEntitySymbol& orig); 00041 00043 DtEntitySymbol& operator=(const DtEntitySymbol& rhs); 00044 00046 virtual void copyDataFrom(const DtSymbol* symbol); 00047 00048 virtual DtTTSSymbol* echelonId(); 00049 virtual void setEchelonId(DtTTSSymbol* s); 00050 00051 virtual DtTTSSymbol* objectId(); 00052 virtual void setObjectId(DtTTSSymbol* s); 00053 00054 virtual DtTTSSymbol* entityGuise(); 00055 virtual void setEntityGuise(DtTTSSymbol* s); 00056 00057 virtual DtTTSSymbol* embarkedObjects(); 00058 virtual void setEmbarkedObjects(DtTTSSymbol* s); 00059 00060 virtual DtPolygonSymbol* boundingBox(); 00061 virtual void setBoundingBox(DtPolygonSymbol* s); 00062 00063 virtual DtSymbol* clone() const; 00064 00065 virtual int resetLabelPositions() const; 00066 00067 virtual void applyGhosting(); 00068 virtual void removeGhosting(); 00069 virtual bool ghosted() const; 00070 00076 virtual void setPenColor(const QColor& color); 00077 00078 void setForceId(int); 00079 int forceId() const; 00080 00081 protected: 00082 virtual bool addToDrawOrder() const; 00083 00084 private: 00086 DtEntitySymbol(); 00087 00088 protected: 00089 00090 DtTTSSymbol* myEchelonId; 00091 DtTTSSymbol* myObjectId; 00092 DtTTSSymbol* myEntityGuise; 00093 DtTTSSymbol* myEmbarkedObjects; 00094 00095 DtPolygonSymbol* myBoundingBox; 00096 00097 int myForceId; 00098 00099 bool myGhosted; 00100 }; 00101 00102 inline void DtEntitySymbol::setForceId(int i) 00103 { 00104 myForceId = i; 00105 } 00106 00107 inline int DtEntitySymbol::forceId() const 00108 { 00109 return myForceId; 00110 } 00111 00112 #endif