Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkConnectomicsRenderingEdgeFilteringProperty.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 NO_FILTER 0
21 #define SHORTEST_PATH_FILTER 1
22 #define THRESHOLDING_FILTER 2
23 
25 {
28 }
29 
30 
32 {
33  AddRenderingFilter();
34  if ( IsValidEnumerationValue( value ) )
35  {
36  SetValue( value ) ;
37  }
38  else
39  {
40  SetValue( NO_FILTER );
41  }
42 }
43 
45 {
46  AddRenderingFilter();
47  if ( IsValidEnumerationValue( value ) )
48  {
49  SetValue( value );
50  }
51  else
52  {
53  SetValue( NO_FILTER );
54  }
55 }
56 
57 
58 
60 {
62  //AddEnum( connectomicsRenderingEdgeShortestPathFilter, SHORTEST_PATH_FILTER );
64 }
65 
66 
67 bool mitk::ConnectomicsRenderingEdgeFilteringProperty::AddEnum( const std::string& name, const IdType& id )
68 {
69  return Superclass::AddEnum( name, id );
70 }
virtual bool SetValue(const std::string &name)
const std::string connectomicsRenderingEdgeNoFilter
Do not filter edges.
const std::string connectomicsRenderingEdgeThresholdFilter
Show only edges above a certain parameter threshold.
This file defines the rendering properties available for connectomics networks in MITK...
virtual bool AddEnum(const std::string &name, const IdType &id) override