Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLClipModelsNode.h
Go to the documentation of this file.
1/*=auto=========================================================================
2
3 Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4
5 See COPYRIGHT.txt
6 or http://www.slicer.org/copyright/copyright.txt for details.
7
8 Program: 3D Slicer
9 Module: $RCSfile: vtkMRMLClipModelsNode.h,v $
10 Date: $Date: 2006/03/19 17:12:28 $
11 Version: $Revision: 1.6 $
12
13=========================================================================auto=*/
14
15#ifndef __vtkMRMLClipModelsNode_h
16#define __vtkMRMLClipModelsNode_h
17
18#include "vtkMRMLNode.h"
19
26class VTK_MRML_EXPORT vtkMRMLClipModelsNode : public vtkMRMLNode
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
33 //--------------------------------------------------------------------------
35 //--------------------------------------------------------------------------
36
38
41 void ReadXMLAttributes( const char** atts) override;
42
45 void WriteXML(ostream& of, int indent) override;
46
50
53 const char* GetNodeTagName() override {return "ClipModels";}
54
58 vtkGetMacro(ClipType, int);
59 vtkSetMacro(ClipType, int);
60
61 enum
62 {
63 ClipIntersection = 0,
64 ClipUnion = 1
65 };
66
70 vtkGetMacro(RedSliceClipState, int);
71 vtkSetMacro(RedSliceClipState, int);
72
76 vtkGetMacro(YellowSliceClipState, int);
77 vtkSetMacro(YellowSliceClipState, int);
78
82 vtkGetMacro(GreenSliceClipState, int);
83 vtkSetMacro(GreenSliceClipState, int);
84
85 enum
86 {
87 ClipOff = 0,
88 ClipPositiveSpace = 1,
89 ClipNegativeSpace = 2,
90 };
91
101
102 vtkGetMacro(ClippingMethod, ClippingMethodType);
103 vtkSetMacro(ClippingMethod, ClippingMethodType);
104
105 //Convert between enum and string
106 static int GetClippingMethodFromString(const char* name);
108
109protected:
114
116
120
122
123
124};
125
126#endif
MRML node to represent three clipping planes.
static const char * GetClippingMethodAsString(ClippingMethodType id)
~vtkMRMLClipModelsNode() override
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
static int GetClippingMethodFromString(const char *name)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
void PrintSelf(ostream &os, vtkIndent indent) override
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
vtkMRMLClipModelsNode(const vtkMRMLClipModelsNode &)
ClippingMethodType ClippingMethod
void operator=(const vtkMRMLClipModelsNode &)
static vtkMRMLClipModelsNode * New()
vtkMRMLCopyContentMacro(vtkMRMLClipModelsNode)
Abstract Superclass for all specific types of MRML nodes.