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
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
13
class
Optimalizer
:
public
ControllableAbility
{
14
public
:
15
Optimalizer
();
16
virtual
~Optimalizer
() { deactivate(); }
17
18
19
20
protected
:
21
unsigned
long
targetID
, sourceID;
22
23
vrecko::EnvironmentObject
*_source, *
_target
;
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
include
vreckoAP
ConnectEditor
Optimalizer.h
Generated on Tue Feb 19 2013 10:23:42 for vrecko by
1.8.3.1