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
AbilityEditor.h
Go to the documentation of this file.
1
#ifndef ABILITYEDITOR_H
2
#define ABILITYEDITOR_H
3
4
#include "../EditorController/ControllableAbility.h"
5
#include <
vrecko/Ability.h
>
6
#include <
vrecko/EnvironmentObject.h
>
7
#include <
helpers/DynamicArray.h
>
8
#include "../ObjectUtils/ConnectionViz.h"
9
10
11
namespace
APEditorQAbilities {
12
13
class
AbilityEditor
:
public
vrecko::ControllableAbility
{
14
public
:
15
AbilityEditor
();
16
virtual
~AbilityEditor
() {
deactivate
(); };
17
virtual
bool
initialize
(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*parameters = NULL);
18
19
protected
:
20
21
class
AllowedAbility
{
22
public
:
23
std::string
abilityName
;
24
std::string
pluginName
;
25
26
// auxiliary variables for the menu creation
27
bool
bProcessed
;
28
};
29
30
DynamicArray<AllowedAbility>
allowedAbilities
;
31
32
unsigned
long
object1ID
,
object2ID
;
33
vrecko::EnvironmentObject
*
object1
, *
object2
;
34
// these variables are reliable only in the menuItemClicked() and subsequent functions
35
36
APObjectUtils::ConnectionViz
*
conViz
;
37
38
virtual
void
fillDefaultInfo
();
39
virtual
bool
activate
();
40
virtual
void
deactivate
();
41
virtual
void
processButtonRelease
(
vrecko::CABUTTONEVENT
* eventData);
42
virtual
void
menuItemClicked
(
const
char
* itemID);
43
44
bool
createConnectionViz
();
45
void
destroyConnectionViz
();
46
47
bool
executeAddAbility
(
int
iIndex);
48
bool
executeDeleteAbility
(
const
char
*abilityID);
49
bool
executeAddConnection
(
const
char
*connectionMenuString);
50
bool
executeDeleteConnection
(
const
char
*connectionMenuString);
51
};
52
53
}
54
55
#endif
include
vreckoAP
EditorQAbilities
AbilityEditor.h
Generated on Tue Feb 19 2013 10:23:43 for vrecko by
1.8.3.1