Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsRenderingEdgeThresholdParameterProperty.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 EDGE_THRESHOLD_WEIGHT 0
21 #define EDGE_THRESHOLD_CENTRALITY 1
22 
24 {
27 }
28 
29 
31 {
32  AddRenderingEdgeThresholdParameters();
33  if ( IsValidEnumerationValue( value ) )
34  {
35  SetValue( value ) ;
36  }
37  else
38  {
39  SetValue( EDGE_THRESHOLD_WEIGHT );
40  }
41 }
42 
44 {
45  AddRenderingEdgeThresholdParameters();
46  if ( IsValidEnumerationValue( value ) )
47  {
48  SetValue( value );
49  }
50  else
51  {
52  SetValue( EDGE_THRESHOLD_WEIGHT );
53  }
54 }
55 
56 
57 
59 {
62 }
63 
64 
66 {
67  return Superclass::AddEnum( name, id );
68 }
virtual bool SetValue(const std::string &name)
This file defines the rendering properties available for connectomics networks in MITK...
const std::string connectomicsRenderingEdgeParameterWeight
Using the weight as parameter.
const std::string connectomicsRenderingEdgeParameterCentrality
Using the edge centrality as parameter.