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 | List of all members
QGoShapeAlgo Class Referenceabstract

class to be the interface between the shape algo for meshes, contours and set of contours and GoFigure More...

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

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

Public Member Functions

virtual std::vector
< vtkPolyData * > 
ApplyAlgo (GoImageProcessor *iImages, std::string iChannel, bool iIsInvertedOn=false)=0
 return the vtkpolydata created by the algorithm More...
 
 QGoShapeAlgo (std::vector< vtkPoints * > *iSeeds, QWidget *iParent=0)
 
 ~QGoShapeAlgo ()
 
- Public Member Functions inherited from QGoSemiAutoSegmentationAlgo
 QGoSemiAutoSegmentationAlgo (std::vector< vtkPoints * > *iSeeds, QWidget *iParent=0)
 
virtual ~QGoSemiAutoSegmentationAlgo ()
 
- Public Member Functions inherited from QGoSegmentationAlgo
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 More...
 
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 More...
 
vtkImageData * VTKExtractROI (const std::vector< double > &iBounds, const vtkSmartPointer< vtkImageData > &iImage)
 
virtual ~QGoSegmentationAlgo ()
 

Protected Member Functions

void DeleteParameters ()
 delete the different parameters More...
 
virtual void SetAlgoWidget (QWidget *iParent=0)
 construct the algowidget with the different parameters More...
 
- Protected Member Functions inherited from QGoSemiAutoSegmentationAlgo
std::vector< double > GetBounds (const std::vector< double > &iCenter, const double &iRadius, const unsigned int &iOrientation=3)
 

Protected Attributes

QGoAlgoParameter< std::string > * m_Shape
 
- Protected Attributes inherited from QGoSemiAutoSegmentationAlgo
QGoAlgoParameter< double > * m_Radius
 
std::vector< vtkPoints * > * m_Seeds
 
- Protected Attributes inherited from QGoSegmentationAlgo
QGoAlgorithmWidgetm_AlgoWidget
 

Detailed Description

class to be the interface between the shape algo for meshes, contours and set of contours and GoFigure

Definition at line 53 of file QGoShapeAlgo.h.

Constructor & Destructor Documentation

QGoShapeAlgo::QGoShapeAlgo ( std::vector< vtkPoints * > *  iSeeds,
QWidget *  iParent = 0 
)

Definition at line 37 of file QGoShapeAlgo.cxx.

QGoShapeAlgo::~QGoShapeAlgo ( )

Definition at line 45 of file QGoShapeAlgo.cxx.

Member Function Documentation

virtual std::vector<vtkPolyData*> QGoShapeAlgo::ApplyAlgo ( GoImageProcessor iImages,
std::string  iChannel,
bool  iIsInvertedOn = false 
)
pure virtual

return the vtkpolydata created by the algorithm

Implements QGoSemiAutoSegmentationAlgo.

Implemented in QGoMeshShapeAlgo, and QGoSetOfContoursShapeAlgo.

void QGoShapeAlgo::DeleteParameters ( )
protectedvirtual

delete the different parameters

Implements QGoSemiAutoSegmentationAlgo.

Definition at line 52 of file QGoShapeAlgo.cxx.

void QGoShapeAlgo::SetAlgoWidget ( QWidget *  iParent = 0)
protectedvirtual

construct the algowidget with the different parameters

Reimplemented from QGoSemiAutoSegmentationAlgo.

Definition at line 63 of file QGoShapeAlgo.cxx.

Member Data Documentation

QGoAlgoParameter<std::string>* QGoShapeAlgo::m_Shape
protected

Definition at line 66 of file QGoShapeAlgo.h.


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