dart
Public Member Functions | Protected Member Functions | Friends | List of all members
dart::gui::osg::ViewerAttachment Class Referenceabstract
Inheritance diagram for dart::gui::osg::ViewerAttachment:
Inheritance graph
[legend]
Collaboration diagram for dart::gui::osg::ViewerAttachment:
Collaboration graph
[legend]

Public Member Functions

 ViewerAttachment ()
 Default constructor.
 
virtual ~ViewerAttachment ()
 Virtual destructor.
 
virtual void refresh ()=0
 This function will get called each time the Viewer is refreshed. More...
 
ViewergetViewer ()
 
const ViewergetViewer () const
 

Protected Member Functions

virtual void customAttach (Viewer *newViewer)
 This function will be called by attach(Viewer*) so you can do customized setup when the Viewer changes. More...
 
virtual void attach (Viewer *newViewer)
 This function will get called when the visual is attached to a new Viewer. More...
 

Friends

class Viewer
 

Member Function Documentation

◆ attach()

void dart::gui::osg::ViewerAttachment::attach ( Viewer newViewer)
protectedvirtual

This function will get called when the visual is attached to a new Viewer.

It adds this node as a child to the root node of the Viewer so the refresh() function will be called at each update cycle. It will also call customAttach(Viewer*) so you can do customized setup.

◆ customAttach()

void dart::gui::osg::ViewerAttachment::customAttach ( Viewer newViewer)
protectedvirtual

This function will be called by attach(Viewer*) so you can do customized setup when the Viewer changes.

By default this function does nothing, so overriding it is completely safe.

◆ refresh()

virtual void dart::gui::osg::ViewerAttachment::refresh ( )
pure virtual

This function will get called each time the Viewer is refreshed.

Override it to have your attachment update with each refresh cycle.

Implemented in dart::gui::osg::SupportPolygonVisual, and dart::gui::osg::GridVisual.


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