vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Optimalizer.h
Go to the documentation of this file.
1 #ifndef OPTIMALIZER_H
2 #define OPTIMALIZER_H
3 
4 #include "../EditorController/ControllableAbility.h"
5 #include "functions.h"
6 
7 
8 using namespace vrecko;
9 
10 namespace APConnectEditor {
11 
12 
14 public:
15  Optimalizer();
16  virtual ~Optimalizer() { deactivate(); }
17 
18 
19 
20 protected:
21  unsigned long targetID, sourceID;
22 
24 
25 
26  virtual void fillDefaultInfo();
27  virtual bool activate();
28  virtual void deactivate();
29  virtual void processButtonRelease(vrecko::CABUTTONEVENT* eventData); //call method - snap || merge || ...
30  //virtual void menuItemClicked(const char* itemID);
31 
32  bool optimalizeAndSave(); //optimalize object and save it in current file
33 
34  //get geometry of object and call optimalize geometry
35  void optimalizeObject(EnvironmentObject* eo);
36 
37  //remove unused vertices and delete duplicit vertices
38  void optimalizeGeometry(osg::Geometry* geometry);
39 
40 };
41 
42 }
43 
44 #endif //OPTIMALIZER_H
45 
46