VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtScribeBoxModelInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtScribeBoxModelInstance.h,v $ $Revision: 1.10 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvOsg/vrvOsg.h
>
16
#include <
vrvOsg/DtOsgModelInstance.h
>
17
18
#include <osg/Group>
19
#include <osg/Geode>
20
21
namespace
makVrv
22
{
23
class
DtDe;
24
class
DtSceneObject;
25
28
class
DT_DLL_VRVOSG
DtScribeBoxModelInstance
:
public
DtOsgModelInstance
29
{
30
public
:
32
DtScribeBoxModelInstance
(
DtDe
& de,
const
std::string& uniqueName);
33
35
~
DtScribeBoxModelInstance
();
36
39
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
40
43
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
44
46
virtual
void
drawBox();
47
48
virtual
void
setColor(
const
osg::Vec4& color );
49
virtual
void
setLineWidth(
double
lineWidth );
50
51
virtual
void
setParentSceneObject(
const
DtUniqueID
& sceneObj );
52
54
virtual
void
setVisible
(
bool
isVisible) {}
55
57
virtual
void
setOccluded(
bool
);
58
60
virtual
void
setLineSmoothing(
bool
);
61
62
protected
:
63
void
setNodeCullAndBin(osg::Node* n,
bool
isTransparent);
64
void
updateScribeBoxSize();
65
void
updateLineSmoothing();
66
void
updateScribeBoxLineWidth();
67
void
updateScribeBoxColor();
68
DtSceneObject
* parentSceneObject();
69
osg::Geometry* scribeBox(
const
osg::Vec3& center,
float
lengthX,
70
float
lengthY,
float
lengthZ );
71
72
73
protected
:
74
75
osg::ref_ptr<osg::Group>
myGroup
;
76
osg::ref_ptr<osg::Geode>
myShapeGeode
;
77
osg::Vec4
myColor
;
78
double
myLineWidth
;
79
std::string
myUniqueName
;
80
DtUniqueID
myParentSceneObject
;
81
bool
myOccluded
;
82
bool
myLineSmoothing
;
83
85
virtual
void
resetGeode();
86
};
87
}
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
)