Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsRenderingNodeThresholdParameterProperty.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_THRESHOLD_DEGREE 0
21 #define NODE_THRESHOLD_BETWEENNESS 1
22 #define NODE_THRESHOLD_CLUSTERING 2
23 
25 {
28 }
29 
30 
32 {
33  AddRenderingNodeThresholdParameters();
34  if ( IsValidEnumerationValue( value ) )
35  {
36  SetValue( value ) ;
37  }
38  else
39  {
40  SetValue( NODE_THRESHOLD_DEGREE );
41  }
42 }
43 
45 {
46  AddRenderingNodeThresholdParameters();
47  if ( IsValidEnumerationValue( value ) )
48  {
49  SetValue( value );
50  }
51  else
52  {
53  SetValue( NODE_THRESHOLD_DEGREE );
54  }
55 }
56 
57 
58 
60 {
64 }
65 
66 
68 {
69  return Superclass::AddEnum( name, id );
70 }
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 connectomicsRenderingNodeParameterDegree
Using the node degree as parameter.