SoPointerPosition manages the current position of the mouse cursor.
More...
#include <SoPointerPosition.h>
SoPointerPosition manages the current position of the mouse cursor.
Definition at line 27 of file SoPointerPosition.h.
◆ SoPointerPosition() [1/4]
SoPointerPosition::SoPointerPosition |
( |
| ) |
|
◆ SoPointerPosition() [2/4]
SoPointerPosition::SoPointerPosition |
( |
const int |
v[2] | ) |
|
◆ SoPointerPosition() [3/4]
SoPointerPosition::SoPointerPosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
◆ SoPointerPosition() [4/4]
◆ get()
template<class T >
T* SoPointerPosition::get |
( |
| ) |
const |
|
inline |
Gets pointer to additional position data.
There is no safe-guard here, but since the type of the additional data is very context specific, there should be no ambiguities. E.g., for SoView2DExtension the data will always be View2DPosition.
Definition at line 93 of file SoPointerPosition.h.
References T.
◆ getAction()
SoHandleEventAction* SoPointerPosition::getAction |
( |
| ) |
const |
|
inline |
◆ getState()
SoState* SoPointerPosition::getState |
( |
| ) |
const |
- Returns
- the Inventor state.
◆ getValue()
void SoPointerPosition::getValue |
( |
int & |
x, |
|
|
int & |
y |
|
) |
| const |
- Returns
- the position as two individual components.
◆ getView2DPosition()
◆ isNull()
bool SoPointerPosition::isNull |
( |
| ) |
const |
- Returns
- whether the stored position is the coordinate system's origin (0/0).
◆ manhattanLength()
int SoPointerPosition::manhattanLength |
( |
| ) |
const |
- Returns
- the manhattan distance of this position to the coordinate system's origin.
◆ operator=()
◆ operator[]()
int SoPointerPosition::operator[] |
( |
int |
i | ) |
const |
|
inline |
◆ set()
template<class T >
void SoPointerPosition::set |
( |
T * |
data | ) |
|
|
inline |
◆ setValue() [1/2]
Sets the value of vector from array of two components.
◆ setValue() [2/2]
Sets the value of vector from two individual components.
◆ x()
int SoPointerPosition::x |
( |
| ) |
const |
|
inline |
◆ y()
int SoPointerPosition::y |
( |
| ) |
const |
|
inline |
◆ operator!=
◆ operator==
Equality comparison operator.
◆ SoInteractionHandler
The documentation for this class was generated from the following file: