SceneObserver Class Reference

Interface for observing graphical objects. More...

#include <scene_observer.hh>

Inherited by GLWin, SceneObserverImpl, SceneWinModel, and SequenceViewer.

Public Member Functions

virtual ~SceneObserver ()
virtual void NodeAdded (const GfxNodeP &node)
virtual void NodeRemoved (const GfxNodeP &node)
virtual void NodeChanged (const GfxNodeP &node)
virtual void SelectionModeChanged (int sel_mode)
virtual void SelectionChanged (const GfxObjP &obj, const mol::EntityView &sel)
virtual void NodeTransformed (const GfxNodeP &node)
virtual void RenderModeChanged (const GfxNodeP &node)

Detailed Description

Interface for observing graphical objects.

Similar to the EntityObserver, SceneObserver defines an interface for objects interested in changes of the Scene. The interface provides callbacks for different state changes. All these callbacks are invoked after the state has changed.

Definition at line 41 of file scene_observer.hh.


Constructor & Destructor Documentation

virtual ~SceneObserver (  )  [inline, virtual]

Definition at line 43 of file scene_observer.hh.


Member Function Documentation

virtual void NodeAdded ( const GfxNodeP node  )  [inline, virtual]

Called when a new node has been added to the scene.

Reimplemented in SceneWinModel.

Definition at line 46 of file scene_observer.hh.

virtual void NodeChanged ( const GfxNodeP node  )  [inline, virtual]

Called when an object is updated.

Definition at line 52 of file scene_observer.hh.

virtual void NodeRemoved ( const GfxNodeP node  )  [inline, virtual]

Called when an object is removed from the scene.

Reimplemented in SceneWinModel.

Definition at line 49 of file scene_observer.hh.

virtual void NodeTransformed ( const GfxNodeP node  )  [inline, virtual]

Called when a nodes transform changes.

Definition at line 62 of file scene_observer.hh.

virtual void RenderModeChanged ( const GfxNodeP node  )  [inline, virtual]

Called when the render mode of a node changed.

Reimplemented in SceneWinModel.

Definition at line 65 of file scene_observer.hh.

virtual void SelectionChanged ( const GfxObjP obj,
const mol::EntityView sel 
) [inline, virtual]

Called when selection of an object changed.

Reimplemented in SceneWinModel, and SequenceViewer.

Definition at line 58 of file scene_observer.hh.

virtual void SelectionModeChanged ( int  sel_mode  )  [inline, virtual]

Called when the selection mode changed.

Definition at line 55 of file scene_observer.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 20 Jun 2016 for OpenStructure by  doxygen 1.6.1