VR-Forces 4.1 Class Documentation
formationSymbolUpdater.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: formationSymbolUpdater.h,v $ $Revision: 1.7 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DTFORMATIONSYMBOLUPDATER_H_
13 #define DTFORMATIONSYMBOLUPDATER_H_
14 
16 #include "tmqt/tmSymbolUpdater.h"
17 
19 class DtPolygonSymbol;
20 class DtNameLabelSymbol;
22 
24 {
25 public:
27 
28  virtual void init(DtTMArea* area);
29 
30  bool showBoundingBoxes() const;
31  void setShowBoundingBoxes(bool b);
32 
33  void setSymbolMapper(DtFormationSymbolMapper* m);
34 
35 protected:
36  static void formationSymbolUpdate(const DtTMSymbolUpdater* updater, DtSymbol& s, const DtModelData& d, void* usr);
37  virtual void processFormationSymbolUpdate(DtSymbol& s, const DtModelData& d, void* usr) const;
38 
39  virtual QPolygon* createScreenPtsFromDB(const QVector<DtPoint>* dbPoints) const;
40  virtual void updateBoundingBox(DtPolygonSymbol* s, const DtFormationModelData*) const;
41 
42  virtual void setName(const DtFormationModelData* fmd, DtNameLabelSymbol* nls) const;
43  virtual void replaceMainSymbolIfNeeded(DtNameLabelSymbol* nls, DtModelData& data, void* usr) const;
44 
45 protected:
48 };
49 
51 {
52  mySymbolMapper = m;
53 }
54 
56 {
57  return myShowBoundingBoxes;
58 }
59 
61 {
63 }
64 
65 #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)