SYNOPSIS

#include <Inventor/navigation/SoScXMLNavigationTarget.h>

Inherits ScXMLEventTarget.

Inherited by SoScXMLDollyTarget, SoScXMLFlightControlTarget, SoScXMLMiscTarget, SoScXMLMotionTarget, SoScXMLPanTarget, SoScXMLRotateTarget, SoScXMLSeekTarget, SoScXMLSpinTarget, and SoScXMLZoomTarget.

Public Member Functions

virtual SoType getTypeId (void) const =0

Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting.

Static Public Member Functions

static SoType getClassTypeId (void)

static void initClass (void)

static void cleanClass (void)

Protected Types

typedef Data * NewDataFunc (void)

Protected Member Functions

Data * getSessionData (SbName sessionid, NewDataFunc *constructor)

void freeSessionData (SbName sessionid)

Static Protected Member Functions

static SbName getSessionId (const ScXMLEvent *event)

static ScXMLStateMachine * getStateMachine (const ScXMLEvent *event, SbName sessionid)

static SoScXMLStateMachine * getSoStateMachine (const ScXMLEvent *event, SbName sessionid)

static SoCamera * getActiveCamera (const ScXMLEvent *event, SbName sessionid)

static SbBool getEventDouble (const ScXMLEvent *event, const char *label, double &dbl_out, SbBool required=TRUE)

static SbBool getEventString (const ScXMLEvent *event, const char *label, SbString &str_out, SbBool required=TRUE)

static SbBool getEventSbBool (const ScXMLEvent *event, const char *label, SbBool &bool_out, SbBool required=TRUE)

static SbBool getEventSbVec2f (const ScXMLEvent *event, const char *label, SbVec2f &vec_out, SbBool required=TRUE)

static SbBool getEventSbVec3f (const ScXMLEvent *event, const char *label, SbVec3f &vec_out, SbBool required=TRUE)

static SbBool getEventSbRotation (const ScXMLEvent *event, const char *label, SbRotation &rot_out, SbBool required=TRUE)

Additional Inherited Members

Detailed Description

base class for navigation system SCXML event target services

This class contains some common, useful, utility functions for implementing navigation system event targets.

Since:

2009-02-14

Member Function Documentation

virtual \fBSoType\fP SoScXMLNavigationTarget::getTypeId (void) const\fC [pure virtual]\fP

Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting.

See also:

SoBase::getTypeId() const

Implements ScXMLEventTarget.

Implemented in SoScXMLDollyTarget, SoScXMLZoomTarget, SoScXMLPanTarget, SoScXMLRotateTarget, SoScXMLSeekTarget, SoScXMLSpinTarget, SoScXMLFlightControlTarget, SoScXMLMiscTarget, and SoScXMLMotionTarget.

SoScXMLNavigationTarget::Data * SoScXMLNavigationTarget::getSessionData (\fBSbName\fPsessionid, NewDataFunc *constructor)\fC [protected]\fP

Returns the Data* base handle for the datastructure that corresponds to the given sessionid. The constructor argument is the function responsible for creating the Data-derived object if the session is new (or have been cleaned up earlier).

void SoScXMLNavigationTarget::freeSessionData (\fBSbName\fPsessionid)\fC [protected]\fP

Cleans out the data structure that is mapped to the given sessionid.

\fBSbName\fP SoScXMLNavigationTarget::getSessionId (const \fBScXMLEvent\fP *event)\fC [static]\fP, \fC [protected]\fP

Returns the sessionid that is associated with the event. If no session id is found, SbName::empty() is returned.

\fBScXMLStateMachine\fP * SoScXMLNavigationTarget::getStateMachine (const \fBScXMLEvent\fP *event, \fBSbName\fPsessionid)\fC [static]\fP, \fC [protected]\fP

Returns the state machine that is associated with the given sessionid, or NULL if there are no state machines registered for the session id.

\fBSoScXMLStateMachine\fP * SoScXMLNavigationTarget::getSoStateMachine (const \fBScXMLEvent\fP *event, \fBSbName\fPsessionid)\fC [static]\fP, \fC [protected]\fP

Returns the So- state machine that is associated with the given sessionid, or NULL if there are no state machines registered for the session id or if the state machine is not of SoScXMLStateMachine type.

\fBSoCamera\fP * SoScXMLNavigationTarget::getActiveCamera (const \fBScXMLEvent\fP *event, \fBSbName\fPsessionid)\fC [static]\fP, \fC [protected]\fP

Returns the current active camera, or NULL if there is no active camera set. If NULL is returned, error messages has been posted.

SbBool SoScXMLNavigationTarget::getEventDouble (const \fBScXMLEvent\fP *event, const char *label, double &dbl_out, SbBoolrequired = \fCTRUE\fP)\fC [static]\fP, \fC [protected]\fP

Returns TRUE if a double was delivered with the event under the label label, and FALSE otherwise. If required is TRUE, then errors will be given, otherwise this function will remain quiet.

SbBool SoScXMLNavigationTarget::getEventString (const \fBScXMLEvent\fP *event, const char *label, \fBSbString\fP &str_out, SbBoolrequired = \fCTRUE\fP)\fC [static]\fP, \fC [protected]\fP

Returns TRUE if a string was delivered with the event under the label label, and FALSE otherwise. If required is TRUE, then errors will be given, otherwise this function will remain quiet.

SbBool SoScXMLNavigationTarget::getEventSbBool (const \fBScXMLEvent\fP *event, const char *label, SbBool &bool_out, SbBoolrequired = \fCTRUE\fP)\fC [static]\fP, \fC [protected]\fP

Returns TRUE if a boolean value was delivered with the event under the label label, and FALSE otherwise. If required is TRUE, then errors will be given, otherwise this function will remain quiet.

SbBool SoScXMLNavigationTarget::getEventSbVec2f (const \fBScXMLEvent\fP *event, const char *label, \fBSbVec2f\fP &vec_out, SbBoolrequired = \fCTRUE\fP)\fC [static]\fP, \fC [protected]\fP

Returns TRUE if an SbVec2f was delivered with the event under the label label, and FALSE otherwise. If required is TRUE, then errors will be given, otherwise this function will remain quiet.

SbBool SoScXMLNavigationTarget::getEventSbVec3f (const \fBScXMLEvent\fP *event, const char *label, \fBSbVec3f\fP &vec_out, SbBoolrequired = \fCTRUE\fP)\fC [static]\fP, \fC [protected]\fP

Returns TRUE if an SbVec3f was delivered with the event under the label label, and FALSE otherwise. If required is TRUE, then errors will be given, otherwise this function will remain quiet.

SbBool SoScXMLNavigationTarget::getEventSbRotation (const \fBScXMLEvent\fP *event, const char *label, \fBSbRotation\fP &rot_out, SbBoolrequired = \fCTRUE\fP)\fC [static]\fP, \fC [protected]\fP

Returns TRUE if an SbRotation was delivered with the event under the label label, and FALSE otherwise. If required is TRUE, then errors will be given, otherwise this function will remain quiet.

Author

Generated automatically by Doxygen for Coin from the source code.