vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
vrecko
Vrecko - the Virtual Reality Engine
Dynamic Art module
L-system plant modeler - module for Vrecko
Head Up Display module
Space Partitioning - module for Vrecko
Todo List
Deprecated List
Namespaces
Classes
Files
File List
include
src
apps
base
helpers
vrecko
vreckoAP
ArtificialWorld
Boids
CableEditor
CameraMovement
CameraPath
CarSim
ConnectEditor
ConstrainedMovement
DynamicArt
EditorController
EditorQAbilities
FFDEditor
Garden
GUI
HapticCollisionApp
HeadTracking
HelloWorld
HUD
InputConnector
LightsEditor
Menu
Nature
navigation
ObjectUtils
PhysX
ShootingSimulation
SpacePartitioning
TextOutput
VF
AP_VirtualFixture.cpp
AP_VirtualFixture.h
Auxiliary.cpp
Auxiliary.h
Avatar.cpp
Avatar.h
AxisLock.cpp
AxisLock.h
Border.cpp
Border.h
Box.cpp
Box.h
collection.cpp
collection.h
Cone.cpp
Cone.h
Cylinder.cpp
Cylinder.h
Damper.cpp
Damper.h
Drag.cpp
Drag.h
Filter.cpp
Filter.h
gesture.cpp
gesture.h
gm.h
gm_bool.h
gm_const.h
gm_mat3.cpp
gm_mat3.h
gm_mat4.cpp
gm_mat4.h
gm_utils.h
gm_vec2.h
gm_vec3.h
gm_vec4.h
Grid.cpp
Grid.h
Log.cpp
Log.h
Marker.cpp
Marker.h
MarkerFactory.cpp
MarkerFactory.h
mvect++.h
mvect.cpp
mvect.h
NavSphere.cpp
NavSphere.h
PHANToMAvatar.cpp
PHANToMAvatar.h
PHEffect.cpp
PHEffect.h
Plane.cpp
Plane.h
player.cpp
player.h
ProxiBorder.cpp
ProxiBorder.h
ProxiBox.cpp
ProxiBox.h
ProxiCone.cpp
ProxiCone.h
ProxiCylinder.cpp
ProxiCylinder.h
ProxiSphere.cpp
ProxiSphere.h
reader.cpp
reader.h
Sphere.cpp
Sphere.h
Trace.cpp
Trace.h
Vibration.cpp
Vibration.h
VibrationLabel.cpp
VibrationLabel.h
VibrationLabelActivator.cpp
VibrationLabelActivator.h
vreckoDP
vreckoUtils
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ProxiCylinder.h
Go to the documentation of this file.
1
#include <
vrecko/Ability.h
>
2
#include <vreckoDP/base/PHANToM.h>
3
#include <osg/Vec4>
4
#include <osg/Geode>
5
#include <osg/MatrixTransform>
6
#include <osg/Group>
7
8
9
using namespace
vrecko;
10
using namespace
vreckoDP_base;
11
namespace
VirtualFixture{
12
13
class
ProxiCylinder
:
public
Ability
{
14
public
:
15
ProxiCylinder
();
16
~ProxiCylinder
() {};
17
19
void
processEvent(
const
std::string &input_name,
void
*value);
20
21
void
preInitialize(
void
);
22
void
postInitialize(
void
);
23
void
update(
void
);
24
void
display(
void
);
//show/hide object
25
26
bool
loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*pParametersNode);
27
XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*getXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *);
28
29
protected
:
30
PHANToM *
PHANToMDevice
;
31
bool
all_on
;
32
bool
active
;
//if true, attractive field will be active
33
34
bool
visible
;
//if geometric representation will be visible
35
osg::MatrixTransform *
tnode
;
//transform node pointer
36
osg::Group *
gnode
;
//group pointer
37
osg::Geode *
node
;
//geometry node pointer (for bouning cylinder)
38
osg::Vec4
color
;
//color of border sphere (radius)
39
float
transparency
;
//border sphere transparency
40
41
osg::Vec3
vector
;
//vector on cylinder axis (from bottom to top)
42
osg::Vec3
position
;
//position of centre (the point where PHANToM will be attracted to)
43
float
radius
;
//radius of attractive field
44
45
bool
once
;
//if true then if sphere is entered, one signal is send till sphere is not leaved and reentered (then send next signal)
46
bool
justonce
;
//send only one signal when entered at first ...reentering doesn't reset it, it send just one signal at all
47
bool
sendflag
;
//set true if signal was send
48
};
49
50
};
src
vreckoAP
VF
ProxiCylinder.h
Generated on Tue Feb 19 2013 10:23:47 for vrecko by
1.8.3.1