VR-Forces 4.7 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
vrfGuiCore
sensorContactLinesModel.h
Go to the documentation of this file.
1
6
10
11
#pragma once
12
13
#include <
vrfGuiCore/vrfGuiCore.h
>
14
#include <osg/Geometry>
15
#include <
vrvOsg/DtOsgMultiLineModel.h
>
16
#include <
vrvOsg/DtOsg3DSegmentedLineModel.h
>
17
#include <
vrvOsg/Dt3DSegmentedLineModelInstance.h
>
18
#include <
vrvOsg/Dt3DLineModelInstanceSegment.h
>
19
20
namespace
makVrf
21
{
24
class
DT_DLL_VRFGUICORE
DtSensorContactLinesModel
:
public
makVrv::DtOsgMultiLineModel
25
{
26
public
:
28
DtSensorContactLinesModel
(
makVrv::DtDe
& de,
makVrv::DtUniqueID
id
);
29
31
virtual
~
DtSensorContactLinesModel
();
32
34
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
35
37
virtual
void
setLineWidth(
float
width);
38
40
virtual
void
setHasArrowEndCap(
bool
);
41
42
virtual
void
addLineModel();
43
45
virtual
void
setArrowSize(
double
);
46
48
virtual
void
setVisible(
int
line,
bool
visible);
49
51
virtual
void
removeLineModel(
int
);
52
virtual
makVrv::DtSegmentedLineModel
* createGeometryLineModel();
53
54
protected
:
55
float
myColor[4];
56
bool
myHasArrowEndCap
;
57
float
myLineWidth
;
58
double
myArrowSize
;
59
60
std::vector<bool>
myVisibilityStates
;
61
};
62
63
class
DT_DLL_VRFGUICORE
DtVrfOsg3DSegmentedLineModel
:
public
makVrv::DtOsg3DSegmentedLineModel
64
{
65
public
:
66
DtVrfOsg3DSegmentedLineModel
(
makVrv::DtDe
&,
makVrv::DtUniqueID
);
67
virtual
~
DtVrfOsg3DSegmentedLineModel
();
68
69
virtual
void
setArrowSize(
double
);
70
};
71
72
class
DT_DLL_VRFGUICORE
DtVrf3DSegmentedLineModelInstance
:
public
makVrv::Dt3DSegmentedLineModelInstance
73
{
74
public
:
75
DtVrf3DSegmentedLineModelInstance
(
makVrv::DtDe
&);
76
virtual
~
DtVrf3DSegmentedLineModelInstance
();
77
78
virtual
void
setArrowSize(
double
);
79
virtual
makVrv::Dt3DLineModelInstanceSegmentInterface
* createSegment();
80
virtual
void
setPosition(
int
,
const
DtVector
&);
81
82
protected
:
83
double
myArrowSize
;
84
};
85
86
class
DT_DLL_VRFGUICORE
DtVrf3DLineModelInstanceSegment
:
public
makVrv::Dt3DLineModelInstanceSegment
87
{
88
public
:
89
DtVrf3DLineModelInstanceSegment
(
makVrv::DtDe
&);
90
virtual
~
DtVrf3DLineModelInstanceSegment
();
91
92
virtual
void
setArrowSize(
double
d);
93
virtual
void
setOrigin(
const
DtVector
&);
94
95
virtual
void
calculateArrowVertices(
96
const
osg::Vec3d& segmentStart,
const
osg::Vec3d& segmentEnd,
97
osg::Vec3d& arrowStartOut, osg::Vec3d& arrowEndOut);
98
99
protected
:
100
double
myArrowSize
;
101
makVrv::DtDe
&
myDe
;
102
DtVector
myOrigin
;
103
};
104
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)