Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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 "vtkMRMLExport.h"
31
33{
34public:
37
38 //--------------------------------------------------------------------------
39 // MRMLNode methods
40 //--------------------------------------------------------------------------
41
43
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
46 // Get node XML tag name (like Volume, Markups)
47 const char* GetNodeTagName() override { return "MarkupsPlaneDisplay"; };
48
50 void ReadXMLAttributes(const char** atts) override;
51
53 void WriteXML(ostream& of, int indent) override;
54
58
59 enum
60 {
63 };
64
66 enum
67 {
72
77
79 };
80
82
83 vtkSetMacro(NormalVisibility, bool);
84 vtkGetMacro(NormalVisibility, bool);
85 vtkBooleanMacro(NormalVisibility, bool);
87
89
90 vtkSetMacro(NormalOpacity, double);
91 vtkGetMacro(NormalOpacity, double);
93
94protected:
95 bool NormalVisibility{ true };
96 double NormalOpacity{ 1.0 };
97
102};
103#endif
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Markups)
void operator=(const vtkMRMLMarkupsPlaneDisplayNode &)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
vtkMRMLCopyContentMacro(vtkMRMLMarkupsPlaneDisplayNode)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
~vtkMRMLMarkupsPlaneDisplayNode() override
void PrintSelf(ostream &os, vtkIndent indent) override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
vtkMRMLMarkupsPlaneDisplayNode(const vtkMRMLMarkupsPlaneDisplayNode &)
static vtkMRMLMarkupsPlaneDisplayNode * New()