VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
20 #include <vrvGraphics/DtFont.h>
22 
23 #include <osg/Matrix>
24 
25 namespace makVrv
26 {
27 
28  class DtDe;
29  class DtOsgChannel;
30  class DtOverlayRenderer;
31 
36  : public DtGridLinesParameters
37  {
38  public:
39 
41  DtGridLinesDrawer( DtDe& de );
42 
44  virtual ~DtGridLinesDrawer();
45 
47  virtual void setChannel( DtOsgChannel* channel );
48 
50  virtual void setChannelDimensions( int startChannelX, int startChannelY,
51  int endChannelX, int endChannelY );
52 
54  virtual void setupOverlay();
55 
57  virtual void setupFont();
58 
61  virtual double lookupClosestLatLonSpacing( double minimumSpacingRadians );
62 
65  virtual double lookupClosestCartesianSpacing( double minimumSpacing );
66 
67  protected:
68 
70  static bool clip( double xMin, double xMax, double yMin, double yMax,
71  double x0src, double y0src, double x1src, double y1src,
72  double &x0clip, double &y0clip, double &x1clip, double &y1clip);
73 
74  private:
75 
77  DtGridLinesDrawer( const DtGridLinesDrawer& orig );
78 
80  DtGridLinesDrawer& operator = ( const DtGridLinesDrawer& rhs );
81 
82  protected:
83 
86  osg::Matrix myWorldToWindowMatrix;
87 
92 
95 
96  std::vector<double> myLatLonAllowableSpacings;
97  std::vector<double> myCartesianAllowableSpacings;
98 
99  };
100 
101 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)