Fraxinus  18.10
An IGT application
cxDilationFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CX_DILATION_FILTER_H
13 #define CX_DILATION_FILTER_H
14 
15 #include "cxFilterImpl.h"
16 
17 namespace cx {
18 class cxResourceFilter_EXPORT DilationFilter : public FilterImpl
19 {
20  Q_OBJECT
21 
22 public:
24  virtual ~DilationFilter() {}
25 
26  virtual QString getType() const;
27  virtual QString getName() const;
28  virtual QString getHelp() const;
29 
30  bool preProcess();
31  virtual bool execute();
32  virtual bool postProcess();
33 
34  // extensions:
35  DoublePropertyPtr getDilationRadiusOption(QDomElement root);
36  ColorPropertyPtr getColorOption(QDomElement root);
37  BoolPropertyPtr getGenerateSurfaceOption(QDomElement root);
38 
39 protected:
40  virtual void createOptions();
41  virtual void createInputTypes();
42  virtual void createOutputTypes();
43 
44 private:
45  DoublePropertyPtr mDilationRadiusOption;
46  vtkImageDataPtr mRawResult;
47  vtkPolyDataPtr mRawContour;
48 };
49 typedef boost::shared_ptr<class DilationFilter> DilationFilterPtr;
50 
51 } // namespace cx
52 
53 #endif
boost::shared_ptr< class ColorProperty > ColorPropertyPtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
boost::shared_ptr< class DilationFilter > DilationFilterPtr
boost::shared_ptr< class BoolProperty > BoolPropertyPtr
vtkSmartPointer< class vtkImageData > vtkImageDataPtr
Namespace for all CustusX production code.