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

Shape segmentation algorithm implementation. Can generate circles, spheres, squares and cubes. Will generate 2D objects if m_Dimension<2, 3D objects in the other case. More...

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

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

Public Slots

void setShape (int)
 
- Public Slots inherited from QGoFilterSemiAutoBase
void setChannel (int iChannel=0)
 
void setRadius (double iRadius)
 
void setSampling (int iSampling)
 
void UpdateAdvancedMode (bool)
 
void UpdateVisibility (int iFilter)
 

Public Member Functions

virtual vtkPolyData * Apply ()
 
std::vector< vtkPolyData * > ApplyFilter3D (double iRadius, std::vector< vtkPoints * > *iPoints, std::string iShape, GoImageProcessor *iImages, int iChannel)
 return the polydatas corresponding to the new created Shapes More...
 
std::vector< std::vector
< vtkPolyData * > > 
ApplyFilterSetOf2D (double iRadius, std::string iShape, int iSampling, std::vector< vtkPoints * > *iPoints, GoImageProcessor *iImages, int iChannel)
 
virtual void ConnectSignals (int iFilterNumber)
 
 QGoFilterShape (QObject *iParent=NULL, int iDimension=2)
 Constructor. More...
 
 ~QGoFilterShape ()
 Destructor. More...
 
- Public Member Functions inherited from QGoFilterSemiAutoBase
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)
 
vtkImageData * extractOneSlice (vtkImageData *iOriginalImage, double *iOrigin, int iDirection)
 
template<class PixelType , unsigned int VImageDimension>
itk::Image< PixelType,
VImageDimension >::Pointer 
ExtractROI (typename itk::Image< PixelType, VImageDimension >::Pointer, double *iCenter, double iRadius)
 
double * getCenter ()
 Get the center of the area to be segmented. More...
 
int getChannel ()
 Get the channel to be segmented. More...
 
vtkSmartPointer< vtkImageData > getInput ()
 
QString getName ()
 Get Name of the filter in the combo box. More...
 
vtkImageData * getOutput ()
 
vtkPoints * getPoints ()
 
double getRadius ()
 Get the radius of the area to be segmented. More...
 
int getSampling ()
 
QWidget * getWidget ()
 Get the widget associated to the filter. More...
 
 QGoFilterSemiAutoBase (QObject *iParent=NULL)
 Constructor. More...
 
vtkPolyData * ReconstructContour (vtkImageData *iInputImage, const double &iThreshold)
 
vtkPolyData * ReconstructMesh (vtkImageData *iInputImage, const double &iThreshold)
 
vtkPolyData * ReorganizeContour (vtkPolyData *iInputImage=NULL, bool iDecimate=true)
 
void setCenter (double *iCenter)
 
void setName (QString iName)
 Set Name of the filter in the combo box. More...
 
void setOriginalImageMC (std::vector< vtkSmartPointer< vtkImageData > > *iOriginalImage)
 
void setOutput (vtkImageData *iOutput)
 
void setPoints (vtkPoints *iPoints)
 
void setWidget (QWidget *iWidget)
 Set the widget associated to the filter. More...
 
virtual ~QGoFilterSemiAutoBase ()
 Destructor. More...
 

Protected Member Functions

vtkPolyData * GenerateCube (double *iCenter, double iRadius, vtkSmartPointer< vtkImageData > iImage)
 
vtkPolyData * GenerateCylinder (double *iCenter)
 
vtkPolyData * GenerateSphere (double *iCenter, double iRadius, vtkSmartPointer< vtkImageData > iImage)
 

Protected Attributes

int m_Shape
 

Private Member Functions

 Q_DISABLE_COPY (QGoFilterShape)
 

Additional Inherited Members

- Signals inherited from QGoFilterSemiAutoBase
void AddContourForMeshToContours (vtkPolyData *)
 
void ContourCreated (vtkPolyData *)
 
void CreateCorrespondingMesh (int)
 
void ImageProcessed ()
 
void MeshCreated (vtkPolyData *, int timePoint=0)
 
void SegmentationFinished ()
 
void UpdateSeeds ()
 
- Public Attributes inherited from QGoFilterSemiAutoBase
int m_Dimension
 

Detailed Description

Shape segmentation algorithm implementation. Can generate circles, spheres, squares and cubes. Will generate 2D objects if m_Dimension<2, 3D objects in the other case.

Definition at line 51 of file QGoFilterShape.h.

Constructor & Destructor Documentation

QGoFilterShape::QGoFilterShape ( QObject *  iParent = NULL,
int  iDimension = 2 
)
explicit

Constructor.

Definition at line 59 of file QGoFilterShape.cxx.

QGoFilterShape::~QGoFilterShape ( )

Destructor.

Definition at line 87 of file QGoFilterShape.cxx.

Member Function Documentation

vtkPolyData * QGoFilterShape::Apply ( )
virtual

Definition at line 95 of file QGoFilterShape.cxx.

std::vector< vtkPolyData * > QGoFilterShape::ApplyFilter3D ( double  iRadius,
std::vector< vtkPoints * > *  iPoints,
std::string  iShape,
GoImageProcessor iImages,
int  iChannel 
)

return the polydatas corresponding to the new created Shapes

Definition at line 368 of file QGoFilterShape.cxx.

std::vector< std::vector< vtkPolyData * > > QGoFilterShape::ApplyFilterSetOf2D ( double  iRadius,
std::string  iShape,
int  iSampling,
std::vector< vtkPoints * > *  iPoints,
GoImageProcessor iImages,
int  iChannel 
)

Definition at line 422 of file QGoFilterShape.cxx.

void QGoFilterShape::ConnectSignals ( int  iFilterNumber)
virtual

Reimplemented from QGoFilterSemiAutoBase.

Definition at line 203 of file QGoFilterShape.cxx.

vtkPolyData * QGoFilterShape::GenerateCube ( double *  iCenter,
double  iRadius,
vtkSmartPointer< vtkImageData >  iImage 
)
protected

Definition at line 261 of file QGoFilterShape.cxx.

vtkPolyData * QGoFilterShape::GenerateCylinder ( double *  iCenter)
protected

Definition at line 342 of file QGoFilterShape.cxx.

vtkPolyData * QGoFilterShape::GenerateSphere ( double *  iCenter,
double  iRadius,
vtkSmartPointer< vtkImageData >  iImage 
)
protected

Definition at line 225 of file QGoFilterShape.cxx.

QGoFilterShape::Q_DISABLE_COPY ( QGoFilterShape  )
private
void QGoFilterShape::setShape ( int  iShape)
slot

Definition at line 216 of file QGoFilterShape.cxx.

Member Data Documentation

int QGoFilterShape::m_Shape
protected

Definition at line 85 of file QGoFilterShape.h.


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