Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
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{
32public:
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
79
81 void SetSceneReferences() override;
82
86 void UpdateReferences() override;
87
90 void UpdateScene(vtkMRMLScene* scene) override;
91
96 vtkGetStringMacro(GlyphColorNodeID);
97
101
104 void ProcessMRMLEvents(vtkObject* /*caller*/, unsigned long /*event*/, void* /*callData*/) override;
107 void SetDefaultColorMap(/*int isLabelMap*/) override;
108
111 virtual std::vector<vtkMRMLGlyphableVolumeSliceDisplayNode*> GetSliceGlyphDisplayNodes(vtkMRMLVolumeNode* vtkNotUsed(node))
112 {
113 vtkErrorMacro("Shouldn't be calling this");
114 return std::vector<vtkMRMLGlyphableVolumeSliceDisplayNode*>();
115 }
116
119 virtual void AddSliceGlyphDisplayNodes(vtkMRMLVolumeNode* vtkNotUsed(node)) { vtkErrorMacro("Shouldn't be calling this"); }
120
124 void GetDisplayScalarRange(double range[2]) override { this->Superclass::GetDisplayScalarRange(range); }
125
126protected:
131
133
134 void SetGlyphColorNodeID(const char* id);
135
137
139};
140
141#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).