Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSegmentEditorScissorsEffect.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4  Queen's University, Kingston, ON, Canada. All Rights Reserved.
5 
6  See COPYRIGHT.txt
7  or http://www.slicer.org/copyright/copyright.txt for details.
8 
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14 
15  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
16  and was supported through the Applied Cancer Research Unit program of Cancer Care
17  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
18 
19 ==============================================================================*/
20 
21 #ifndef __qSlicerSegmentEditorScissorsEffect_h
22 #define __qSlicerSegmentEditorScissorsEffect_h
23 
24 // Segmentations Editor Effects includes
25 #include "qSlicerSegmentationsEditorEffectsExport.h"
26 
28 
29 class qSlicerSegmentEditorScissorsEffectPrivate;
30 class vtkPolyData;
31 
33 class Q_SLICER_SEGMENTATIONS_EFFECTS_EXPORT qSlicerSegmentEditorScissorsEffect :
35 {
36 public:
37  Q_OBJECT
38 
39 public:
41  qSlicerSegmentEditorScissorsEffect(QObject* parent = NULL);
43 
44 public:
46  virtual QIcon icon();
47 
49  Q_INVOKABLE virtual const QString helpText()const;
50 
52  virtual void setupOptionsFrame();
53 
55  virtual void setMRMLDefaults();
56 
59 
64  virtual bool processInteractionEvents(vtkRenderWindowInteractor* callerInteractor, unsigned long eid, qMRMLWidget* viewWidget);
65 
67  Q_INVOKABLE virtual void deactivate();
68 
69 public slots:
71  virtual void updateGUIFromMRML();
72 
74  virtual void updateMRMLFromGUI();
75 
76  virtual void setOperation(int operationIndex);
77  virtual void setShape(int shapeIndex);
78  virtual void setSliceCutMode(int sliceCutModeIndex);
79  virtual void onSliceCutDepthChanged(double value);
80 
81 protected:
82  QScopedPointer<qSlicerSegmentEditorScissorsEffectPrivate> d_ptr;
83 
84 private:
85  Q_DECLARE_PRIVATE(qSlicerSegmentEditorScissorsEffect);
86  Q_DISABLE_COPY(qSlicerSegmentEditorScissorsEffect);
87 };
88 
89 #endif
virtual void setupOptionsFrame()
Create options frame widgets, make connections, and add them to the main options frame using...
qSlicerSegmentEditorAbstractLabelEffect Superclass
QScopedPointer< qSlicerSegmentEditorScissorsEffectPrivate > d_ptr
virtual bool processInteractionEvents(vtkRenderWindowInteractor *callerInteractor, unsigned long eid, qMRMLWidget *viewWidget)
virtual Q_INVOKABLE const QString helpText() const
Get help text for effect to be displayed in the help box.
Abstract class for segment editor effects.
virtual void updateMRMLFromGUI()
Update parameter set node from user interface.
virtual Q_INVOKABLE void deactivate()
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
virtual void setMRMLDefaults()
Set default parameters in the parameter MRML node.
virtual QIcon icon()
Get icon for effect to be displayed in segment editor.
virtual qSlicerSegmentEditorAbstractEffect * clone()=0
virtual void updateGUIFromMRML()
Update user interface from parameter set node.