VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtExtrudedPolygonModelInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
#include <
vrvOsg/DtExtrudedModelInstance.h
>
14
#include <
vrvCore/DtExtrudedPolygonModel.h
>
15
16
namespace
makVrv
17
{
20
class
DT_DLL_VRVOSG
DtExtrudedPolygonModelInstance
:
public
DtExtrudedModelInstance
21
{
22
public
:
23
25
DtExtrudedPolygonModelInstance
(
DtDe
& de);
26
28
virtual
~
DtExtrudedPolygonModelInstance
();
29
31
virtual
void
setFill(
bool
);
32
34
virtual
void
setPolygonMode(
DtExtrudedPolygonModel::PolygonMode
mode);
35
36
protected
:
38
virtual
void
updatePoints();
39
41
virtual
void
updatePolygons();
42
44
virtual
void
addTop();
45
47
virtual
void
addBottom();
48
50
virtual
void
updateColors();
51
53
virtual
void
updateStippling();
54
56
virtual
void
updateScribeLine();
57
59
virtual
void
updateGeometry();
60
63
virtual
bool
frontAndBackFaceRendered()
const
;
64
68
virtual
void
calculateCenterPoints();
69
70
protected
:
71
osg::ref_ptr<osg::Vec3Array>
myFillArray
;
72
osg::ref_ptr<osg::Geometry>
myTopGeometry
;
73
74
osg::ref_ptr<osg::Geometry>
myBottomGeometry
;
75
76
bool
myFilled
;
77
bool
myPolygonsDirty
;
78
DtExtrudedPolygonModel::PolygonMode
myPolygonMode
;
79
};
80
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)