![]() |
http://www.sim.no http://www.coin3d.org |
The class provides both a set of pre-defined cursor shapes, aswell as the option to use custom bitmap graphics.
Instances of this class is usually made for passing in to the SoQtComponent::setComponentCursor() and SoQtComponent::setWidgetCursor() methods.
Public Types | |
enum | Shape { CUSTOM_BITMAP = -1, DEFAULT = 0, BUSY, CROSSHAIR, UPARROW } |
Public Member Functions | |
SoQtCursor (void) | |
SoQtCursor (const Shape shape) | |
SoQtCursor (const CustomCursor *cc) | |
SoQtCursor (const SoQtCursor &cursor) | |
~SoQtCursor () | |
SoQtCursor & | operator= (const SoQtCursor &c) |
Shape | getShape (void) const |
void | setShape (const Shape shape) |
const CustomCursor & | getCustomCursor (void) const |
Static Public Member Functions | |
static const SoQtCursor & | getZoomCursor (void) |
static const SoQtCursor & | getPanCursor (void) |
static const SoQtCursor & | getRotateCursor (void) |
static const SoQtCursor & | getBlankCursor (void) |
Classes | |
class | CustomCursor |
The SoQtCursor::CustomCursor class is used to specify bitmap data for SoQtCursor custom cursors. More... |
|
For enumerating built-in shape types, that can be used without having to specify cursor graphics. These are mapped to pre-defined cursor shapes from the underlying toolkit. |
|
Default constructor. Creates a default cursor. |
|
Constructor with Shape argument, for setting up the cursor with a pre-defined shape from the underlying native toolkit. |
|
Constructs a new custom bitmap cursor from cc. Note that only a shallow copy will be made of the CustomCursor bitmap and mask references, so don't deallocate the memory they use until the SoQtCursor has been destructed. As for the format of the cursor bitmap data, see documentation of SoQtCursor::CustomCursor. |
|
Constructor. |
|
Destructor |
|
Equal operator. |
|
Returns the shape type. If the cursor has been set by the application programmer to a bitmap cursor, SoQtCursor::CUSTOM_BITMAP is returned. |
|
Sets the cursor to a predefined shape. |
|
Returns a reference to the current custom bitmap cursor. Do not call this method unless SoQtCursor::getShape() returns SoQtCursor::CUSTOM_BITMAP. |
|
Returns a "zoom" indicator cursor. |
|
Returns a cursor with "pan" graphics (ie for translation in the camera normal plane). |
|
Returns a "rotate" indicator cursor. |
|
Because all toolkits don't easily support setting up a blank cursor from pre-defined shapes or API functions, we also provide a simple completely transparent cursor. |
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Mon Mar 27 00:38:51 2006 for SoQt by Doxygen. 1.4.6