OpenSceneGraph  3.0.1
Public Types | Public Member Functions | Protected Member Functions
osgWidget::Box Class Reference

The Box object is a Window subclass that can be configured to uniformly (or non-uniformly) position it's children either vertically or horizontally. More...

Inheritance diagram for osgWidget::Box:
Inheritance graph
[legend]

List of all members.

Public Types

enum  BoxType { VERTICAL, HORIZONTAL }
 An enum corresponding to the type of Box alignment. More...

Public Member Functions

 META_Object (osgWidget, Box)
 Box (const std::string &="", BoxType=HORIZONTAL, bool=false)
 The main constructor; takes the string name, the BoxType orientation, and a boolean indicating whether or not all of the Box regions should be uniformly sized.
 Box (const Box &, const osg::CopyOp &)

Protected Member Functions

virtual void _resizeImplementation (point_type, point_type)
virtual Sizes _getWidthImplementation () const
virtual Sizes _getHeightImplementation () const

Detailed Description

The Box object is a Window subclass that can be configured to uniformly (or non-uniformly) position it's children either vertically or horizontally.

It is the most basic Window implementation, though there is some difficulty when positioning children such that each child object ends up pixel-aligned.


Member Enumeration Documentation

An enum corresponding to the type of Box alignment.

Enumerator:
VERTICAL 
HORIZONTAL 

Constructor & Destructor Documentation

osgWidget::Box::Box ( const std::string &  = "",
BoxType  = HORIZONTAL,
bool  = false 
)

The main constructor; takes the string name, the BoxType orientation, and a boolean indicating whether or not all of the Box regions should be uniformly sized.

osgWidget::Box::Box ( const Box ,
const osg::CopyOp  
)

Member Function Documentation

virtual Sizes osgWidget::Box::_getHeightImplementation ( ) const [protected, virtual]

Reimplemented from osgWidget::Window.

virtual Sizes osgWidget::Box::_getWidthImplementation ( ) const [protected, virtual]

Reimplemented from osgWidget::Window.

virtual void osgWidget::Box::_resizeImplementation ( point_type  ,
point_type   
) [protected, virtual]

Implements osgWidget::Window.

osgWidget::Box::META_Object ( osgWidget  ,
Box   
)

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

osg logo
Generated at Mon Oct 3 2011 12:39:51 for the OpenSceneGraph by doxygen 1.7.5.