OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Friends | List of all members
visBase::EventCatcher Class Reference
Inheritance diagram for visBase::EventCatcher:
[legend]

Public Member Functions

 EventCatcher ()
 
virtual const char * getClassName () const
 
void setEventType (int type)
 
int eventType () const
 
void releaseEventsPostOsg (bool yn)
 
bool isHandled () const
 
void setHandled ()
 
void reHandle (const EventInfo &)
 
void setUtm2Display (ObjectSet< Transformation > &)
 
- Public Member Functions inherited from visBase::DataObject
virtual bool isOK () const
 
int id () const
 
void setID (int nid)
 
uiString name () const
 
virtual void setName (const uiString &)
 
osg::Node * osgNode (bool skipswitch=false)
 
const osg::Node * osgNode (bool skipswitch=false) const
 
void enableTraversal (unsigned int mask, bool yn=true)
 
bool isTraversalEnabled (unsigned int mask) const
 
SoNode * getInventorNode ()
 
const SoNode * getInventorNode () const
 
virtual bool turnOn (bool yn)
 
virtual bool isOn () const
 
bool isPickable (bool actively=true) const
 
void setPickable (bool actively, bool passively=true)
 
virtual bool rightClickable () const
 
virtual bool selectable () const
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () const
 
virtual NotifierAccessselection ()
 
virtual NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
virtual const TypeSet< int > * rightClickedPath () const
 
virtual void setDisplayTransformation (const visBase::Transformation *)
 
virtual const visBase::TransformationgetDisplayTransformation () const
 
virtual void setRightHandSystem (bool yn)
 
virtual bool isRightHandSystem () const
 
virtual void setPixelDensity (float dpi)
 
virtual float getPixelDensity () const
 
virtual const char * errMsg () const
 
bool serialize (const char *filename, bool binary=false)
 
void setParent (DataObjectGroup *g)
 
template<class T >
T * addNodeState (T *ns)
 
NodeStateremoveNodeState (NodeState *)
 
NodeStategetNodeState (int idx)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static EventCatchercreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
- Static Public Member Functions inherited from visBase::DataObject
static int getID (const osg::Node *)
 
static float getDefaultPixelDensity ()
 
static void setVisualizationThread (const void *)
 Call only once from initialization. More...
 
static bool isVisualizationThread ()
 
static void requestSingleRedraw ()
 
static void setCommonViewer (osgViewer::CompositeViewer *)
 
static osgViewer::CompositeViewer * getCommonViewer ()
 

Public Attributes

CNotifier< EventCatcher, const EventInfo & > eventhappened
 
CNotifier< EventCatcher, const EventInfo & > nothandled
 

Protected Member Functions

 ~EventCatcher ()
 
void releaseEventsCB (CallBacker *)
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
virtual void triggerSel ()
 
virtual void triggerDeSel ()
 
virtual void triggerRightClick (const EventInfo *=0)
 
 DataObject ()
 
template<class T >
T * setOsgNode (T *t)
 Must be called during construction. More...
 
void updateNodemask ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

static const char * eventtypestr ()
 

Protected Attributes

int type_
 
ObjectSet< Transformationutm2display_
 
bool ishandled_
 
bool rehandling_
 
bool rehandled_
 
osg::Node * osgnode_
 
EventCatchHandlereventcatchhandler_
 
ObjectSet< EventInfoeventqueue_
 
Threads::Lock eventqueuelock_
 
bool eventreleasepostosg_
 
Timereventreleasetimer_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

EventCatcheroperator= (const EventCatcher &)
 
 EventCatcher (const EventCatcher &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Friends

class EventCatchHandler
 

Detailed Description

Constructor & Destructor Documentation

visBase::EventCatcher::EventCatcher ( const EventCatcher )
private
visBase::EventCatcher::EventCatcher ( )
visBase::EventCatcher::~EventCatcher ( )
protected

Member Function Documentation

static EventCatcher* visBase::EventCatcher::create ( )
inlinestatic
static visBase::DataObject* visBase::EventCatcher::createInternal ( )
inlinestaticprivate
int visBase::EventCatcher::eventType ( ) const
inline
static const char* visBase::EventCatcher::eventtypestr ( )
staticprotected
virtual const char* visBase::EventCatcher::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

static const char* visBase::EventCatcher::getStaticClassName ( )
static
static void visBase::EventCatcher::initClass ( )
static
bool visBase::EventCatcher::isHandled ( ) const
EventCatcher& visBase::EventCatcher::operator= ( const EventCatcher )
private
void visBase::EventCatcher::reHandle ( const EventInfo )
void visBase::EventCatcher::releaseEventsCB ( CallBacker )
protected
void visBase::EventCatcher::releaseEventsPostOsg ( bool  yn)
void visBase::EventCatcher::setEventType ( int  type)
void visBase::EventCatcher::setHandled ( )
void visBase::EventCatcher::setUtm2Display ( ObjectSet< Transformation > &  )
static const char* visBase::EventCatcher::sFactoryKeyword ( )
static

Friends And Related Function Documentation

friend class EventCatchHandler
friend

Member Data Documentation

EventCatchHandler* visBase::EventCatcher::eventcatchhandler_
protected
CNotifier<EventCatcher, const EventInfo&> visBase::EventCatcher::eventhappened

True by default to enable scene update from right-click menu dialogs, but only sound when being last in event handling chain.

ObjectSet<EventInfo> visBase::EventCatcher::eventqueue_
protected
Threads::Lock visBase::EventCatcher::eventqueuelock_
protected
bool visBase::EventCatcher::eventreleasepostosg_
protected
Timer* visBase::EventCatcher::eventreleasetimer_
protected
bool visBase::EventCatcher::ishandled_
protected
CNotifier<EventCatcher, const EventInfo&> visBase::EventCatcher::nothandled
osg::Node* visBase::EventCatcher::osgnode_
protected
bool visBase::EventCatcher::rehandled_
protected
bool visBase::EventCatcher::rehandling_
protected
int visBase::EventCatcher::type_
protected
ObjectSet<Transformation> visBase::EventCatcher::utm2display_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019