8 #include <osgText/Text>
9 #include <osgText/Font>
10 #include <osg/BlendFunc>
11 #include <osg/Material>
12 #include <osg/StateSet>
17 #define HUD_EXPORT __declspec(dllexport)
19 # define HUD_EXPORT __declspec(dllimport)
22 using namespace vrecko;
39 osg::ref_ptr<osgText::Text>
text;
71 virtual void preInitialize();
72 virtual void postInitialize();
73 virtual bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *pParametersNode);
74 virtual void update(
void);
77 bool updateWindowColor(
string plugin_name, osg::Vec4f color);
78 bool addField(
string field_name,
string plugin_name);
79 bool updateFieldTextColor(
string field_name,
string plugin_name, osg::Vec4f color);
81 bool setFieldAsAnimated(
string field_name,
string plugin_name,
bool value);
82 bool updateGradient(
string field_name,
string plugin_name, osg::Vec4f startColor, osg::Vec4f endColor);
83 bool updateValuesRange(
string field_name,
string plugin_name,
float minValue,
float maxValue);
86 bool removeField(
string field_name,
string plugin_name);
87 bool clearValue(
string field_name,
string plugin_name);
88 bool updateText(
string text,
string field_name ,
string plugin_name);
89 bool updateValue(
float value,
string field_name ,
string plugin_name);
91 bool setColorProfileforWindow(
string plugin_name,
int colorprofile);
96 float getActualValue(
string field_name,
string plugin_name );
98 bool hudFieldExist(
string field_name,
string plugin_name );
101 list<HUDWindow>::iterator getHUDWindow(
string plugin_name);
102 list<HUDField>::iterator getHUDField(
string field_name,
string plugin_name);
104 bool correctName(
string name);
112 osg::ref_ptr<vrecko::EnvironmentObject>
eo;
117 bool setValue(
string text,
string field_name ,
string plugin_name);
119 void updateAllWindowsPositions();
120 void updateAllWindows();
126 void updateField(
string field_name,
string plugin_name);
127 void updateAllFields();
128 void updateAllFieldsPosition();