Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
SoScXMLZoomTarget Class Reference

SCXML event target service for zoom-behaviour. More...

#include <Inventor/scxml/SoScXMLZoomTarget.h>

Inheritance diagram for SoScXMLZoomTarget:
SoScXMLNavigationTarget ScXMLEventTarget ScXMLObject

Public Member Functions

virtual SoType getTypeId (void) const
 Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and "downward" casting. More...
 
- Public Member Functions inherited from ScXMLEventTarget
virtual void setEventTargetType (const char *targettype)
 
const char * getEventTargetType (void) const
 
virtual void setEventTargetName (const char *targetname)
 
const char * getEventTargetName (void) const
 
virtual const ScXMLEventgetCurrentEvent (void) const
 
virtual void queueEvent (const ScXMLEvent *event)
 
virtual void queueEvent (const SbName &eventid)
 
virtual SbBool processEventQueue (void)
 
virtual SbBool sendExternalEvent (const ScXMLSendElt *sendelt)
 
virtual SbBool sendInternalEvent (const ScXMLEventElt *sendelt)
 
virtual void queueInternalEvent (const ScXMLEvent *event)
 
virtual void queueInternalEvent (const SbName &eventid)
 
- Public Member Functions inherited from ScXMLObject
SbBool isOfType (SoType type) const
 Returns TRUE if the type of this object is either of the same type or inherited from type. More...
 

Static Public Member Functions

static SoType getClassTypeId (void)
 
static void * createInstance (void)
 
static void initClass (void)
 
static void cleanClass (void)
 
static SoScXMLZoomTargetconstructSingleton (void)
 
static void destructSingleton (void)
 
static SoScXMLZoomTargetsingleton (void)
 
static const SbNameBEGIN (void)
 
static const SbNameUPDATE (void)
 
static const SbNameEND (void)
 
static const SbNameZOOM (void)
 
static const SbNameZOOM_IN (void)
 
static const SbNameZOOM_OUT (void)
 
static const SbNameRESET (void)
 
static void zoom (SoCamera *camera, float factor)
 
static void reset (SoCamera *camera)
 
- Static Public Member Functions inherited from SoScXMLNavigationTarget
static SoType getClassTypeId (void)
 
static void initClass (void)
 
static void cleanClass (void)
 
- Static Public Member Functions inherited from ScXMLEventTarget
static SoType getClassTypeId (void)
 
static void initClass (void)
 
static void cleanClass (void)
 
- Static Public Member Functions inherited from ScXMLObject
static SoType getClassTypeId (void)
 This static method returns the SoType object associated with objects of this class. More...
 
static void initClass (void)
 Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. More...
 
static void cleanClass (void)
 Does the opposite of initClass, deallocates any class specific resources and resets the class to an uninitialized state with respect to the Coin typesystem.
 

Protected Member Functions

virtual SbBool processOneEvent (const ScXMLEvent *event)
 
- Protected Member Functions inherited from SoScXMLNavigationTarget
DatagetSessionData (SbName sessionid, NewDataFunc *constructor)
 
void freeSessionData (SbName sessionid)
 
- Protected Member Functions inherited from ScXMLEventTarget
virtual void setCurrentEvent (const ScXMLEvent *event)
 
virtual const ScXMLEventgetNextEvent (void)
 
virtual const ScXMLEventgetNextInternalEvent (void)
 
virtual const ScXMLEventgetNextExternalEvent (void)
 

Additional Inherited Members

- Protected Types inherited from SoScXMLNavigationTarget
typedef DataNewDataFunc(void)
 
- Static Protected Member Functions inherited from SoScXMLNavigationTarget
static SbName getSessionId (const ScXMLEvent *event)
 
static ScXMLStateMachinegetStateMachine (const ScXMLEvent *event, SbName sessionid)
 
static SoScXMLStateMachinegetSoStateMachine (const ScXMLEvent *event, SbName sessionid)
 
static SoCameragetActiveCamera (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)
 
- Static Protected Member Functions inherited from ScXMLEventTarget
static void registerEventTarget (ScXMLEventTarget *target, const char *sessionid=NULL)
 
static void unregisterEventTarget (ScXMLEventTarget *target, const char *sessionid=NULL)
 
static ScXMLEventTargetgetEventTarget (const char *targettype, const char *targetname, const char *sessionid=NULL)
 
- Static Protected Member Functions inherited from ScXMLObject
static void registerClassType (const char *xmlns, const char *classname, SoType type)
 
static void registerInvokeClassType (const char *xmlns, const char *targettype, const char *source, SoType type)
 
- Protected Attributes inherited from ScXMLEventTarget
char * targetname
 
char * targettype
 
const ScXMLEventcurrentevent
 
SbBool isprocessingqueue
 

Detailed Description

SCXML event target service for zoom-behaviour.

Events:

x-coin-navigation.Zoom.*

{ BEGIN _sessionid {string} mouseposition {SbVec2f}

UPDATE _sessionid {string} mouseposition {SbVec2f}

END _sessionid {string} mouseposition {SbVec2f} }

ZOOM _sessionid factor {float}

ZOOM_IN _sessionid {string} [factor] {float=1.2} [count] {float=1}

ZOOM_OUT _sessionid {string} [factor] {float=1.2} [count] {float=1}

RESET _sessionid {string}

Since
2008-02-14

Member Function Documentation

◆ getTypeId()

SoType SoScXMLZoomTarget::getTypeId ( void  ) const
virtual

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 SoScXMLNavigationTarget.

◆ reset()

void SoScXMLZoomTarget::reset ( SoCamera camera)
static

This function resets the zooming attributes of the camera to the default values.

◆ processOneEvent()

SbBool SoScXMLZoomTarget::processOneEvent ( const ScXMLEvent event)
protectedvirtual

This function processes one event. The base class implementation does nothing.

Reimplemented from ScXMLEventTarget.


The documentation for this class was generated from the following files: