VR-Forces 4.2 Class Documentation
aggregateSymbol.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2002 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: aggregateSymbol.h,v $ $Revision: 1.11 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtAggregateSymbol_H_
13 #define DtAggregateSymbol_H_
14 
17 
18 
19 
26 {
27 public:
28 
30  DtNoCalculation = 0,
33  DtCenterCalculationStyle_MAX
34  };
35 
39  virtual ~DtAggregateSymbol();
40 
43 
44  DtSymbol* clone() const;
45 
46  virtual void shift(QPoint p);
47 
48  virtual void setOrigin(int x, int y );
49  virtual void setOrigin(const QPoint& position);
50  virtual const DtDisplayPoint centerPoint() const;
51  virtual const QPoint origin() const;
52 
55  static DtAggregateSymbol* createAggregate(DtSymbolDrawer & drawer,
56  DtSymbolList* symbols);
57 
59  virtual void addAggregate(DtSymbol* symbols);
60 
62  virtual void draw(QPainter& paint) const;
63 
65  virtual QSize bbox() const;
66 
69  virtual QRect selBbox() const;
70 
72  virtual QSize aggregatesBbox() const;
73 
76  virtual QPoint unweightedAggregateCenter() const;
77 
82  virtual QPoint weightedAggregateCenter() const ;
83 
87  virtual DtSymbolList* createDeaggregateSymbols();
88 
90  virtual void deaggregateSymbol(DtSymbol* s);
91 
92  virtual bool overlapsSymbol(const DtSymbol & aSymbol,
93  const DtSymbol_OverlapTest aTest = DtSymbol_BoxPieces,
94  const float aTolerance = 0) const;
95 
98  virtual bool labelsOverlapsSymbol(const DtSymbol & aSymbol,
99  const DtSymbol_OverlapTest aTest = DtSymbol_BoundingBox,
100  const float aTolerance = 0) const;
101 
105  virtual void setCalculationStyle(DtCenterCalculationStyle style);
106 
107 private:
110 
111 protected:
113 };
114 
115 #endif //DtAggregateSymbol_H_
116 

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)