VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
20
#include <
vrvGraphics/DtFont.h
>
21
#include <
vrvGraphics/DtFontManager.h
>
22
23
#include <osg/Matrix>
24
25
namespace
makVrv
26
{
27
28
class
DtDe;
29
class
DtOsgChannel;
30
class
DtOverlayRenderer;
31
35
class
DT_DLL_VRVOSG
DtGridLinesDrawer
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
84
DtDe
&
myDe
;
85
DtOsgChannel
*
myChannel
;
86
osg::Matrix
myWorldToWindowMatrix
;
87
88
int
myStartChannelX
;
89
int
myStartChannelY
;
90
int
myEndChannelX
;
91
int
myEndChannelY
;
92
93
DtOverlayRenderer
*
myOverlayRenderer
;
94
DtFontSP
myFont
;
95
96
std::vector<double>
myLatLonAllowableSpacings
;
97
std::vector<double>
myCartesianAllowableSpacings
;
98
99
};
100
101
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)