#include <SoViewerProxy.h>
Public Types | |
| enum | { UNDEFINED_CURSOR = -1, DEFAULT_CURSOR = 0, FORBIDDEN_CURSOR, POINTING_HAND_CURSOR, OPEN_HAND_CURSOR, CLOSED_HAND_CURSOR, MOVE_ALL_CURSOR, MOVE_HORI_CURSOR, MOVE_VERT_CURSOR, MOVE_FDIAG_CURSOR, MOVE_BDIAG_CURSOR, MOVE_INOUT_CURSOR, ROTATE_X_CURSOR, ROTATE_Y_CURSOR, ROTATE_Z_CURSOR, ROTATE_XY_CURSOR, ZOOM_CURSOR, ZOOM_IN_CURSOR, ZOOM_OUT_CURSOR, CROSS_CURSOR, CROSS_PLUS_CURSOR, CROSS_MINUS_CURSOR, CROSS_MOVE_CURSOR, CROSS_ROTATE_CURSOR, CROSS_RECT_CURSOR, CROSS_OVAL_CURSOR, CROSS_VECTOR_CURSOR, CROSS_FREEFORM_CURSOR, CROSS_POINT_CURSOR, CROSS_LINE_CURSOR, CROSS_CURVE_CURSOR, CROSS_POLYLINE_CURSOR, CROSS_POLYGON_CURSOR, CROSS_FILL_CURSOR, CROSS_LINK_CURSOR, CROSS_0_CURSOR, CROSS_1_CURSOR, CROSS_2_CURSOR, CROSS_3_CURSOR, LUT_CURSOR, SLICING_CURSOR, PREDEFINED_CURSOR_COUNT } |
| pre-defined cursor shapes More... | |
Public Member Functions | |
| virtual | ~SoViewerProxy () |
| Destructor. | |
| virtual void | setCursor (int) |
| Set cursor of viewer to pre- or user-defined shape, invalid values will set cursor to default shape. | |
| virtual bool | hasShape (int shapeID) |
| return true if the cursor shape has already been defined | |
| virtual int | defineCursor (const char *, int=-1, int=-1, int=-1) |
| Define new cursor shape - successful operation is only guaranteed with PNG-Images with size 32x32, containing only black, white and transparent pixels. | |
| virtual bool | getCurrentCursorPosition (int &x, int &y) |
| Get current cursor position relative to the viewing window. | |
| virtual bool | isInitialRendering () const |
| returns true if the viewer does the initial rendering after it became visible | |
Static Public Member Functions | |
| static int | getNextFreeShapeID () |
| return the next free id for defining your own cursor shape | |
Public Attributes | |
| enum SoViewerProxy:: { ... } | cursorShapeEnum |
| pre-defined cursor shapes | |
Protected Member Functions | |
| SoViewerProxy () | |
| Protected constructor. Class must be derived to be adapted to actual viewer. | |
Currently implemented is setting of cursor shapes and defining own cursor shapes.
Definition at line 20 of file SoViewerProxy.h.
| anonymous enum |
pre-defined cursor shapes
Definition at line 27 of file SoViewerProxy.h.
| virtual SoViewerProxy::~SoViewerProxy | ( | ) | [inline, virtual] |
| SoViewerProxy::SoViewerProxy | ( | ) | [inline, protected] |
Protected constructor. Class must be derived to be adapted to actual viewer.
Definition at line 105 of file SoViewerProxy.h.
| virtual int SoViewerProxy::defineCursor | ( | const char * | , | |
| int | = -1, |
|||
| int | = -1, |
|||
| int | = -1 | |||
| ) | [inline, virtual] |
Define new cursor shape - successful operation is only guaranteed with PNG-Images with size 32x32, containing only black, white and transparent pixels.
If the operation failed, -1 is returned, otherwise the shape id. [Remark: Since in principle viewers of different systems can be mixed, one should
Definition at line 93 of file SoViewerProxy.h.
| virtual bool SoViewerProxy::getCurrentCursorPosition | ( | int & | x, | |
| int & | y | |||
| ) | [virtual] |
Get current cursor position relative to the viewing window.
Returns true if the position is inside of the viewing window.
| static int SoViewerProxy::getNextFreeShapeID | ( | ) | [static] |
return the next free id for defining your own cursor shape
| virtual bool SoViewerProxy::hasShape | ( | int | shapeID | ) | [virtual] |
return true if the cursor shape has already been defined
| virtual bool SoViewerProxy::isInitialRendering | ( | ) | const [inline, virtual] |
returns true if the viewer does the initial rendering after it became visible
Definition at line 101 of file SoViewerProxy.h.
| virtual void SoViewerProxy::setCursor | ( | int | ) | [inline, virtual] |
Set cursor of viewer to pre- or user-defined shape, invalid values will set cursor to default shape.
This only works from event handling routines.
Definition at line 74 of file SoViewerProxy.h.
| enum { ... } SoViewerProxy::cursorShapeEnum |
pre-defined cursor shapes
1.5.8