VR-Forces 4.1.1 Class Documentation
formationGridLineDrawer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: formationGridLineDrawer.h,v $ $Revision: 1.2 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DTFORMATIONGRIDLINEDRAWER_H_
13 #define DTFORMATIONGRIDLINEDRAWER_H_
14 
17 #include "geometry/point.h"
18 
19 #include <QtCore/QRect>
20 
22 {
23 public:
25 
26  virtual DtPoint closestGridPointTo(const DtPoint&) const;
27  virtual QRectF rectThatContainsPoint(const DtPoint&) const;
28 
29  void setScaleFactor(double);
30  double scaleFactor() const;
31 
32  virtual void drawGridLines(const DtTerrainDatabase*, const DtViewportExtents*, DtPrimitiveDrawer* painter);
33 
34 protected:
35  virtual void drawGridLines(const DtPoint &vp_min_WC, const DtPoint &vp_max_WC,
36  double increment, const DtTerrainDatabase* db, const DtViewportExtents* v, DtPrimitiveDrawer* painter);
37 
38 protected:
39  virtual double autoGridLineIncrement(const DtViewportExtents* v, const DtTerrainDatabase* db) const;
40 
41 protected:
42  double myIncrement;
43  double myScaleFactor;
46 };
47 
49 {
50  myScaleFactor = d;
51 }
52 
54 {
55  return myScaleFactor;
56 }
57 
58 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)