GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
QGoSegmentationAlgo Class Reference

abstract class to be the interface between the algorithms for meshes and contours and GoFigure More...

#include <Code/GUI/lib/TraceEditing/QGoSegmentationAlgo.h>

Inheritance diagram for QGoSegmentationAlgo:
[legend]
Collaboration diagram for QGoSegmentationAlgo:
[legend]

Public Member Functions

template<class PixelType , unsigned int VImageDimension>
vtkImageData * ConvertITK2VTK (typename itk::Image< PixelType, VImageDimension >::Pointer iInput)
template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType,
VImageDimension >::Pointer 
ConvertVTK2ITK (vtkImageData *iInput)
vtkSmartPointer< vtkPolyData > DecimatePolyData (vtkSmartPointer< vtkPolyData > &iPolyData, const unsigned int &iNumberOfPoints)
std::vector< vtkPolyData * > ExtractPolyData (std::vector< vtkImageData * > &iInputImage, const double &iThreshold)
vtkSmartPointer< vtkPolyData > ExtractPolyData (vtkImageData *iInputImage, const double &iThreshold)
QGoAlgorithmWidgetGetAlgoWidget ()
 return the algowidget
bool GetDecimate ()
unsigned int GetNumberOfPoints () const
template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType,
VImageDimension >::Pointer 
ITKExtractROI (const std::vector< double > &iBounds, typename itk::Image< PixelType, VImageDimension >::Pointer iInput)
template<class PixelType >
itk::Image< PixelType, 2 >::Pointer ITKExtractSlice (const std::vector< double > &iBounds, typename itk::Image< PixelType, 3 >::Pointer iInput)
 QGoSegmentationAlgo (QWidget *iParent=0)
void SetDecimate (bool &iDecimate)
void SetNumberOfPoints (const unsigned int &iNumberOfPoints)
std::vector< vtkImageData * > VTKExtractROI (const std::vector< double > &iBounds, const std::vector< vtkSmartPointer< vtkImageData > > &iImages)
 return the vtkpolydata created by the algorithm
vtkImageData * VTKExtractROI (const std::vector< double > &iBounds, const vtkSmartPointer< vtkImageData > &iImage)
virtual ~QGoSegmentationAlgo ()
- Public Member Functions inherited from QObject
bool blockSignals (bool block)
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
const QObjectList & children () const
const char * className () const
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
void deleteLater ()
void destroyed (QObject *obj)
bool disconnect (const QObject *receiver, const char *method)
bool disconnect (const char *signal, const QObject *receiver, const char *method)
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
virtual bool event (QEvent *e)
virtual bool eventFilter (QObject *watched, QEvent *event)
findChild (const QString &name) const
QList< T > findChildren (const QRegExp &regExp) const
QList< T > findChildren (const QString &name) const
bool inherits (const char *className) const
void insertChild (QObject *object)
void installEventFilter (QObject *filterObj)
bool isA (const char *className) const
bool isWidgetType () const
void killTimer (int id)
virtual const QMetaObjectmetaObject () const
void moveToThread (QThread *targetThread)
const char * name () const
const char * name (const char *defaultName) const
QString objectName () const
QObjectparent () const
QVariant property (const char *name) const
 QObject (QObject *parent)
 QObject (QObject *parent, const char *name)
void removeChild (QObject *object)
void removeEventFilter (QObject *obj)
void setName (const char *name)
void setObjectName (const QString &name)
void setParent (QObject *parent)
bool setProperty (const char *name, const QVariant &value)
bool signalsBlocked () const
int startTimer (int interval)
QThreadthread () const
virtual  ~QObject ()

Protected Member Functions

virtual void DeleteParameters ()=0
 delete the different parameters
virtual void SetAlgoWidget (QWidget *iParent=0)=0
 construct the algowidget with the different parameters
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
virtual void childEvent (QChildEvent *event)
virtual void connectNotify (const char *signal)
virtual void customEvent (QEvent *event)
virtual void disconnectNotify (const char *signal)
int receivers (const char *signal) const
QObjectsender () const
int senderSignalIndex () const
virtual void timerEvent (QTimerEvent *event)

Protected Attributes

QGoAlgorithmWidgetm_AlgoWidget

Private Member Functions

vtkSmartPointer< vtkPolyData > DecimateContour (vtkSmartPointer< vtkPolyData > iPolyData, unsigned int iNumberOfPoints)
vtkSmartPointer< vtkPolyData > DecimateMesh (vtkSmartPointer< vtkPolyData > iPolyData, unsigned int iNumberOfPoints)
vtkSmartPointer< vtkPolyData > ExtractContour (vtkSmartPointer< vtkImageData > iInputImage, const double &iThreshold)
vtkSmartPointer< vtkPolyData > ExtractMesh (vtkSmartPointer< vtkImageData > iInputImage, const double &iThreshold)
vtkSmartPointer< vtkPolyData > ReorganizeContour (vtkSmartPointer< vtkPolyData > iInputImage)

Private Attributes

bool m_Decimate
unsigned int m_NumberOfPoints

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
QString tr (const char *sourceText, const char *disambiguation, int n)
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
- Properties inherited from QObject
 objectName

Detailed Description

abstract class to be the interface between the algorithms for meshes and contours and GoFigure

Definition at line 69 of file QGoSegmentationAlgo.h.

Constructor & Destructor Documentation

QGoSegmentationAlgo::QGoSegmentationAlgo ( QWidget iParent = 0)
explicit

Definition at line 63 of file QGoSegmentationAlgo.cxx.

QGoSegmentationAlgo::~QGoSegmentationAlgo ( )
virtual

Definition at line 71 of file QGoSegmentationAlgo.cxx.

Member Function Documentation

template<class PixelType , unsigned int VImageDimension>
vtkImageData* QGoSegmentationAlgo::ConvertITK2VTK ( typename itk::Image< PixelType, VImageDimension >::Pointer  iInput)
inline

Definition at line 161 of file QGoSegmentationAlgo.h.

template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType, VImageDimension >::Pointer QGoSegmentationAlgo::ConvertVTK2ITK ( vtkImageData *  iInput)
inline

Definition at line 122 of file QGoSegmentationAlgo.h.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::DecimateContour ( vtkSmartPointer< vtkPolyData >  iPolyData,
unsigned int  iNumberOfPoints 
)
private

Definition at line 407 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::DecimateMesh ( vtkSmartPointer< vtkPolyData >  iPolyData,
unsigned int  iNumberOfPoints 
)
private

Definition at line 427 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::DecimatePolyData ( vtkSmartPointer< vtkPolyData > &  iPolyData,
const unsigned int &  iNumberOfPoints 
)

Definition at line 368 of file QGoSegmentationAlgo.cxx.

virtual void QGoSegmentationAlgo::DeleteParameters ( )
protectedpure virtual
vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ExtractContour ( vtkSmartPointer< vtkImageData >  iInputImage,
const double &  iThreshold 
)
private

Definition at line 218 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ExtractMesh ( vtkSmartPointer< vtkImageData >  iInputImage,
const double &  iThreshold 
)
private

Definition at line 291 of file QGoSegmentationAlgo.cxx.

std::vector< vtkPolyData * > QGoSegmentationAlgo::ExtractPolyData ( std::vector< vtkImageData * > &  iInputImage,
const double &  iThreshold 
)

Definition at line 152 of file QGoSegmentationAlgo.cxx.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ExtractPolyData ( vtkImageData *  iInputImage,
const double &  iThreshold 
)

Definition at line 179 of file QGoSegmentationAlgo.cxx.

QGoAlgorithmWidget * QGoSegmentationAlgo::GetAlgoWidget ( )

return the algowidget

Definition at line 77 of file QGoSegmentationAlgo.cxx.

bool QGoSegmentationAlgo::GetDecimate ( )

Definition at line 460 of file QGoSegmentationAlgo.cxx.

unsigned int QGoSegmentationAlgo::GetNumberOfPoints ( ) const

Definition at line 478 of file QGoSegmentationAlgo.cxx.

template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType, VImageDimension >::Pointer QGoSegmentationAlgo::ITKExtractROI ( const std::vector< double > &  iBounds,
typename itk::Image< PixelType, VImageDimension >::Pointer  iInput 
)
inline

Definition at line 188 of file QGoSegmentationAlgo.h.

template<class PixelType >
itk::Image< PixelType, 2>::Pointer QGoSegmentationAlgo::ITKExtractSlice ( const std::vector< double > &  iBounds,
typename itk::Image< PixelType, 3 >::Pointer  iInput 
)
inline

Definition at line 280 of file QGoSegmentationAlgo.h.

vtkSmartPointer< vtkPolyData > QGoSegmentationAlgo::ReorganizeContour ( vtkSmartPointer< vtkPolyData >  iInputImage)
private

Definition at line 235 of file QGoSegmentationAlgo.cxx.

virtual void QGoSegmentationAlgo::SetAlgoWidget ( QWidget iParent = 0)
protectedpure virtual
void QGoSegmentationAlgo::SetDecimate ( bool &  iDecimate)

Definition at line 451 of file QGoSegmentationAlgo.cxx.

void QGoSegmentationAlgo::SetNumberOfPoints ( const unsigned int &  iNumberOfPoints)

Definition at line 469 of file QGoSegmentationAlgo.cxx.

std::vector< vtkImageData * > QGoSegmentationAlgo::VTKExtractROI ( const std::vector< double > &  iBounds,
const std::vector< vtkSmartPointer< vtkImageData > > &  iImages 
)

return the vtkpolydata created by the algorithm

Definition at line 85 of file QGoSegmentationAlgo.cxx.

vtkImageData * QGoSegmentationAlgo::VTKExtractROI ( const std::vector< double > &  iBounds,
const vtkSmartPointer< vtkImageData > &  iImage 
)

Definition at line 111 of file QGoSegmentationAlgo.cxx.

Member Data Documentation

QGoAlgorithmWidget* QGoSegmentationAlgo::m_AlgoWidget
protected

Definition at line 513 of file QGoSegmentationAlgo.h.

bool QGoSegmentationAlgo::m_Decimate
private

Definition at line 509 of file QGoSegmentationAlgo.h.

unsigned int QGoSegmentationAlgo::m_NumberOfPoints
private

Definition at line 510 of file QGoSegmentationAlgo.h.


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