VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtGridLinesParameters.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2011 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
/*****************************************************************************
6
* $RCSfile: DtGridLinesParameters.h,v $ $Revision: 1.0 $ $State: Exp $
7
*****************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCore/vrvCore.h
>
16
17
#include <
makArchives/DtGridLinesSettingsRecord.h
>
18
19
namespace
makVrv
20
{
21
25
class
DT_DLL_VRVCORE
DtGridLinesParameters
26
{
27
public
:
28
30
DtGridLinesParameters
();
31
33
virtual
~
DtGridLinesParameters
();
34
36
DtGridLinesParameters
(
const
DtGridLinesParameters
& orig );
37
39
DtGridLinesParameters
& operator=(
const
DtGridLinesParameters
& orig );
40
42
virtual
void
setGridType(
43
makArchives::DtDisplayUnitsSettingsRecord::CoordSys
gridType );
44
46
virtual
void
setUnitType(
47
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits
unitType );
48
50
virtual
void
setUnitType(
51
makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits
unitType );
52
54
virtual
void
setAutoSpacing(
bool
autoSpacing );
55
57
virtual
void
setMinSpacing(
int
pixels );
58
60
virtual
void
setFixedSpacingAmount(
double
amount );
61
63
virtual
void
setXOffset(
double
offset );
64
66
virtual
void
setYOffset(
double
offset );
67
69
virtual
void
setDecimalPlaces(
unsigned
decimalPlaces );
70
72
virtual
void
setMaxGridLines(
int
maxGridLines );
73
75
virtual
void
setEastWestGridLineColor(
float
r,
float
g,
float
b,
float
a );
76
78
virtual
void
setEastWestLabelColor(
float
r,
float
g,
float
b,
float
a );
79
81
virtual
void
setNorthSouthGridLineColor(
float
r,
float
g,
float
b,
float
a );
82
84
virtual
void
setNorthSouthLabelColor(
float
r,
float
g,
float
b,
float
a );
85
87
virtual
void
setLabelFont(
const
std::string& fontName );
88
90
virtual
void
setLabelPointSize(
int
pointSize );
91
93
virtual
void
setLabelXOffset(
int
pixels );
94
96
virtual
void
setLabelYOffset(
int
pixels );
97
99
virtual
void
setLabelTextWidth(
int
width );
100
102
virtual
void
setLabelTextHeight(
int
height );
103
105
virtual
void
setGridLineWidth(
float
width );
106
107
protected
:
108
109
// Dialog-settable parameters
110
makArchives::DtDisplayUnitsSettingsRecord::CoordSys
myGridType
;
111
bool
myUnitTypeIsAngular
;
112
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits
myUnitType
;
113
makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits
myAngularUnitType
;
114
bool
myAutoSpacing
;
115
int
myMinSpacing
;
116
117
double
mySpacing
;
118
double
myXOffset
;
119
double
myYOffset
;
120
unsigned
myDecimalPlaces
;
121
122
// Model-definition settable parameters
123
int
myMaxGridLines
;
// per dimension
124
float
myEastWestGridLineColor[4];
125
float
myEastWestLabelColor[4];
126
float
myNorthSouthGridLineColor[4];
127
float
myNorthSouthLabelColor[4];
128
std::string
myLabelFont
;
129
int
myLabelPointSize
;
130
int
myLabelXOffset
;
131
int
myLabelYOffset
;
132
int
myLabelTextWidth
;
133
int
myLabelTextHeight
;
134
float
myGridLineWidth
;
135
136
};
137
138
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)