1 #ifndef COIN_SOSCXMLNAVIGATIONTARGET_H
2 #define COIN_SOSCXMLNAVIGATIONTARGET_H
36 #include <Inventor/scxml/ScXMLEventTarget.h>
38 #include <Inventor/tools/SbPimplPtr.h>
48 #define COIN_NAVIGATION_EVENT_PREFIX "x-coin-navigation"
58 class COIN_DLL_API Data {
67 typedef Data * NewDataFunc(
void);
68 Data * getSessionData(
SbName sessionid, NewDataFunc * constructor);
69 void freeSessionData(
SbName sessionid);
76 static SbBool getEventDouble(
const ScXMLEvent * event,
const char * label,
double & dbl_out, SbBool required = TRUE);
77 static SbBool getEventString(
const ScXMLEvent * event,
const char * label,
SbString & str_out, SbBool required = TRUE);
78 static SbBool getEventSbBool(
const ScXMLEvent * event,
const char * label, SbBool & bool_out, SbBool required = TRUE);
79 static SbBool getEventSbVec2f(
const ScXMLEvent * event,
const char * label,
SbVec2f & vec_out, SbBool required = TRUE);
80 static SbBool getEventSbVec3f(
const ScXMLEvent * event,
const char * label,
SbVec3f & vec_out, SbBool required = TRUE);
81 static SbBool getEventSbRotation(
const ScXMLEvent * event,
const char * label,
SbRotation & rot_out, SbBool required = TRUE);
85 SbPimplPtr<PImpl> pimpl;
89 #endif // !COIN_SOSCXMLNAVIGATIONTARGET_H