VR-Forces 4.2 Class Documentation
pointObjSymbol.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: pointObjSymbol.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef POINTOBJSYMBOL_H
13 #define POINTOBJSYMBOL_H
14 
16 
17 
18 
19 class DtLineSymbol;
20 class DtTTSSymbol;
21 class QPolygon;
22 
26 
29 {
30 public:
32  {
33  DtPointObjectCentered = 0,
34  DtPointObjectBottomCentered = 1
35  };
36 
37 public:
38 
41 
43  virtual ~DtPointObjectSymbol();
44 
47 
50 
51  virtual void setHighlight(const bool highlight);
52  virtual bool highlight() const;
53  virtual void setOrigin(const QPoint & center);
54  virtual void setOrigin(int x, int y );
55  virtual const DtDisplayPoint centerPoint() const;
56  virtual const QPoint origin() const;
57  virtual bool select(const QPoint& point);
58  virtual bool select(const QPoint& point, const QSize& s);
59  virtual QRect selBbox() const;
60  virtual void shift(QPoint p);
61  virtual DtSymbol* clone() const;
62 
64  virtual bool adjustPoints(QPolygon& pnts, bool constrain);
65  virtual bool supportsRightClickDialog() const;
66 
67  void setAlignment(DtPointObjectAlignment);
68  DtPointObjectAlignment alignment() const;
69 
70  virtual void draw(DtSymbol* symbol, QPainter& paint) const;
71  virtual void setRotateToHeading(bool b);
72  virtual bool rotateToHeading() const;
73  virtual void setRotationValue(double d);
74  virtual double rotationValue() const;
75 
76 private:
79 
80 public:
81  static DtSymbol* create(DtSymbolDrawer& drawer);
82 
83 protected:
87 };
88 
90 {
91  myAlignment = i;
92 }
93 
95 {
96  return myAlignment;
97 }
98 
99 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)