osgWidget::Box Class Reference

Inheritance diagram for osgWidget::Box:

osgWidget::Window osg::MatrixTransform osgWidget::UIObjectParent< T > osgWidget::EventInterface osgWidget::StyleInterface osg::Transform osg::Group osg::Node osg::Object osg::Referenced

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)
 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

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

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

Implements osgWidget::Window.

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

Reimplemented from osgWidget::Window.

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

Reimplemented from osgWidget::Window.


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

Generated on Fri Mar 19 19:53:01 2010 for openscenegraph by  doxygen 1.5.6