Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLdGEMRICProceduralColorNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2006 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: vtkMRMLdGEMRICProceduralColorNode.h,v $
10  Date: $Date: 2006/03/19 17:12:28 $
11  Version: $Revision: 1.0 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLdGEMRICProceduralColorNode_h
16 #define __vtkMRMLdGEMRICProceduralColorNode_h
17 
19 
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
32  //--------------------------------------------------------------------------
34  //--------------------------------------------------------------------------
35 
36  vtkMRMLNode* CreateNodeInstance() override;
37 
40  void ReadXMLAttributes( const char** atts) override;
41 
44  void WriteXML(ostream& of, int indent) override;
45 
48  void Copy(vtkMRMLNode *node) override;
49 
52  const char* GetNodeTagName() override {return "dGEMRICProceduralColor";}
53 
56  void UpdateScene(vtkMRMLScene *scene) override;
57 
61  void SetType(int type) override;
62 
63  void ProcessMRMLEvents ( vtkObject *caller, unsigned long event, void *callData ) override;
64 
66  //enum
67  //{
69  //};
70 
72  enum
73  {
74  DisplayModifiedEvent = 20000
75  };
76 
80  {
82  }
83 
87  enum
88  {
89  dGEMRIC15T = 0,
90  dGEMRIC3T = 1
91  };
92 
94  int GetFirstType() override { return this->dGEMRIC15T; }
95  int GetLastType() override { return this->dGEMRIC3T; }
96 
97  const char *GetTypeAsString() override;
98  void SetTypeTo15T();
99  void SetTypeTo3T();
100 
101 protected:
106 };
107 
108 #endif
int GetFirstType() override
Return the lowest and the highest integers, for use in looping.
void ReadXMLAttributes(const char **atts) override
Set node attributes
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void UpdateScene(vtkMRMLScene *scene) override
static vtkMRMLProceduralColorNode * New()
vtkMRMLStorageNode * CreateDefaultStorageNode() override
Create default storage node or nullptr if does not have one
virtual vtkMRMLStorageNode * CreateDefaultStorageNode()
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
A superclass for other storage nodes.
void PrintSelf(ostream &os, vtkIndent indent) override
MRML node to represent procedurally defined color information.
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
Propagate events generated in mrml.
MRML node to represent procedurally defined color information.
const char * GetTypeAsString() override
return a text string describing the color look up table type
void operator=(const vtkMRMLProceduralColorNode &)
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
virtual void SetType(int type)
Set Type to type, then build colors and set names