.TH "SoScXMLNavigationTarget" 3 "Tue Jun 23 2026 23:48:38" "Version 4.0.10" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoScXMLNavigationTarget \- base class for navigation system SCXML event target services .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBScXMLEventTarget\fP\&. .PP Inherited by \fBSoScXMLDollyTarget\fP, \fBSoScXMLFlightControlTarget\fP, \fBSoScXMLMiscTarget\fP, \fBSoScXMLMotionTarget\fP, \fBSoScXMLPanTarget\fP, \fBSoScXMLRotateTarget\fP, \fBSoScXMLSeekTarget\fP, \fBSoScXMLSpinTarget\fP, and \fBSoScXMLZoomTarget\fP\&. .SS "Classes" .in +1c .ti -1c .RI "class \fBData\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual \fBSoType\fP \fBgetTypeId\fP (void) const =0" .br .RI "Returns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for runtime type checking and "downward" casting\&. " .in -1c Public Member Functions inherited from \fBScXMLEventTarget\fP .in +1c .ti -1c .RI "virtual void \fBsetEventTargetType\fP (const char *targettype)" .br .ti -1c .RI "const char * \fBgetEventTargetType\fP (void) const" .br .ti -1c .RI "virtual void \fBsetEventTargetName\fP (const char *targetname)" .br .ti -1c .RI "const char * \fBgetEventTargetName\fP (void) const" .br .ti -1c .RI "virtual const \fBScXMLEvent\fP * \fBgetCurrentEvent\fP (void) const" .br .ti -1c .RI "virtual void \fBqueueEvent\fP (const \fBScXMLEvent\fP *event)" .br .ti -1c .RI "virtual void \fBqueueEvent\fP (const \fBSbName\fP &eventid)" .br .ti -1c .RI "virtual SbBool \fBprocessEventQueue\fP (void)" .br .ti -1c .RI "virtual SbBool \fBsendExternalEvent\fP (const \fBScXMLSendElt\fP *sendelt)" .br .ti -1c .RI "virtual SbBool \fBsendInternalEvent\fP (const \fBScXMLEventElt\fP *sendelt)" .br .ti -1c .RI "virtual void \fBqueueInternalEvent\fP (const \fBScXMLEvent\fP *event)" .br .ti -1c .RI "virtual void \fBqueueInternalEvent\fP (const \fBSbName\fP &eventid)" .br .in -1c Public Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "SbBool \fBisOfType\fP (\fBSoType\fP type) const" .br .RI "Returns \fRTRUE\fP if the type of this object is either of the same type or inherited from \fItype\fP\&. " .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBcleanClass\fP (void)" .br .in -1c Static Public Member Functions inherited from \fBScXMLEventTarget\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBcleanClass\fP (void)" .br .in -1c Static Public Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .RI "This static method returns the \fBSoType\fP object associated with objects of this class\&. " .ti -1c .RI "static void \fBinitClass\fP (void)" .br .RI "Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system\&. " .ti -1c .RI "static void \fBcleanClass\fP (void)" .br .RI "Does the opposite of initClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin type system\&. " .in -1c .SS "Protected Types" .in +1c .ti -1c .RI "typedef \fBData\fP * \fBNewDataFunc\fP(void)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBData\fP * \fBgetSessionData\fP (\fBSbName\fP sessionid, NewDataFunc *constructor)" .br .ti -1c .RI "void \fBfreeSessionData\fP (\fBSbName\fP sessionid)" .br .in -1c Protected Member Functions inherited from \fBScXMLEventTarget\fP .in +1c .ti -1c .RI "virtual void \fBsetCurrentEvent\fP (const \fBScXMLEvent\fP *event)" .br .ti -1c .RI "virtual const \fBScXMLEvent\fP * \fBgetNextEvent\fP (void)" .br .ti -1c .RI "virtual const \fBScXMLEvent\fP * \fBgetNextInternalEvent\fP (void)" .br .ti -1c .RI "virtual const \fBScXMLEvent\fP * \fBgetNextExternalEvent\fP (void)" .br .ti -1c .RI "virtual SbBool \fBprocessOneEvent\fP (const \fBScXMLEvent\fP *event)" .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "static \fBSbName\fP \fBgetSessionId\fP (const \fBScXMLEvent\fP *event)" .br .ti -1c .RI "static \fBScXMLStateMachine\fP * \fBgetStateMachine\fP (const \fBScXMLEvent\fP *event, \fBSbName\fP sessionid)" .br .ti -1c .RI "static \fBSoScXMLStateMachine\fP * \fBgetSoStateMachine\fP (const \fBScXMLEvent\fP *event, \fBSbName\fP sessionid)" .br .ti -1c .RI "static \fBSoCamera\fP * \fBgetActiveCamera\fP (const \fBScXMLEvent\fP *event, \fBSbName\fP sessionid)" .br .ti -1c .RI "static SbBool \fBgetEventDouble\fP (const \fBScXMLEvent\fP *event, const char *label, double &dbl_out, SbBool required=TRUE)" .br .ti -1c .RI "static SbBool \fBgetEventString\fP (const \fBScXMLEvent\fP *event, const char *label, \fBSbString\fP &str_out, SbBool required=TRUE)" .br .ti -1c .RI "static SbBool \fBgetEventSbBool\fP (const \fBScXMLEvent\fP *event, const char *label, SbBool &bool_out, SbBool required=TRUE)" .br .ti -1c .RI "static SbBool \fBgetEventSbVec2f\fP (const \fBScXMLEvent\fP *event, const char *label, \fBSbVec2f\fP &vec_out, SbBool required=TRUE)" .br .ti -1c .RI "static SbBool \fBgetEventSbVec3f\fP (const \fBScXMLEvent\fP *event, const char *label, \fBSbVec3f\fP &vec_out, SbBool required=TRUE)" .br .ti -1c .RI "static SbBool \fBgetEventSbRotation\fP (const \fBScXMLEvent\fP *event, const char *label, \fBSbRotation\fP &rot_out, SbBool required=TRUE)" .br .in -1c Static Protected Member Functions inherited from \fBScXMLEventTarget\fP .in +1c .ti -1c .RI "static void \fBregisterEventTarget\fP (\fBScXMLEventTarget\fP *target, const char *sessionid=NULL)" .br .ti -1c .RI "static void \fBunregisterEventTarget\fP (\fBScXMLEventTarget\fP *target, const char *sessionid=NULL)" .br .ti -1c .RI "static \fBScXMLEventTarget\fP * \fBgetEventTarget\fP (const char *targettype, const char *targetname, const char *sessionid=NULL)" .br .in -1c Static Protected Member Functions inherited from \fBScXMLObject\fP .in +1c .ti -1c .RI "static void \fBregisterClassType\fP (const char *xmlns, const char *classname, \fBSoType\fP type)" .br .ti -1c .RI "static void \fBregisterInvokeClassType\fP (const char *xmlns, const char *targettype, const char *source, \fBSoType\fP type)" .br .in -1c .SS "Additional Inherited Members" Protected Attributes inherited from \fBScXMLEventTarget\fP .in +1c .ti -1c .RI "char * \fBtargetname\fP" .br .ti -1c .RI "char * \fBtargettype\fP" .br .ti -1c .RI "const \fBScXMLEvent\fP * \fBcurrentevent\fP" .br .ti -1c .RI "SbBool \fBisprocessingqueue\fP" .br .in -1c .SH "Detailed Description" .PP base class for navigation system SCXML event target services This class contains some common, useful, utility functions for implementing navigation system event targets\&. .PP \fBSince\fP .RS 4 Coin 3\&.1 .RE .PP .SH "Member Function Documentation" .PP .SS "virtual \fBSoType\fP SoScXMLNavigationTarget::getTypeId (void ) const\fR [pure virtual]\fP" .PP Returns the type identification of an object derived from a class inheriting \fBSoBase\fP\&. This is used for runtime type checking and "downward" casting\&. .PP \fBSee also\fP .RS 4 \fBSoBase::getTypeId() const\fP .RE .PP .PP Implements \fBScXMLEventTarget\fP\&. .PP Implemented in \fBSoScXMLDollyTarget\fP, \fBSoScXMLFlightControlTarget\fP, \fBSoScXMLMiscTarget\fP, \fBSoScXMLMotionTarget\fP, \fBSoScXMLPanTarget\fP, \fBSoScXMLRotateTarget\fP, \fBSoScXMLSeekTarget\fP, \fBSoScXMLSpinTarget\fP, and \fBSoScXMLZoomTarget\fP\&. .SS "\fBSoScXMLNavigationTarget::Data\fP * SoScXMLNavigationTarget::getSessionData (\fBSbName\fP sessionid, NewDataFunc * constructor)\fR [protected]\fP" Returns the Data* base handle for the data structure that corresponds to the given \fIsessionid\fP\&. The \fIconstructor\fP argument is the function responsible for creating the Data-derived object if the session is new (or have been cleaned up earlier)\&. .SS "void SoScXMLNavigationTarget::freeSessionData (\fBSbName\fP sessionid)\fR [protected]\fP" Cleans out the data structure that is mapped to the given \fIsessionid\fP\&. .SS "\fBSbName\fP SoScXMLNavigationTarget::getSessionId (const \fBScXMLEvent\fP * event)\fR [static]\fP, \fR [protected]\fP" Returns the session id that is associated with the \fIevent\fP\&. If no session id is found, \fBSbName::empty()\fP is returned\&. .SS "\fBScXMLStateMachine\fP * SoScXMLNavigationTarget::getStateMachine (const \fBScXMLEvent\fP * event, \fBSbName\fP sessionid)\fR [static]\fP, \fR [protected]\fP" Returns the state machine that is associated with the given \fIsessionid\fP, or NULL if there are no state machines registered for the session id\&. .SS "\fBSoScXMLStateMachine\fP * SoScXMLNavigationTarget::getSoStateMachine (const \fBScXMLEvent\fP * event, \fBSbName\fP sessionid)\fR [static]\fP, \fR [protected]\fP" Returns the So- state machine that is associated with the given \fIsessionid\fP, or NULL if there are no state machines registered for the session id or if the state machine is not of \fBSoScXMLStateMachine\fP type\&. .SS "\fBSoCamera\fP * SoScXMLNavigationTarget::getActiveCamera (const \fBScXMLEvent\fP * event, \fBSbName\fP sessionid)\fR [static]\fP, \fR [protected]\fP" Returns the current active camera, or NULL if there is no active camera set\&. If NULL is returned, error messages have been posted\&. .SS "SbBool SoScXMLNavigationTarget::getEventDouble (const \fBScXMLEvent\fP * event, const char * label, double & dbl_out, SbBool required = \fRTRUE\fP)\fR [static]\fP, \fR [protected]\fP" Returns TRUE if a double was delivered with the event under the label \fIlabel\fP, and FALSE otherwise\&. If \fIrequired\fP is TRUE, then errors will be given, otherwise this function will remain quiet\&. .SS "SbBool SoScXMLNavigationTarget::getEventString (const \fBScXMLEvent\fP * event, const char * label, \fBSbString\fP & str_out, SbBool required = \fRTRUE\fP)\fR [static]\fP, \fR [protected]\fP" Returns TRUE if a string was delivered with the event under the label \fIlabel\fP, and FALSE otherwise\&. If \fIrequired\fP is TRUE, then errors will be given, otherwise this function will remain quiet\&. .SS "SbBool SoScXMLNavigationTarget::getEventSbBool (const \fBScXMLEvent\fP * event, const char * label, SbBool & bool_out, SbBool required = \fRTRUE\fP)\fR [static]\fP, \fR [protected]\fP" Returns TRUE if a boolean value was delivered with the event under the label \fIlabel\fP, and FALSE otherwise\&. If \fIrequired\fP is TRUE, then errors will be given, otherwise this function will remain quiet\&. .SS "SbBool SoScXMLNavigationTarget::getEventSbVec2f (const \fBScXMLEvent\fP * event, const char * label, \fBSbVec2f\fP & vec_out, SbBool required = \fRTRUE\fP)\fR [static]\fP, \fR [protected]\fP" Returns TRUE if an \fBSbVec2f\fP was delivered with the event under the label \fIlabel\fP, and FALSE otherwise\&. If \fIrequired\fP is TRUE, then errors will be given, otherwise this function will remain quiet\&. .SS "SbBool SoScXMLNavigationTarget::getEventSbVec3f (const \fBScXMLEvent\fP * event, const char * label, \fBSbVec3f\fP & vec_out, SbBool required = \fRTRUE\fP)\fR [static]\fP, \fR [protected]\fP" Returns TRUE if an \fBSbVec3f\fP was delivered with the event under the label \fIlabel\fP, and FALSE otherwise\&. If \fIrequired\fP is TRUE, then errors will be given, otherwise this function will remain quiet\&. .SS "SbBool SoScXMLNavigationTarget::getEventSbRotation (const \fBScXMLEvent\fP * event, const char * label, \fBSbRotation\fP & rot_out, SbBool required = \fRTRUE\fP)\fR [static]\fP, \fR [protected]\fP" Returns TRUE if an \fBSbRotation\fP was delivered with the event under the label \fIlabel\fP, and FALSE otherwise\&. If \fIrequired\fP is TRUE, then errors will be given, otherwise this function will remain quiet\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.