Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
ScXMLEventTarget Class Referenceabstract

base class for event targets for inter-system event communication More...

#include <Inventor/scxml/ScXMLEventTarget.h>

Inheritance diagram for ScXMLEventTarget:
ScXMLObject ScXMLStateMachine SoScXMLNavigationTarget SoScXMLStateMachine SoScXMLDollyTarget SoScXMLFlightControlTarget SoScXMLMiscTarget SoScXMLMotionTarget SoScXMLPanTarget SoScXMLRotateTarget SoScXMLSeekTarget SoScXMLSpinTarget SoScXMLZoomTarget

Public Member Functions

virtual const ScXMLEventgetCurrentEvent (void) const
 
const char * getEventTargetName (void) const
 
const char * getEventTargetType (void) const
 
virtual SoType getTypeId (void) const =0
 Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.
 
virtual SbBool processEventQueue (void)
 
virtual void queueEvent (const SbName &eventid)
 
virtual void queueEvent (const ScXMLEvent *event)
 
virtual void queueInternalEvent (const SbName &eventid)
 
virtual void queueInternalEvent (const ScXMLEvent *event)
 
virtual SbBool sendExternalEvent (const ScXMLSendElt *sendelt)
 
virtual SbBool sendInternalEvent (const ScXMLEventElt *sendelt)
 
virtual void setEventTargetName (const char *targetname)
 
virtual void setEventTargetType (const char *targettype)
 
- 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.
 

Static Public Member Functions

static void cleanClass (void)
 
static SoType getClassTypeId (void)
 
static void initClass (void)
 
- Static Public Member Functions inherited from ScXMLObject
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 type system.
 
static SoType getClassTypeId (void)
 This static method returns the SoType object associated with objects of this class.
 
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.
 

Protected Member Functions

virtual const ScXMLEventgetNextEvent (void)
 
virtual const ScXMLEventgetNextExternalEvent (void)
 
virtual const ScXMLEventgetNextInternalEvent (void)
 
virtual SbBool processOneEvent (const ScXMLEvent *event)
 
virtual void setCurrentEvent (const ScXMLEvent *event)
 

Static Protected Member Functions

static ScXMLEventTargetgetEventTarget (const char *targettype, const char *targetname, const char *sessionid=NULL)
 
static void registerEventTarget (ScXMLEventTarget *target, const char *sessionid=NULL)
 
static void unregisterEventTarget (ScXMLEventTarget *target, 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

const ScXMLEventcurrentevent
 
SbBool isprocessingqueue
 
char * targetname
 
char * targettype
 

Detailed Description

base class for event targets for inter-system event communication

This class manages inter-communication between SCXML systems and systems intended for communicating with such systems. It also manages the external event queue for such systems (systems may also have internal event queues).

Since
Coin 3.1

Member Function Documentation

◆ getCurrentEvent()

const ScXMLEvent * ScXMLEventTarget::getCurrentEvent ( void ) const
inlinevirtual

This method returns the current event during event processing, and NULL when not processing events.

Event processing is in special cases done with NULL as the current event, as for instance during state machine initialization.

◆ getTypeId()

virtual SoType ScXMLEventTarget::getTypeId ( void ) const
pure virtual

Returns the type identification of an object derived from a class inheriting SoBase. This is used for runtime type checking and "downward" casting.

See also
SoBase::getTypeId() const

Implements ScXMLObject.

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

◆ processOneEvent()

SbBool ScXMLEventTarget::processOneEvent ( const ScXMLEvent * event)
protectedvirtual

◆ queueEvent() [1/2]

void ScXMLEventTarget::queueEvent ( const SbName & eventid)
virtual

Queues an ScXMLEvent event that has the given eventid as its event name.

◆ queueEvent() [2/2]

void ScXMLEventTarget::queueEvent ( const ScXMLEvent * event)
virtual

Queues an ScXMLEvent event. The event is copied, and can be deleted as soon as the function returns.

◆ setCurrentEvent()

void ScXMLEventTarget::setCurrentEvent ( const ScXMLEvent * event)
protectedvirtual

Sets a pointer for the event that is 'current' during event processing. This is an internal method, and the updating of the current event should be handled automatically.


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