forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vtkMRMLProceduralColorStorageNode.h
60 lines (43 loc) · 2.06 KB
/
vtkMRMLProceduralColorStorageNode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkMRMLProceduralColorStorageNode.h,v $
Date: $Date: 2006/03/19 17:12:29 $
Version: $Revision: 1.8 $
=========================================================================auto=*/
#ifndef __vtkMRMLProceduralColorStorageNode_h
#define __vtkMRMLProceduralColorStorageNode_h
#include "vtkMRMLStorageNode.h"
/// \brief MRML node for procedural color node storage
///
/// vtkMRMLProceduralColorStorageNode nodes describe the color storage
/// node that allows to read/write volume data from/to file using XML to describe
/// the points defined in the color transfer function
class VTK_MRML_EXPORT vtkMRMLProceduralColorStorageNode : public vtkMRMLStorageNode
{
public:
static vtkMRMLProceduralColorStorageNode *New();
vtkTypeMacro(vtkMRMLProceduralColorStorageNode,vtkMRMLStorageNode);
void PrintSelf(ostream& os, vtkIndent indent) override;
vtkMRMLNode* CreateNodeInstance() override;
/// Get node XML tag name (like Storage, Model)
const char* GetNodeTagName() override {return "ProceduralColorStorage";}
/// Return true if the node can be read in
bool CanReadInReferenceNode(vtkMRMLNode* refNode) override;
protected:
vtkMRMLProceduralColorStorageNode();
~vtkMRMLProceduralColorStorageNode() override;
vtkMRMLProceduralColorStorageNode(const vtkMRMLProceduralColorStorageNode&);
void operator=(const vtkMRMLProceduralColorStorageNode&);
/// Initialize all the supported read file types
void InitializeSupportedReadFileTypes() override;
/// Initialize all the supported write file types
void InitializeSupportedWriteFileTypes() override;
/// Read data and set it in the referenced node
int ReadDataInternal(vtkMRMLNode *refNode) override;
/// Write data from a referenced node
int WriteDataInternal(vtkMRMLNode *refNode) override;
};
#endif