VR-Forces 4.1.1 Class Documentation
DtGridLinesDrawer.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2010 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 /*****************************************************************************
6  * $RCSfile: DtGridLinesDrawer.h,v $ $Revision: 1.17 $ $State: Exp $
7  *****************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvOsg/vrvOsg.h>
16 
19 #include <vrvGraphics/DtFont.h>
20 #include <osg/Matrix>
21 
22 namespace makVrv
23 {
24 
25  class DtDe;
26  class DtOsgChannel;
27  class DtOverlayRenderer;
28 
33  : public DtGridLinesParameters
34  {
35  public:
36 
38  DtGridLinesDrawer( DtDe& de );
39 
41  virtual ~DtGridLinesDrawer();
42 
44  virtual void setChannel( DtOsgChannel* channel );
45 
47  virtual void setChannelDimensions( int startChannelX, int startChannelY,
48  int endChannelX, int endChannelY );
49 
51  virtual void setupOverlay();
52 
54  virtual void setupFont();
55 
58  virtual double lookupClosestLatLonSpacing( double minimumSpacingRadians );
59 
62  virtual double lookupClosestCartesianSpacing( double minimumSpacing );
63 
64  protected:
65 
67  static bool clip( double xMin, double xMax, double yMin, double yMax,
68  double x0src, double y0src, double x1src, double y1src,
69  double &x0clip, double &y0clip, double &x1clip, double &y1clip);
70 
71  private:
72 
74  DtGridLinesDrawer( const DtGridLinesDrawer& orig );
75 
77  DtGridLinesDrawer& operator = ( const DtGridLinesDrawer& rhs );
78 
79  protected:
80 
83  osg::Matrix myWorldToWindowMatrix;
84 
89 
91  boost::shared_ptr<DtFont> myFont;
92 
93  std::vector<double> myLatLonAllowableSpacings;
94  std::vector<double> myCartesianAllowableSpacings;
95 
96  };
97 
98 }

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)