OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WCrosshair Class Reference

This class stores the position of the crossing navigation slices, which is also represented as crosshairs in the navigation widgets. More...

#include <WCrosshair.h>

+ Collaboration diagram for WCrosshair:

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...
 

Detailed Description

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.

Member Function Documentation

◆ getPosition()

WPosition WCrosshair::getPosition ( )

Get the position of the crosshair.

Returns
the position

Definition at line 27 of file WCrosshair.cpp.

References m_position.

◆ setPosition()

void WCrosshair::setPosition ( WPosition  position)

Set the position of the crosshair for updating it.

Parameters
positionThe new position.

Definition at line 32 of file WCrosshair.cpp.

References m_position.

Member Data Documentation

◆ m_position

WPosition WCrosshair::m_position
private

Stores the current position of the crosshair.

Definition at line 60 of file WCrosshair.h.

Referenced by getPosition(), and setPosition().


The documentation for this class was generated from the following files: