4 XERCES_CPP_NAMESPACE_USE
19 #include "../../vreckoAP/LightsEditor/Lights.h"
24 using namespace vrecko;
26 namespace APDYNAMICART
64 void enableGUI(
bool enable );
81 double getElapsedArtTime();
112 void listDirectory(
const string& dirpath,
const string& mask, std::vector<string>* fileNames);
114 void preInitialize();
115 void postInitialize();
117 void CreateMenuAbilities();
128 typedef bool (*func)(
const string& id,
void* value,
void* userData);
132 _userData = userData;
145 bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *parametersNode);
146 XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *saveXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *);
170 std::vector<Controller* > _controllers;
177 osg::Vec3 RHPosition;
178 osg::Vec3 RHUntransPos;
179 osg::Quat RHOrientation;
181 osg::Vec3 LHPosition;
182 osg::Quat LHOrientation;
184 osg::Vec3 OldLHPosition;
185 osg::Quat OldLHOrientation;
204 osg::Quat DAAreaOrientation;
205 osg::Vec3 DAAreaPosition;
206 osg::Vec3 DAAreaScale;
209 osg::ref_ptr<EnvironmentObject> templateObject;
214 unsigned int lastSelectedID_Left;
215 unsigned int lastSelectedID_Right;
218 bool objectPointedRight;
219 bool objectPointedLeft;
231 bool wireframeRendering;
235 osg::Vec3 OldScalePosition;
236 osg::Vec3 OldStepScalePosition;
237 osg::Vec3 OldScalePositionTrans;
242 double maxHandMovement;
245 double autoRotationStep;
246 double ARDefaultAngle;
247 osg::Timer_t lastAutorotationTime, nowAutorotationTime;
249 int _icontoDeactivate;
254 bool _DAAreaManipulationActive;
256 bool _autoRotationActive;
257 bool _globalAxisAutoRotation;
258 bool _scaleChangeActive;
259 bool _colorChooserActive;
267 bool _objectSelectionActiveRight;
268 bool _objectSelectionActiveRight_old;
271 bool _objectSelectionActiveLeft;
272 bool _objectSelectionActiveLeft_old;
275 bool _isMainMenuActive;
278 bool _isPoAMenuActive;
280 int stepScaleChangeActive;
284 time_t _autosaveStartTime, _autosaveDeltaTime;
290 osg::Vec3 displacementDistance;
291 osg::Vec3 displacementStep;
292 int defaultDisplaceAnimTime;
293 int displaceAnimTime;
296 std::vector<std::string>* fileList;
298 time_t _artWorkStartTime;
299 double _loadedArtTime;
305 bool addController(std::string name,
DOMNode* parameters);
312 std::string DAEnvironment::createMenuStructure();
321 inline std::string getAutoRotationString()
const;
326 inline std::string getCastShadowString()
const;
331 std::string getNewFileName(
const std::vector<std::string>* fileList);
335 inline std::string getRenderingMethodString()
const;
340 inline std::string getSwitchModeString()
const;
349 int importScene(
const string& fileName );
355 void guiItemClicked(
const char* itemID,
const int sensorNumber);
362 void guiSliderChanged(
const char* sliderID,
float sliderPos);
365 double rescaleDAArea(
double dist,
double oldValue,
double minValue,
double maxValue);
384 int loadDAScene(
const string& fileName);
392 int loadTemplate(
const string& fileName);
399 void saveDAScene(
const string& filePath,
const string& fileName);
409 void selectObject(
bool rightHand,
unsigned long selectedID);
412 void showInfo()
const;
415 void switchContext(
PoAType newContext);
424 void switchRenderingMethod();
429 bool customProcessEvent(
const string& input_name,
void* value,
void* userData,
bool (*func)(
const string& input_name,
void* value,
void* userData));
433 bool firstTimeUpdate;
436 void daAreaManipulation();
437 void objectSelection();
439 unsigned int checkSelectedObject(
int sensorNumber);