OpenSceneGraph 2.8.4
Public Member Functions | Protected Member Functions | Protected Attributes
osgWidget::Input Class Reference
Inheritance diagram for osgWidget::Input:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Input (const std::string &="", const std::string &="", unsigned int=20)
virtual void parented (Window *)
virtual void positioned ()
virtual bool focus (WindowManager *)
virtual bool unfocus (WindowManager *)
virtual bool keyUp (int, int, WindowManager *)
virtual bool keyDown (int, int, WindowManager *)
void setCursor (Widget *)
unsigned int calculateBestYOffset (const std::string &="qgl")
void setXOffset (point_type xo)
void setYOffset (point_type yo)
void setXYOffset (point_type xo, point_type yo)
osg::DrawablegetCursor ()
const osg::DrawablegetCursor () const
point_type getXOffset () const
point_type getYOffset () const
XYCoord getXYOffset () const

Protected Member Functions

virtual void _calculateSize (const XYCoord &)
void _calculateCursorOffsets ()

Protected Attributes

point_type _xoff
point_type _yoff
unsigned int _index
unsigned int _size
unsigned int _cursorIndex
unsigned int _maxSize
std::vector< point_type_offsets
osg::ref_ptr< Widget_cursor

Constructor & Destructor Documentation

osgWidget::Input::Input ( const std::string &  = "",
const std::string &  = "",
unsigned  int = 20 
)

Member Function Documentation

void osgWidget::Input::_calculateCursorOffsets ( ) [protected]
virtual void osgWidget::Input::_calculateSize ( const XYCoord ) [protected, virtual]

Reimplemented from osgWidget::Label.

unsigned int osgWidget::Input::calculateBestYOffset ( const std::string &  = "qgl")
virtual bool osgWidget::Input::focus ( WindowManager ) [virtual]

Reimplemented from osgWidget::EventInterface.

osg::Drawable* osgWidget::Input::getCursor ( ) [inline]
const osg::Drawable* osgWidget::Input::getCursor ( ) const [inline]
point_type osgWidget::Input::getXOffset ( ) const [inline]
XYCoord osgWidget::Input::getXYOffset ( ) const [inline]
point_type osgWidget::Input::getYOffset ( ) const [inline]
virtual bool osgWidget::Input::keyDown ( int  ,
int  ,
WindowManager  
) [virtual]

Reimplemented from osgWidget::EventInterface.

virtual bool osgWidget::Input::keyUp ( int  ,
int  ,
WindowManager  
) [virtual]

Reimplemented from osgWidget::EventInterface.

virtual void osgWidget::Input::parented ( Window ) [virtual]

Reimplemented from osgWidget::Label.

virtual void osgWidget::Input::positioned ( ) [virtual]

Reimplemented from osgWidget::Label.

void osgWidget::Input::setCursor ( Widget )
void osgWidget::Input::setXOffset ( point_type  xo) [inline]
void osgWidget::Input::setXYOffset ( point_type  xo,
point_type  yo 
) [inline]
void osgWidget::Input::setYOffset ( point_type  yo) [inline]
virtual bool osgWidget::Input::unfocus ( WindowManager ) [virtual]

Reimplemented from osgWidget::EventInterface.


Member Data Documentation

unsigned int osgWidget::Input::_cursorIndex [protected]
unsigned int osgWidget::Input::_index [protected]

Reimplemented from osgWidget::Widget.

unsigned int osgWidget::Input::_maxSize [protected]
std::vector<point_type> osgWidget::Input::_offsets [protected]
unsigned int osgWidget::Input::_size [protected]

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

osg logo
Generated at Sun Jan 8 2012 13:17:08 for the OpenSceneGraph by doxygen 1.7.4.