![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2003 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: colorizedSymbol.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef COLORIZEDSYMBOL_H 00013 #define COLORIZEDSYMBOL_H 00014 00015 #include "symbology/symbol.h" 00016 00017 class QColor; 00018 00019 #include "symbology/symbologyDefines.h" 00020 class DT_DLL_symbology DtColorizedSymbol : public DtSymbol 00021 { 00022 00023 public: 00024 00026 DtColorizedSymbol(DtSymbolDrawer& d); 00027 00029 virtual ~DtColorizedSymbol(); 00030 00032 DtColorizedSymbol(const DtColorizedSymbol& orig); 00033 00035 DtColorizedSymbol& operator=(const DtColorizedSymbol& rhs); 00036 00037 virtual DtSymbol* clone() const; 00038 00039 virtual QColor* color() const; 00040 virtual void setColor(const QColor& col); 00041 00042 virtual void clearColor(); 00043 00044 bool operator==(const DtColorizedSymbol& orig) const; 00045 bool operator!=(const DtColorizedSymbol& orig) const; 00046 00047 virtual bool transparentCacheChanged() const; 00048 00050 virtual int lineWidth() const; 00051 virtual void setLineWidth(int i); 00052 00053 private: 00055 DtColorizedSymbol(); 00056 00057 public: 00058 static DtSymbol* create(DtSymbolDrawer& drawer); 00059 00060 protected: 00061 QColor* myColor; 00062 int myLineWidth; 00063 }; 00064 00065 #endif