ctkCoordinatesWidget Class Reference

#include <Libs/Widgets/ctkCoordinatesWidget.h>

List of all members.


void valueChanged (double *pos)

Public Member Functions

double * coordinates () const
QString coordinatesAsString () const
 ctkCoordinatesWidget (QWidget *parent=0)
int dimension () const
double maximum () const
double minimum () const
void setCoordinates (double *pos)
void setCoordinatesAsString (QString pos)
void setDimension (int dim)
void setMaximum (double minimum)
void setMinimum (double minimum)
void setSingleStep (double step)
double singleStep () const
virtual ~ctkCoordinatesWidget ()

Protected Slots

void coordinateChanged (double)
void coordinatesChanged ()

Protected Member Functions

void addSpinBox ()

Protected Attributes

double * Coordinates
double Maximum
double Minimum
double SingleStep


QString coordinates
int Dimension
double maximum
double minimum
double singleStep

Detailed Description

ctkCoordinatesWidget is a simple container of dimension coordinates. For each coordinate a spinbox is associated, everytime a value is modified the signal valueChanged is fired.

Definition at line 34 of file ctkCoordinatesWidget.h.

Constructor & Destructor Documentation

ctkCoordinatesWidget::ctkCoordinatesWidget ( QWidget *  parent = 0  )  [explicit]

Definition at line 29 of file ctkCoordinatesWidget.cpp.

ctkCoordinatesWidget::~ctkCoordinatesWidget (  )  [virtual]

Definition at line 48 of file ctkCoordinatesWidget.cpp.

Member Function Documentation

void ctkCoordinatesWidget::addSpinBox (  )  [protected]

Definition at line 54 of file ctkCoordinatesWidget.cpp.

void ctkCoordinatesWidget::coordinateChanged ( double  coordinate  )  [protected, slot]

Definition at line 235 of file ctkCoordinatesWidget.cpp.

double* ctkCoordinatesWidget::coordinates (  )  const
QString ctkCoordinatesWidget::coordinatesAsString (  )  const

Definition at line 192 of file ctkCoordinatesWidget.cpp.

void ctkCoordinatesWidget::coordinatesChanged (  )  [protected, slot]

Definition at line 251 of file ctkCoordinatesWidget.cpp.

int ctkCoordinatesWidget::dimension (  )  const

Definition at line 103 of file ctkCoordinatesWidget.cpp.

double ctkCoordinatesWidget::maximum (  )  const
double ctkCoordinatesWidget::minimum (  )  const
void ctkCoordinatesWidget::setCoordinates ( double *  pos  ) 

Set/Get the coordinates

Definition at line 207 of file ctkCoordinatesWidget.cpp.

void ctkCoordinatesWidget::setCoordinatesAsString ( QString  pos  ) 

Set/Get the coordinates. Use commas between numbers

Definition at line 175 of file ctkCoordinatesWidget.cpp.

void ctkCoordinatesWidget::setDimension ( int  dim  ) 

Set/Get the dimension of the point (3D by default)

Definition at line 66 of file ctkCoordinatesWidget.cpp.

void ctkCoordinatesWidget::setMaximum ( double  minimum  ) 

Set/Get the maximum value of the QDoubleSpinBoxes

Definition at line 131 of file ctkCoordinatesWidget.cpp.

void ctkCoordinatesWidget::setMinimum ( double  minimum  ) 

Set/Get the minimum value of the QDoubleSpinBoxes

Definition at line 109 of file ctkCoordinatesWidget.cpp.

void ctkCoordinatesWidget::setSingleStep ( double  step  ) 

Set/Get the single step of the QDoubleSpinBoxes

Definition at line 153 of file ctkCoordinatesWidget.cpp.

double ctkCoordinatesWidget::singleStep (  )  const
void ctkCoordinatesWidget::valueChanged ( double *  pos  )  [signal]

valueChanged is fired anytime one coordinate is modified

Member Data Documentation

double* ctkCoordinatesWidget::Coordinates [protected]

Definition at line 93 of file ctkCoordinatesWidget.h.

double ctkCoordinatesWidget::Maximum [protected]

Definition at line 90 of file ctkCoordinatesWidget.h.

double ctkCoordinatesWidget::Minimum [protected]

Definition at line 89 of file ctkCoordinatesWidget.h.

Definition at line 91 of file ctkCoordinatesWidget.h.

Property Documentation

double * ctkCoordinatesWidget::coordinates [read, write]

Definition at line 41 of file ctkCoordinatesWidget.h.

int ctkCoordinatesWidget::Dimension [read, write]

Definition at line 37 of file ctkCoordinatesWidget.h.

double ctkCoordinatesWidget::maximum [read, write]

Definition at line 39 of file ctkCoordinatesWidget.h.

double ctkCoordinatesWidget::minimum [read, write]

Definition at line 38 of file ctkCoordinatesWidget.h.

double ctkCoordinatesWidget::singleStep [read, write]

Definition at line 40 of file ctkCoordinatesWidget.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1