VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
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
17
#include <
makArchives/DtGridLinesSettingsRecord.h
>
18
#include <
vrvCore/DtGridLinesParameters.h
>
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
32
class
DT_DLL_VRVOSG
DtGridLinesDrawer
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
81
DtDe
&
myDe
;
82
DtOsgChannel
*
myChannel
;
83
osg::Matrix
myWorldToWindowMatrix
;
84
85
int
myStartChannelX
;
86
int
myStartChannelY
;
87
int
myEndChannelX
;
88
int
myEndChannelY
;
89
90
DtOverlayRenderer
*
myOverlayRenderer
;
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
)