OpenWalnut
1.5.0dev
|
This class stores the position of the crossing navigation slices, which is also represented as crosshairs in the navigation widgets. More...
#include <WCrosshair.h>
Public Member Functions | |
WPosition | getPosition () |
Get the position of the crosshair. More... | |
void | setPosition (WPosition position) |
Set the position of the crosshair for updating it. More... | |
Private Attributes | |
WPosition | m_position |
Stores the current position of the crosshair. More... | |
This class stores the position of the crossing navigation slices, which is also represented as crosshairs in the navigation widgets.
It can be used for placing things. An example are the ROIBoxes which are placed at the crosshairs position at the moment I am writing this.
Definition at line 41 of file WCrosshair.h.
WPosition WCrosshair::getPosition | ( | ) |
Get the position of the crosshair.
Definition at line 27 of file WCrosshair.cpp.
References m_position.
void WCrosshair::setPosition | ( | WPosition | position | ) |
Set the position of the crosshair for updating it.
position | The new position. |
Definition at line 32 of file WCrosshair.cpp.
References m_position.
|
private |
Stores the current position of the crosshair.
Definition at line 60 of file WCrosshair.h.
Referenced by getPosition(), and setPosition().