OpenStructure
Public Member Functions
SceneObserver Class Reference

#include <scene_observer.hh>

Inherited by GLWin, SceneWinModel, SequenceViewer, and SceneObserverImpl.

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

◆ ~SceneObserver()

virtual ~SceneObserver ( )
inlinevirtual

Definition at line 43 of file scene_observer.hh.

Member Function Documentation

◆ NodeAdded()

virtual void NodeAdded ( const GfxNodeP node)
inlinevirtual

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

Reimplemented in SceneWinModel.

Definition at line 46 of file scene_observer.hh.

◆ NodeChanged()

virtual void NodeChanged ( const GfxNodeP node)
inlinevirtual

Called when an object is updated.

Definition at line 52 of file scene_observer.hh.

◆ NodeRemoved()

virtual void NodeRemoved ( const GfxNodeP node)
inlinevirtual

Called when an object is removed from the scene.

Reimplemented in SceneWinModel.

Definition at line 49 of file scene_observer.hh.

◆ NodeTransformed()

virtual void NodeTransformed ( const GfxNodeP node)
inlinevirtual

Called when a nodes transform changes.

Definition at line 62 of file scene_observer.hh.

◆ RenderModeChanged()

virtual void RenderModeChanged ( const GfxNodeP node)
inlinevirtual

Called when the render mode of a node changed.

Reimplemented in SceneWinModel.

Definition at line 65 of file scene_observer.hh.

◆ SelectionChanged()

virtual void SelectionChanged ( const GfxObjP obj,
const mol::EntityView sel 
)
inlinevirtual

Called when selection of an object changed.

Reimplemented in SceneWinModel, and SequenceViewer.

Definition at line 58 of file scene_observer.hh.

◆ SelectionModeChanged()

virtual void SelectionModeChanged ( int  sel_mode)
inlinevirtual

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: