Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLMarkupsPlaneDisplayNode.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 Kyle Sunderland, PerkLab, Queen's University
16  and was supported through CANARIE's Research Software Program, Cancer
17  Care Ontario, OpenAnatomy, and Brigham and Women's Hospital through NIH grant R01MH112748.
18 
19 ==============================================================================*/
20 // .NAME vtkMRMLMarkupsPlaneDisplayNode - MRML node to represent display properties for markups Plane
21 // .SECTION Description
22 // Adjusts default display parameters for Plane such as fill opacity.
23 //
24 
25 #ifndef __vtkMRMLMarkupsPlaneDisplayNode_h
26 #define __vtkMRMLMarkupsPlaneDisplayNode_h
27 
28 // Markups MRML includes
30 #include "vtkSlicerMarkupsModuleMRMLExport.h"
31 
33 class VTK_SLICER_MARKUPS_MODULE_MRML_EXPORT vtkMRMLMarkupsPlaneDisplayNode : public vtkMRMLMarkupsDisplayNode
34 {
35 public:
38 
39  //--------------------------------------------------------------------------
40  // MRMLNode methods
41  //--------------------------------------------------------------------------
42 
43  vtkMRMLNode* CreateNodeInstance() override;
44 
45  // Get node XML tag name (like Volume, Markups)
46  const char* GetNodeTagName() override { return "MarkupsPlaneDisplay"; };
47 
51 
52  enum
53  {
55  ComponentPlane_Last
56  };
57 
59  enum
60  {
65 
70 
71  HandlePlane_Last
72  };
73 
75  vtkSetMacro(NormalVisibility, bool);
77  vtkGetMacro(NormalVisibility, bool);
78  vtkBooleanMacro(NormalVisibility, bool);
80 
82  vtkSetMacro(NormalOpacity, double);
84  vtkGetMacro(NormalOpacity, double);
86 
87 protected:
88 
89  bool NormalVisibility{ true };
90  double NormalOpacity{ 1.0 };
91 
96 };
97 #endif
void operator=(const vtkMRMLMarkupsDisplayNode &)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Markups)
#define vtkMRMLCopyContentDefaultMacro(thisClassName)
Definition: vtkMRMLNode.h:155
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
static vtkMRMLMarkupsDisplayNode * New()