MeVisLabToolboxReference
|
SoPointerPosition manages the current position of the mouse cursor. More...
#include <SoPointerPosition.h>
Public Member Functions | |
SoPointerPosition () | |
Default constructor. More... | |
SoPointerPosition (const int v[2]) | |
SoPointerPosition (int x, int y) | |
bool | isNull () const |
int | manhattanLength () const |
int | x () const |
int | y () const |
void | getValue (int &x, int &y) const |
SoPointerPosition & | setValue (const int v[2]) |
Sets the value of vector from array of two components. More... | |
SoPointerPosition & | setValue (int x, int y) |
Sets the value of vector from two individual components. More... | |
int | operator[] (int i) const |
Accesses indexed component of position vector. More... | |
SoPointerPosition & | operator= (const SoPointerPosition &u) |
Assignment operator. More... | |
SoHandleEventAction * | getAction () const |
SoState * | getState () const |
template<class T > | |
void | set (T *data) |
Sets pointer to additional position data, e.g., for SoView2D or SoDiagram2D. More... | |
template<class T > | |
T * | get () const |
Gets pointer to additional position data. More... | |
const View2DPosition * | getView2DPosition () const |
Friends | |
class | SoInteractionHandler |
Let only the SoInteractionHandler set the SoHandleEventAction on this position. More... | |
SOMANAGEDINTERACTION_API bool | operator== (const SoPointerPosition &v1, const SoPointerPosition &v2) |
Equality comparison operator. More... | |
SOMANAGEDINTERACTION_API bool | operator!= (const SoPointerPosition &v1, const SoPointerPosition &v2) |
Negated equality comparison operator. More... | |
SoPointerPosition manages the current position of the mouse cursor.
Definition at line 23 of file SoPointerPosition.h.
SoPointerPosition::SoPointerPosition | ( | ) |
Default constructor.
SoPointerPosition::SoPointerPosition | ( | const int | v[2] | ) |
SoPointerPosition::SoPointerPosition | ( | int | x, |
int | y | ||
) |
|
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 86 of file SoPointerPosition.h.
References T.
|
inline |
Definition at line 73 of file SoPointerPosition.h.
SoState* SoPointerPosition::getState | ( | ) | const |
void SoPointerPosition::getValue | ( | int & | x, |
int & | y | ||
) | const |
|
inline |
Definition at line 89 of file SoPointerPosition.h.
bool SoPointerPosition::isNull | ( | ) | const |
int SoPointerPosition::manhattanLength | ( | ) | const |
SoPointerPosition& SoPointerPosition::operator= | ( | const SoPointerPosition & | u | ) |
Assignment operator.
|
inline |
Accesses indexed component of position vector.
Definition at line 61 of file SoPointerPosition.h.
|
inline |
Sets pointer to additional position data, e.g., for SoView2D or SoDiagram2D.
Definition at line 80 of file SoPointerPosition.h.
SoPointerPosition& SoPointerPosition::setValue | ( | const int | v[2] | ) |
Sets the value of vector from array of two components.
SoPointerPosition& SoPointerPosition::setValue | ( | int | x, |
int | y | ||
) |
Sets the value of vector from two individual components.
|
inline |
Definition at line 47 of file SoPointerPosition.h.
|
inline |
Definition at line 49 of file SoPointerPosition.h.
|
friend |
Negated equality comparison operator.
Definition at line 69 of file SoPointerPosition.h.
|
friend |
Equality comparison operator.
|
friend |
Let only the SoInteractionHandler set the SoHandleEventAction on this position.
Definition at line 26 of file SoPointerPosition.h.