vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
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