1 #ifndef EDITORCONTROLLER_H
2 #define EDITORCONTROLLER_H
10 using namespace vrecko;
12 namespace APEditorController
17 static const int maxPointers = 2;
18 static const int maxButtonsPerPointer = 4;
23 virtual bool initialize(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *parameters = NULL);
25 virtual void update();
39 bool setMappedAbility(
const char *strID);
42 CAINFO* getMappedAbilityInfo(
bool bForceRefresh);
52 ECPOINTERINFO() { actSelection = 0; lastButtonPressed = 0; selPath = NULL; }
59 std::vector<osg::Node*> *selPath;
89 bool createAbilityMapper();
90 void removeAbilityMapper();
97 void setNewSelection(
unsigned long newSelection);
99 void pointerPosUpdate(
int pointerID,
const osg::Vec3 &newPos,
bool bRaw =
false);
101 void pointerRotUpdate(
int pointerID,
const osg::Quat &newRot,
bool bRaw =
false);
103 void pointerBtnUpdate(
int poinerID,
int buttonID,
bool newState);
104 void sendPointerBtnToRelevantOutputs(
int pointerID,
int buttonID);
106 void pointerSelUpdate(
int pointerID,
unsigned long newSelection);
107 void sendPointerSelectionEvent(
int pointerID,
unsigned long newSelection);
109 void abilityActivationTest();
114 void selectionVisibilityUpdate();
118 virtual int processNotification(
BaseClass *sender,
unsigned long notificationType,
void *notificationData);