OpenWalnut  1.4.0
Classes | Public Member Functions | Protected Attributes | Friends
WGEBorderLayout Class Reference

This class contains a label layout for positioning labels at the side of the screen. More...

#include <WGEBorderLayout.h>

+ Inheritance diagram for WGEBorderLayout:

List of all members.

Classes

class  SafeUpdateCallback
 Node callback to actually layout the objects. More...

Public Member Functions

 WGEBorderLayout ()
 Default constructor.
virtual ~WGEBorderLayout ()
 Destructor.
virtual void addLayoutable (osg::ref_ptr< WGELabel > obj)
 Adds the specified object to the list of layouted objects.

Protected Attributes

osg::ref_ptr< osg::Geode > m_geode
 The geode containing all drawables.
osg::ref_ptr< osg::Geode > m_lineGeode
 Contains all lead lines.
osg::ref_ptr< osg::Projection > m_screen
 The projection to the screen.

Friends

class SafeUpdateCallback

Detailed Description

This class contains a label layout for positioning labels at the side of the screen.

There is a line from the point of interest to the label on the side of the screen.

Definition at line 40 of file WGEBorderLayout.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 34 of file WGEBorderLayout.cpp.

References WGEGroupNode::insert(), m_geode, m_lineGeode, and m_screen.

Destructor.

Definition at line 64 of file WGEBorderLayout.cpp.


Member Function Documentation

void WGEBorderLayout::addLayoutable ( osg::ref_ptr< WGELabel obj) [virtual]

Adds the specified object to the list of layouted objects.

Parameters:
objthe layoutable object.
Todo:
All:(ebaum): this is ugly, use a common baseclass instead

Definition at line 69 of file WGEBorderLayout.cpp.

References m_geode.


Member Data Documentation

osg::ref_ptr< osg::Geode > WGEBorderLayout::m_geode [protected]

The geode containing all drawables.

Definition at line 66 of file WGEBorderLayout.h.

Referenced by addLayoutable(), and WGEBorderLayout().

osg::ref_ptr< osg::Geode > WGEBorderLayout::m_lineGeode [protected]

Contains all lead lines.

Definition at line 71 of file WGEBorderLayout.h.

Referenced by WGEBorderLayout().

osg::ref_ptr< osg::Projection > WGEBorderLayout::m_screen [protected]

The projection to the screen.

Definition at line 76 of file WGEBorderLayout.h.

Referenced by WGEBorderLayout().


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