Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsRenderingNodeRadiusParameterProperty.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_RADIUS_CONSTANT 0
21 #define NODE_RADIUS_DEGREE 1
22 #define NODE_RADIUS_BETWEENNESS 2
23 #define NODE_RADIUS_CLUSTERING 3
24 
26 {
29 }
30 
31 
33 {
34  AddRenderingNodeRadiusParameters();
35  if ( IsValidEnumerationValue( value ) )
36  {
37  SetValue( value ) ;
38  }
39  else
40  {
41  SetValue( NODE_RADIUS_CONSTANT );
42  }
43 }
44 
46 {
47  AddRenderingNodeRadiusParameters();
48  if ( IsValidEnumerationValue( value ) )
49  {
50  SetValue( value );
51  }
52  else
53  {
54  SetValue( NODE_RADIUS_CONSTANT );
55  }
56 }
57 
58 
59 
61 {
66 }
67 
68 
70 {
71  return Superclass::AddEnum( name, id );
72 }
virtual bool SetValue(const std::string &name)
const std::string connectomicsRenderingNodeParameterBetweenness
Using the node betweenness as parameter.
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.
virtual bool AddEnum(const std::string &name, const IdType &id) override