Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkMRMLGlyphableVolumeDisplayNode.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: vtkMRMLGlyphableVolumeDisplayNode.h,v $
10 Date: $Date: 2006/03/19 17:12:29 $
11 Version: $Revision: 1.3 $
12
13=========================================================================auto=*/
14
15#ifndef __vtkMRMLGlyphableVolumeDisplayNode_h
16#define __vtkMRMLGlyphableVolumeDisplayNode_h
17
18// MRML includes
23
24// STD includes
25#include <vector>
26
31{
32 public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
41 void ReadXMLAttributes( const char** atts) override;
42
45 void WriteXML(ostream& of, int indent) override;
46
49 void Copy(vtkMRMLNode *node) override;
50
53 const char* GetNodeTagName() override {return "GlyphableVolumeDisplay";}
54
57 void UpdateReferenceID(const char *oldID, const char *newID) override;
58
59 //--------------------------------------------------------------------------
61 //--------------------------------------------------------------------------
62
64 enum
65 {
69 };
70
71 vtkGetMacro(VisualizationMode, int);
72 vtkSetMacro(VisualizationMode, int);
73
74 //virtual vtkPolyData* ExecuteGlyphPipeLineAndGetPolyData( vtkImageData* );
75
85
87 void SetSceneReferences() override;
88
92 void UpdateReferences() override;
93
96 void UpdateScene(vtkMRMLScene *scene) override;
97
102 vtkGetStringMacro(GlyphColorNodeID);
103
107
110 void ProcessMRMLEvents ( vtkObject * /*caller*/,
111 unsigned long /*event*/,
112 void * /*callData*/ ) override;
115 void SetDefaultColorMap(/*int isLabelMap*/) override;
116
119 virtual std::vector< vtkMRMLGlyphableVolumeSliceDisplayNode*>
121 {
122 vtkErrorMacro("Shouldn't be calling this");
123 return std::vector< vtkMRMLGlyphableVolumeSliceDisplayNode*>();
124 }
125
126
129 virtual void AddSliceGlyphDisplayNodes( vtkMRMLVolumeNode* vtkNotUsed(node) )
130 {
131 vtkErrorMacro("Shouldn't be calling this");
132 }
133
137 void GetDisplayScalarRange(double range[2]) override
138 {
140 }
141
142protected:
147
149
150 void SetGlyphColorNodeID(const char* id);
151
153
155
156};
157
158#endif
Abstract MRML node to represent color information.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
vtkMRMLGlyphableVolumeDisplayNode(const vtkMRMLGlyphableVolumeDisplayNode &)
virtual void AddSliceGlyphDisplayNodes(vtkMRMLVolumeNode *vtkNotUsed(node))
add slice glyph display nodes if not already present and return it
static vtkMRMLGlyphableVolumeDisplayNode * New()
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
void SetDefaultColorMap() override
set gray colormap
virtual void SetVisualizationMode(int)
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene.
void SetSceneReferences() override
Set Glyph color node ID as reference to the scene.
virtual std::vector< vtkMRMLGlyphableVolumeSliceDisplayNode * > GetSliceGlyphDisplayNodes(vtkMRMLVolumeNode *vtkNotUsed(node))
get associated slice glyph display node or nullptr if not set
void SetGlyphColorNodeID(const char *id)
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data.
vtkMRMLColorNode * GetGlyphColorNode()
Get associated color MRML node.
void PrintSelf(ostream &os, vtkIndent indent) override
void operator=(const vtkMRMLGlyphableVolumeDisplayNode &)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void SetAndObserveGlyphColorNodeID(std::string GlyphColorNodeID)
void SetAndObserveGlyphColorNodeID(const char *GlyphColorNodeID)
String ID of the color MRML node.
MRML node to represent display properties for tractography.
Abstract Superclass for all specific types of MRML nodes.
virtual void GetDisplayScalarRange(double range[2])
A set of MRML Nodes that supports serialization and undo/redo.
MRML node for representing a volume (image stack).