CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
ctkAxesWidget Class Reference

#include <Libs/Widgets/ctkAxesWidget.h>

Inheritance diagram for ctkAxesWidget:
Inheritance graph
[legend]
Collaboration diagram for ctkAxesWidget:
Collaboration graph
[legend]

Public Types

enum  Axis {
  None =0, Right, Left, Superior,
  Inferior, Anterior, Posterior
}
 

Public Slots

virtual bool hasHeightForWidth () const
 
virtual int heightForWidth (int width) const
 
virtual QSize minimumSizeHint () const
 Size hints. More...
 
void setAutoReset (bool reset)
 Set the autoReset property to None anytime the currentAxis is changed. More...
 
void setCurrentAxis (Axis axis)
 
void setCurrentAxisToNone ()
 Utility slot that set the current axis to none. More...
 
virtual QSize sizeHint () const
 

Signals

void currentAxisChanged (ctkAxesWidget::Axis axis)
 

Public Member Functions

bool autoReset () const
 
 ctkAxesWidget (QWidget *parent=0)
 
Axis currentAxis () const
 Current selected axis. None by default. More...
 
virtual ~ctkAxesWidget ()
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *mouseEvent)
 
void mousePressEvent (QMouseEvent *mouseEvent)
 
void mouseReleaseEvent (QMouseEvent *mouseEvent)
 
void paintEvent (QPaintEvent *)
 

Protected Attributes

QScopedPointer< ctkAxesWidgetPrivate > d_ptr
 

Properties

bool autoReset
 
Axis currentAxis
 

Detailed Description

Definition at line 34 of file ctkAxesWidget.h.

Member Enumeration Documentation

Enumerator
None 
Right 
Left 
Superior 
Inferior 
Anterior 
Posterior 

Definition at line 42 of file ctkAxesWidget.h.

Constructor & Destructor Documentation

ctkAxesWidget::ctkAxesWidget ( QWidget *  parent = 0)
virtual ctkAxesWidget::~ctkAxesWidget ( )
virtual

Member Function Documentation

bool ctkAxesWidget::autoReset ( ) const

If autoReset is true, anytime the current axis is changed, the current axis is automatically reset to None. False by default.

Axis ctkAxesWidget::currentAxis ( ) const

Current selected axis. None by default.

void ctkAxesWidget::currentAxisChanged ( ctkAxesWidget::Axis  axis)
signal
virtual bool ctkAxesWidget::hasHeightForWidth ( ) const
virtualslot
virtual int ctkAxesWidget::heightForWidth ( int  width) const
virtualslot
virtual QSize ctkAxesWidget::minimumSizeHint ( ) const
virtualslot

Size hints.

void ctkAxesWidget::mouseMoveEvent ( QMouseEvent *  mouseEvent)
protected
void ctkAxesWidget::mousePressEvent ( QMouseEvent *  mouseEvent)
protected
void ctkAxesWidget::mouseReleaseEvent ( QMouseEvent *  mouseEvent)
protected
void ctkAxesWidget::paintEvent ( QPaintEvent *  )
protected
void ctkAxesWidget::setAutoReset ( bool  reset)
slot

Set the autoReset property to None anytime the currentAxis is changed.

void ctkAxesWidget::setCurrentAxis ( Axis  axis)
slot

Select the current axis and emit the currentAxisChanged signal if it is a new one. Warning, if autoReset is true, the currentAxis will automatically be reset to None.

void ctkAxesWidget::setCurrentAxisToNone ( )
slot

Utility slot that set the current axis to none.

virtual QSize ctkAxesWidget::sizeHint ( ) const
virtualslot

Member Data Documentation

QScopedPointer<ctkAxesWidgetPrivate> ctkAxesWidget::d_ptr
protected

Definition at line 96 of file ctkAxesWidget.h.

Property Documentation

bool ctkAxesWidget::autoReset
readwrite

Definition at line 39 of file ctkAxesWidget.h.

Axis ctkAxesWidget::currentAxis
readwrite

Definition at line 38 of file ctkAxesWidget.h.


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