Public Types |
| enum | Corner {
LOWER_LEFT = 0,
LOWER_RIGHT = 1,
UPPER_RIGHT = 2,
UPPER_LEFT = 3,
LL = LOWER_LEFT,
LR = LOWER_RIGHT,
UR = UPPER_RIGHT,
UL = UPPER_LEFT,
ALL_CORNERS = 4
} |
| enum | Layer {
LAYER_TOP = 100,
LAYER_HIGH = 75,
LAYER_MIDDLE = 50,
LAYER_LOW = 25,
LAYER_BG = 0
} |
| enum | VerticalAlignment { VA_CENTER,
VA_TOP,
VA_BOTTOM
} |
| enum | HorizontalAlignment { HA_CENTER,
HA_LEFT,
HA_RIGHT
} |
| enum | CoordinateMode { CM_ABSOLUTE,
CM_RELATIVE
} |
Public Member Functions |
| | Widget (const std::string &="", point_type=0.0f, point_type=0.0f) |
| | Widget (const Widget &, const osg::CopyOp &) |
| | META_Object (osgWidget, Widget) |
| virtual | ~Widget () |
| virtual void | parented (Window *) |
| virtual void | unparented (Window *) |
| virtual void | managed (WindowManager *) |
| virtual void | unmanaged (WindowManager *) |
| virtual void | positioned () |
| void | setDimensions (point_type=-1.0f, point_type=-1.0f, point_type=-1.0f, point_type=-1.0f, point_type=-1.0f) |
| void | setPadding (point_type) |
| void | setColor (color_type, color_type, color_type, color_type, Corner=ALL_CORNERS) |
| void | addColor (color_type, color_type, color_type, color_type, Corner=ALL_CORNERS) |
| void | setTexCoord (texcoord_type, texcoord_type, Corner=ALL_CORNERS) |
| void | setLayer (Layer l, unsigned int offset=0) |
| void | setTexCoordRegion (point_type, point_type, point_type, point_type) |
| void | setTexCoordWrapHorizontal () |
| void | setTexCoordWrapVertical () |
| bool | setImage (osg::Image *, bool=false, bool=false) |
| bool | setImage (const std::string &, bool=false, bool=false) |
| bool | setTexture (osg::Texture *, bool=false, bool=false) |
| void | addX (point_type) |
| void | addY (point_type) |
| void | addWidth (point_type) |
| void | addHeight (point_type) |
| void | addOrigin (point_type, point_type) |
| void | addSize (point_type, point_type) |
| point_type | getWidth () const |
| point_type | getHeight () const |
| point_type | getX () const |
| point_type | getY () const |
| point_type | getZ () const |
| point_type | getPadHorizontal () const |
| point_type | getPadVertical () const |
| const Point & | getPoint (Corner=ALL_CORNERS) const |
| const Color & | getColor (Corner=ALL_CORNERS) const |
| const TexCoord & | getTexCoord (Corner=ALL_CORNERS) const |
| Color | getImageColorAtXY (point_type x, point_type y) const |
| XYCoord | localXY (double, double) const |
| bool | isPaddingUniform () const |
| bool | isManaged () const |
| bool | isStyled () const |
| void | setDimensions (const Quad &q, point_type z=-1.0f) |
| void | setX (point_type x) |
| void | setY (point_type y) |
| void | setZ (point_type z) |
| void | setWidth (point_type w) |
| void | setHeight (point_type h) |
| void | setOrigin (point_type x, point_type y) |
| void | setOrigin (const XYCoord &xy) |
| void | setSize (point_type w, point_type h) |
| void | setSize (const XYCoord &xy) |
| void | setColor (const Color &col, Corner p=ALL_CORNERS) |
| void | setTexCoord (const XYCoord &xy, Corner p=ALL_CORNERS) |
| void | setTexCoordRegion (const XYCoord &xy, point_type w, point_type h) |
| void | setTexCoordRegion (point_type x, point_type y, const XYCoord &wh) |
| void | setTexCoordRegion (const XYCoord &xy, const XYCoord &wh) |
| void | addColor (const Color &col, Corner p=ALL_CORNERS) |
| void | addOrigin (const XYCoord &xy) |
| void | addSize (const XYCoord &xy) |
| void | setMinimumSize (point_type width, point_type height) |
| void | setMinimumSize (const XYCoord &xy) |
| void | setPadLeft (point_type p) |
| void | setPadRight (point_type p) |
| void | setPadTop (point_type p) |
| void | setPadBottom (point_type p) |
| void | setAlignHorizontal (HorizontalAlignment h) |
| void | setAlignVertical (VerticalAlignment v) |
| void | setCoordinateMode (CoordinateMode cm) |
| void | setCanFill (bool f) |
| void | setCanClone (bool c) |
| WindowManager * | getWindowManager () |
| const WindowManager * | getWindowManager () const |
| Window * | getParent () |
| const Window * | getParent () const |
| unsigned int | getIndex () const |
| XYCoord | getOrigin () const |
| Color | getImageColorAtXY (const XYCoord &xy) const |
| Color | getImageColorAtPointerXY (double x, double y) const |
| Point | getPosition () const |
| XYCoord | getSize () const |
| Quad | getDimensions () const |
| point_type | getPadLeft () const |
| point_type | getPadRight () const |
| point_type | getPadTop () const |
| point_type | getPadBottom () const |
| HorizontalAlignment | getAlignHorizontal () const |
| VerticalAlignment | getAlignVertical () const |
| CoordinateMode | getCoordinateMode () const |
| bool | canFill () const |
| bool | canClone () const |
| point_type | getFillAsNumeric () const |
| point_type | getWidthTotal () const |
| point_type | getHeightTotal () const |
| point_type | getMinWidth () const |
| point_type | getMinHeight () const |
| point_type | getMinWidthTotal () const |
| point_type | getMinHeightTotal () const |
| unsigned int | getLayer () const |
Protected Member Functions |
| point_type | _calculateZ (unsigned int) const |
| PointArray * | _verts () |
| const PointArray * | _verts () const |
| ColorArray * | _cols () |
| const ColorArray * | _cols () const |
| TexCoordArray * | _texs () |
| const TexCoordArray * | _texs () const |
| osg::Texture * | _texture () |
| const osg::Texture * | _texture () const |
| osg::Image * | _image () |
| const osg::Image * | _image () const |
| WindowManager * | _getWindowManager () const |
| osg::Image * | _getImage () const |
Protected Attributes |
| Window * | _parent |
| unsigned int | _index |
| unsigned int | _layer |
| point_type | _padLeft |
| point_type | _padRight |
| point_type | _padTop |
| point_type | _padBottom |
| VerticalAlignment | _valign |
| HorizontalAlignment | _halign |
| CoordinateMode | _coordMode |
| Quad | _relCoords |
| bool | _canFill |
| bool | _canClone |
| bool | _isManaged |
| bool | _isStyled |
| point_type | _minWidth |
| point_type | _minHeight |
Static Protected Attributes |
| static osg::ref_ptr< PointArray > | _norms |
Friends |
| class | Window |