Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkSlicerClosedCurveWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright (c) ProxSim ltd., Kwun Tong, Hong Kong. All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Unless required by applicable law or agreed to in writing, software
9  distributed under the License is distributed on an "AS IS" BASIS,
10  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11  See the License for the specific language governing permissions and
12  limitations under the License.
13 
14  This file was originally developed by Davide Punzo, punzodavide@hotmail.it,
15  and development was supported by ProxSim ltd.
16 
17 =========================================================================*/
18 
59 #ifndef vtkSlicerClosedCurveWidget_h
60 #define vtkSlicerClosedCurveWidget_h
61 
62 #include "vtkSlicerMarkupsModuleVTKWidgetsExport.h"
63 #include "vtkSlicerMarkupsWidget.h"
64 
65 class vtkPolyData;
66 class vtkIdList;
67 
68 class VTK_SLICER_MARKUPS_MODULE_VTKWIDGETS_EXPORT vtkSlicerClosedCurveWidget : public vtkSlicerMarkupsWidget
69 {
70 public:
72  static vtkSlicerClosedCurveWidget *New();
73 
76 
78  void CreateDefaultRepresentation(vtkMRMLMarkupsDisplayNode* markupsDisplayNode, vtkMRMLAbstractViewNode* viewNode, vtkRenderer* renderer) override;
79 
80 protected:
82  ~vtkSlicerClosedCurveWidget() override;
83 
84  // Callback interface to capture evets when
85  // placing the widget.
86  static void AddPointOnCurveAction(vtkAbstractWidget*);
87 
88 private:
90  void operator=(const vtkSlicerClosedCurveWidget&) = delete;
91 };
92 
93 #endif
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
create a curve with a set of N points
Process interaction events to update state of markup widget nodes.
virtual void CreateDefaultRepresentation(vtkMRMLMarkupsDisplayNode *markupsDisplayNode, vtkMRMLAbstractViewNode *viewNode, vtkRenderer *renderer)=0
Create the default widget representation and initializes the widget and representation.