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:
[legend]
Collaboration diagram for QGoFilterShape:
[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
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.
 ~QGoFilterShape ()
 Destructor.
- 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.
int getChannel ()
 Get the channel to be segmented.
vtkSmartPointer< vtkImageData > getInput ()
QString getName ()
 Get Name of the filter in the combo box.
vtkImageData * getOutput ()
vtkPoints * getPoints ()
double getRadius ()
 Get the radius of the area to be segmented.
int getSampling ()
QWidgetgetWidget ()
 Get the widget associated to the filter.
 QGoFilterSemiAutoBase (QObject *iParent=NULL)
 Constructor.
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.
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.
virtual ~QGoFilterSemiAutoBase ()
 Destructor.
- 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

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 ()
- 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)
- Public Attributes inherited from QGoFilterSemiAutoBase
int m_Dimension
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
- Properties inherited from QObject
 objectName

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: