Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkSlicerColorLogic.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=========================================================================auto=*/
9
14
15#ifndef __vtkSlicerColorLogic_h
16#define __vtkSlicerColorLogic_h
17
18// MRMLLogic includes
19#include <vtkMRMLColorLogic.h>
20#include "vtkSlicerColorsModuleLogicExport.h"
21
25
26class VTK_SLICER_COLORS_MODULE_LOGIC_EXPORT vtkSlicerColorLogic : public vtkMRMLColorLogic
27{
28public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35 const char* GetDefaultLabelMapColorNodeID() override;
36
38 const char* GetDefaultEditorColorNodeID() override;
39
41 const char* GetDefaultChartColorNodeID() override;
42
46 std::vector<std::string> FindDefaultColorFiles() override;
47 std::vector<std::string> FindUserColorFiles() override;
48
55
62
69
73
78
84
85protected:
90
92
94 void RegisterNodes() override;
95
96 std::vector<std::string> FindColorFiles(const std::vector<std::string>& directories);
97};
98
99#endif
Class describing how to display a color legend.
Abstract class that contains graphical display properties for displayable nodes.
static vtkMRMLDisplayNode * GetFirstNonColorLegendDisplayNode(vtkMRMLDisplayableNode *displayableNode)
static int GetNumberOfColorLegendDisplayNodes(vtkMRMLDisplayableNode *displayableNode)
std::vector< std::string > FindDefaultColorFiles() override
static vtkMRMLColorLegendDisplayNode * AddDefaultColorLegendDisplayNode(vtkMRMLDisplayableNode *displayableNode)
const char * GetDefaultChartColorNodeID() override
Return a default color node id for the charts.
void RegisterNodes() override
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this...
const char * GetDefaultLabelMapColorNodeID() override
Return a default color node id for a label map.
std::vector< std::string > FindUserColorFiles() override
static vtkMRMLColorLegendDisplayNode * AddDefaultColorLegendDisplayNode(vtkMRMLDisplayNode *displayNode)
void operator=(const vtkSlicerColorLogic &)
vtkSlicerColorLogic(const vtkSlicerColorLogic &)
void PrintSelf(ostream &os, vtkIndent indent) override
std::vector< std::string > FindColorFiles(const std::vector< std::string > &directories)
static vtkMRMLColorLegendDisplayNode * GetNthColorLegendDisplayNode(vtkMRMLDisplayableNode *displayableNode, int n)
const char * GetDefaultEditorColorNodeID() override
Return a default color node id for the editor.
static vtkMRMLColorLegendDisplayNode * GetColorLegendDisplayNode(vtkMRMLDisplayNode *displayNode)
static vtkMRMLColorLegendDisplayNode * GetColorLegendDisplayNode(vtkMRMLDisplayableNode *displayableNode)
static vtkSlicerColorLogic * New()
The Usual vtk class functions.
~vtkSlicerColorLogic() override