Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsRenderingNodeColorParameterProperty.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
19 
20 #define NODE_COLOR_CONSTANT 0
21 #define NODE_COLOR_DEGREE 1
22 #define NODE_COLOR_BETWEENNESS 2
23 #define NODE_COLOR_CLUSTERING 3
24 #define NODE_COLOR_SHORTEST_PATH 4
25 
27 {
30 }
31 
32 
34 {
35  AddRenderingNodeColorParameters();
36  if ( IsValidEnumerationValue( value ) )
37  {
38  SetValue( value ) ;
39  }
40  else
41  {
42  SetValue( NODE_COLOR_CONSTANT );
43  }
44 }
45 
47 {
48  AddRenderingNodeColorParameters();
49  if ( IsValidEnumerationValue( value ) )
50  {
51  SetValue( value );
52  }
53  else
54  {
55  SetValue( NODE_COLOR_CONSTANT );
56  }
57 }
58 
60 {
66 }
67 
69 {
70  return Superclass::AddEnum( name, id );
71 }
virtual bool SetValue(const std::string &name)
const std::string connectomicsRenderingNodeParameterBetweenness
Using the node betweenness as parameter.
virtual bool AddEnum(const std::string &name, const IdType &id) override
const std::string connectomicsRenderingNodeParameterClustering
Using the node clustering coefficient as parameter.
This file defines the rendering properties available for connectomics networks in MITK...
const std::string connectomicsRenderingNodeParameterConstant
Constant.
const std::string connectomicsRenderingNodeParameterDegree
Using the node degree as parameter.
const std::string connectomicsRenderingNodeParameterColoringShortestPath
Color nodes by shortest path length to a chosen node.