VR-Forces 4.1 Class Documentation
nameLabelSymbol.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2003 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: nameLabelSymbol.h,v $ $Revision: 1.26 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef NAMELABELSYMBOL_H
13 #define NAMELABELSYMBOL_H
14 
16 
17 #include <QtGui/QColor>
18 
19 class DtTTSSymbol;
20 class QFont;
21 
24 {
25 
26 public:
27 
31 
33  virtual ~DtNameLabelSymbol();
34 
37 
40 
41  virtual DtSymbol* clone() const;
42 
43  virtual DtTTSSymbol* name();
44  virtual void setName(DtTTSSymbol* s);
45 
46  virtual DtTTSSymbol* label();
47  virtual void setLabel(DtTTSSymbol* s);
48 
49  virtual DtTTSSymbol* layer();
50  virtual void setLayer(DtTTSSymbol* s);
51 
52  virtual int resetLabelPositions() const;
53 
56  virtual bool offsetFromBottom() const;
57  virtual void setOffsetFromBottom(bool b);
58 
60  virtual void setColor(const QColor& col);
61 
63  virtual void setMainSymbolColor(const QColor& col);
64  virtual QColor* mainSymbolColor() const;
65 
67  virtual void setPenColor(const QColor& col);
68  virtual QColor penColor() const;
69 
70  virtual void setNeedsLabelUpdate(bool b);
71  virtual bool needsLabelUpdate() const;
72 
73  virtual bool addNameLabel() const;
74  virtual bool addLabelLabel() const;
75  virtual bool addLayerLabel() const;
76 
80  virtual bool canChangeFont() const;
81 
82  virtual void setName(const QString& name);
83  virtual QString getName() const;
84 
85  virtual void setLabel(const QString& label);
86  virtual QString getLabel() const;
87 
88  virtual void setLayer(const QString& label);
89  virtual QString getLayer() const;
90 
91  virtual const QFont* font() const;
92  virtual void setFontname(const QString& font);
93 
94  virtual bool adjustPoints(QPolygon& pnts, bool constrain);
95 
96  virtual void setEditable(bool b);
97  virtual bool editable() const;
98 
100  virtual void setAllowEditOnSelection(bool b);
101 
104  virtual bool supportsRightClickDialog() const;
105 
107  virtual bool freehand() const;
108 
110  virtual DtTTSSymbol* createNameSymbol();
111  virtual DtTTSSymbol* createLabelSymbol();
112  virtual void setLabelDrawer(DtSymbolDrawer* drawer);
113 
114  void setPositionLabelChildren(bool);
115  bool positionLabelChildren() const;
116 
117  virtual void copyDataFrom(const DtSymbol* symbol);
118 
119  virtual void clearColor();
120  virtual void clearMainSymbolColor();
121 
122 public:
123  static DtSymbol* create(DtSymbolDrawer& drawer);
124 
125 protected:
126  virtual DtTTSSymbol* createTextSymbol();
127 
128 protected:
129 
133 
134  QColor myLabelColor;
137 
138  QString myFontname;
139 
141 
143 };
144 
146 {
148 }
149 
151 {
153 }
154 
155 #endif

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)