Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsRenderingEdgeRadiusParameterProperty.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_RADIUS_CONSTANT 0
21 #define EDGE_RADIUS_WEIGHT 1
22 #define EDGE_RADIUS_CENTRALITY 2
23 
25 {
28 }
29 
30 
32 {
33  AddRenderingEdgeRadiusParameters();
34  if ( IsValidEnumerationValue( value ) )
35  {
36  SetValue( value ) ;
37  }
38  else
39  {
40  SetValue( EDGE_RADIUS_CONSTANT );
41  }
42 }
43 
45 {
46  AddRenderingEdgeRadiusParameters();
47  if ( IsValidEnumerationValue( value ) )
48  {
49  SetValue( value );
50  }
51  else
52  {
53  SetValue( EDGE_RADIUS_CONSTANT );
54  }
55 }
56 
57 
58 
60 {
64 }
65 
66 
68 {
69  return Superclass::AddEnum( name, id );
70 }
virtual bool SetValue(const std::string &name)
virtual bool AddEnum(const std::string &name, const IdType &id) override
const std::string connectomicsRenderingEdgeParameterConstant
Constant.
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.