CustusX  15.3.4-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::PointSamplingWidget Class Reference

#include <cxPointSamplingWidget.h>

Inheritance diagram for cx::PointSamplingWidget:
cx::BaseWidget cx::OptimizedUpdateWidget

Public Member Functions

 PointSamplingWidget (QWidget *parent)
 
virtual ~PointSamplingWidget ()
 
virtual QString defaultWhatsThis () const
 Returns a short description of what this widget will do for you. More...
 
- Public Member Functions inherited from cx::BaseWidget
 BaseWidget (QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~BaseWidget ()
 
QWidget * createMethodWidget (QWidget *inputWidget, QWidget *outputWidget, QString methodname, bool inputChecked=false, bool outputVisible=true)
 Create a specialized widget for filters, with input/ouput, enable and options. More...
 
QGroupBox * createGroupbox (QWidget *widget, QString boxname)
 Create a group box with a given name. More...
 
QGroupBox * wrapInGroupBox (QWidget *base, QString name)
 
CXFramewrapInFrame (QWidget *base)
 
template<class T >
QAction * createAction (QObject *parent, QIcon iconName, QString text, QString tip, T slot, QLayout *layout=NULL, QToolButton *button=new QToolButton())
 
- Public Member Functions inherited from cx::OptimizedUpdateWidget
 OptimizedUpdateWidget (QWidget *parent=NULL)
 
virtual ~OptimizedUpdateWidget ()
 

Protected Types

typedef std::vector< LandmarkLandmarkVector
 

Protected Slots

void updateSlot ()
 
void itemSelectionChanged ()
 
void addButtonClickedSlot ()
 
void editButtonClickedSlot ()
 
void removeButtonClickedSlot ()
 
void gotoButtonClickedSlot ()
 
void loadReferencePointsSlot ()
 

Protected Member Functions

virtual void showEvent (QShowEvent *event)
 updates internal info before showing the widget More...
 
virtual void hideEvent (QHideEvent *event)
 
void setManualTool (const Vector3D &p_r)
 
Vector3D getSample () const
 
void enablebuttons ()
 
void addPoint (Vector3D point)
 
- Protected Member Functions inherited from cx::OptimizedUpdateWidget
virtual void prePaintEvent ()
 
virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

QVBoxLayout * mVerticalLayout
 vertical layout is used More...
 
QTableWidget * mTable
 the table widget presenting the landmarks More...
 
LandmarkVector mSamples
 
QString mActiveLandmark
 uid of surrently selected landmark. More...
 
QPushButton * mAddButton
 the Add Landmark button More...
 
QPushButton * mEditButton
 the Edit Landmark button More...
 
QPushButton * mRemoveButton
 the Remove Landmark button More...
 
QPushButton * mLoadReferencePointsButton
 button for loading a reference tools reference points More...
 

Additional Inherited Members

- Public Slots inherited from cx::BaseWidget
void adjustSizeSlot ()
 
- Public Slots inherited from cx::OptimizedUpdateWidget
virtual void setModified ()
 
- Static Public Member Functions inherited from cx::BaseWidget
static QFrame * createHorizontalLine ()
 Creates a horizontal line which can be inserted into widgets. More...
 

Detailed Description

Early version of metric/label system. Replaced by MetricWidget.

See Also
MetricWidget
Date
2010.05.05
Author
Christian Askeland, SINTEF

Definition at line 66 of file cxPointSamplingWidget.h.

Member Typedef Documentation

Constructor & Destructor Documentation

cx::PointSamplingWidget::PointSamplingWidget ( QWidget *  parent)

Definition at line 56 of file cxPointSamplingWidget.cpp.

cx::PointSamplingWidget::~PointSamplingWidget ( )
virtual

Definition at line 93 of file cxPointSamplingWidget.cpp.

Member Function Documentation

void cx::PointSamplingWidget::addButtonClickedSlot ( )
protectedslot

Definition at line 249 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::addPoint ( Vector3D  point)
protected

Definition at line 206 of file cxPointSamplingWidget.cpp.

QString cx::PointSamplingWidget::defaultWhatsThis ( ) const
virtual

Returns a short description of what this widget will do for you.

Implements cx::BaseWidget.

Definition at line 96 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::editButtonClickedSlot ( )
protectedslot

Definition at line 262 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::enablebuttons ( )
protected

Definition at line 198 of file cxPointSamplingWidget.cpp.

Vector3D cx::PointSamplingWidget::getSample ( ) const
protected

Definition at line 254 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::gotoButtonClickedSlot ( )
protectedslot

Definition at line 288 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::hideEvent ( QHideEvent *  event)
protectedvirtual

Definition at line 136 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::itemSelectionChanged ( )
protectedslot

Definition at line 105 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::loadReferencePointsSlot ( )
protectedslot

Definition at line 293 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::removeButtonClickedSlot ( )
protectedslot

Definition at line 273 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::setManualTool ( const Vector3D p_r)
protected

Definition at line 222 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::showEvent ( QShowEvent *  event)
protectedvirtual

updates internal info before showing the widget

Reimplemented from cx::BaseWidget.

Definition at line 124 of file cxPointSamplingWidget.cpp.

void cx::PointSamplingWidget::updateSlot ( )
protectedslot

Definition at line 141 of file cxPointSamplingWidget.cpp.

Member Data Documentation

QString cx::PointSamplingWidget::mActiveLandmark
protected

uid of surrently selected landmark.

Definition at line 100 of file cxPointSamplingWidget.h.

QPushButton* cx::PointSamplingWidget::mAddButton
protected

the Add Landmark button

Definition at line 102 of file cxPointSamplingWidget.h.

QPushButton* cx::PointSamplingWidget::mEditButton
protected

the Edit Landmark button

Definition at line 103 of file cxPointSamplingWidget.h.

QPushButton* cx::PointSamplingWidget::mLoadReferencePointsButton
protected

button for loading a reference tools reference points

Definition at line 105 of file cxPointSamplingWidget.h.

QPushButton* cx::PointSamplingWidget::mRemoveButton
protected

the Remove Landmark button

Definition at line 104 of file cxPointSamplingWidget.h.

LandmarkVector cx::PointSamplingWidget::mSamples
protected

Definition at line 99 of file cxPointSamplingWidget.h.

QTableWidget* cx::PointSamplingWidget::mTable
protected

the table widget presenting the landmarks

Definition at line 97 of file cxPointSamplingWidget.h.

QVBoxLayout* cx::PointSamplingWidget::mVerticalLayout
protected

vertical layout is used

Definition at line 96 of file cxPointSamplingWidget.h.


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