5 using namespace vrecko;
8 # define GUI_EXPORT __declspec(dllexport)
10 # define GUI_EXPORT __declspec(dllimport)
33 bool createModels(
string geometryType);
46 bool initialize(
string name,
string receiver,
string label,
string tooltip, osg::Vec3 position = osg::Vec3() );
56 bool initialize(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *parametersNode);
58 osg::ref_ptr<GUI_Text>
getText() {
return _text; }
63 bool processAction(
const int sensorNumber,
const GUI_ACTION action,
const bool pressed);
66 virtual void pointed(
bool pointed);
68 void setColours( osg::Vec4 colourActive, osg::Vec4 colourDefault, osg::Vec4 colourHovered, osg::Vec4 colourPressed, osg::Vec4 colourDisabled );
70 void setSliderParameters(
double width,
double heigh,
double minValue,
double MaxValue,
double step );
74 void setValue(
double value );
106 void createGeometry();
107 void setAndSendValue(
double value );
109 void sendValue(
double value );
112 void switchVisuals();
114 void updateSlider( osg::Vec3 handPosition );
116 osg::Vec3 transformHandPosition( osg::Vec3 &handPosition );
119 int Slider::intersectSegmentandPlane( osg::Vec3 point0, osg::Vec3 point1, osg::Vec3 planeNormal, osg::Vec3 planePoint, osg::Vec3 *resultPoint );
123 bool postInitialize(
string name,
string receiver,
string label,
string tooltip, osg::Vec3 position );
131 void processInputPosition(
int sensor_num, osg::Vec3 pos );