VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgChannelGridLinesInstance.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
17 
18 #include <matrix/vlVector.h>
19 
20 #include <osg/Quat>
21 
22 namespace makVrv
23 {
24 
25  class DtDe;
26  class DtChannel;
27  class DtChannelConfiguration;
28  class DtChannelManager;
29  class DtOsgChannel;
30  class DtWindowConfiguration;
31  class DtGridLinesDrawer;
32  class DtProjectedGridLinesDrawer;
33  class DtGeocentricGridLinesDrawer;
34 
39  {
40  public:
41 
44 
47 
49  virtual void setChannelName( const std::string& deName,
50  const std::string& winName, const std::string& channelName );
51 
54  virtual void setModelDefinition( const std::string& modelDefinition );
55 
57  virtual void setVisible(bool isVisible);
58 
60  virtual void setGridType(
62 
64  virtual void setUnitType(
66 
68  virtual void setUnitType(
70 
72  virtual void setMinimalGridlineLabelsEnabled(bool enabled);
73 
75  virtual void setAutoSpacing( bool autoSpacing );
76 
78  virtual void setFixedSpacingAmount( double amount );
79 
81  virtual void setXOffset( double offset );
82 
84  virtual void setYOffset( double offset );
85 
87  virtual void setMinSpacing( int pixels );
88 
90  virtual void setDecimalPlaces( unsigned decimalPlaces );
91 
93  virtual void setMaxGridLines( int maxGridLines );
94 
96  virtual void setEastWestGridLineColor( float r, float g, float b, float a );
97 
99  virtual void setEastWestLabelColor( float r, float g, float b, float a );
100 
102  virtual void setNorthSouthGridLineColor( float r, float g, float b, float a );
103 
105  virtual void setNorthSouthLabelColor( float r, float g, float b, float a );
106 
108  virtual void setLabelFont( const std::string& fontName );
109 
111  virtual void setLabelPointSize( int pointSize );
112 
114  virtual void setLabelXOffset( int pixels );
115 
117  virtual void setLabelYOffset( int pixels );
118 
120  virtual void setLabelTextWidth( int width );
121 
123  virtual void setLabelTextHeight( int height );
124 
126  virtual void setGridLineWidth( float width );
127 
129  virtual void updateGridLines();
130 
131  protected:
132 
135  virtual DtProjectedGridLinesDrawer* createAndInitializeProjectedDBGridLinesDrawer();
136 
139  virtual DtGeocentricGridLinesDrawer* createAndInitializeGeocentricDBGridLinesDrawer();
140 
142  virtual void slot_channelCreated(DtChannelManager*, DtChannel*);
143 
145  virtual void slot_channelToBeDestroyed(DtChannelManager*, DtChannel*);
146 
148  void slot_channelUpdated( DtChannelManager*, DtChannel* );
149 
150  private:
151 
154 
157 
158  protected:
159 
162 
164 
177 
178  };
179 
180 }
Contains the DtChannelGridLinesInstance class declaration.
double myPreviousViewportBottom
Definition: DtOsgChannelGridLinesInstance.h:175
double myPreviousViewportLeft
Definition: DtOsgChannelGridLinesInstance.h:172
DtSignalConnectionManager myConnections
Definition: DtOsgChannelGridLinesInstance.h:161
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Draw 2D Grid Lines on geocentric databases. This class supported two types of grids - basic geodetic ...
Definition: DtGeocentricGridLinesDrawer.h:42
bool myFirstFrame
Definition: DtOsgChannelGridLinesInstance.h:165
CoordSys
Enumeration of the different coordinate system types.
Definition: DtDisplayUnitsSettingsRecord.h:30
This class provides the OSG-specific implementation of a DtChannel.
Definition: DtOsgChannel.h:52
vrvGraphics-based implementation of 2D Grid Lines on projected databases \ingroup vrvOsg ...
Definition: DtProjectedGridLinesDrawer.h:40
DistanceUnits
Enumeration of the different distance units.
Definition: DtDisplayUnitsSettingsRecord.h:56
DtGridLinesDrawer * myGridLinesDrawer
Definition: DtOsgChannelGridLinesInstance.h:166
DtOsgChannel * myChannel
Definition: DtOsgChannelGridLinesInstance.h:163
The abstract Channel Class.
Definition: DtChannel.h:35
DtVector myPreviousCameraPosition
Definition: DtOsgChannelGridLinesInstance.h:167
bool myParamsChanged
Definition: DtOsgChannelGridLinesInstance.h:176
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
osg::Quat myPreviousCameraRotation
Definition: DtOsgChannelGridLinesInstance.h:168
double myPreviousWindowHeight
Definition: DtOsgChannelGridLinesInstance.h:170
OrientationUnits
Enumeration of the different orientation units.
Definition: DtDisplayUnitsSettingsRecord.h:101
Base class for handling DtChannels. Derived classes should override the tick() method and advance the...
Definition: DtChannelManager.h:32
Base class to provide boost signal/slot management.
Base class with common data / methods for drawing grid lines on projected and geocentric databases \i...
Definition: DtGridLinesDrawer.h:32
vrvGraphics-based implementation of grid lines
Definition: DtOsgChannelGridLinesInstance.h:37
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Interface for a DtChannelGridLinesInstance An object that draws a 2D compass.
Definition: DtChannelGridLinesInstance.h:21
voidpf uLong offset
Definition: ioapi.h:42
double myPreviousViewportTop
Definition: DtOsgChannelGridLinesInstance.h:174
double myPreviousViewportRight
Definition: DtOsgChannelGridLinesInstance.h:173
double myPreviousScale
Definition: DtOsgChannelGridLinesInstance.h:169
DtDe & myDe
Definition: DtOsgChannelGridLinesInstance.h:160
double myPreviousWindowWidth
Definition: DtOsgChannelGridLinesInstance.h:171

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)