Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsRenderingNodeFilteringProperty.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 THRESHOLDING_FILTER 1
22 
24 {
27 }
28 
29 
31 {
32  AddRenderingFilter();
33  if ( IsValidEnumerationValue( value ) )
34  {
35  SetValue( value ) ;
36  }
37  else
38  {
39  SetValue( NO_FILTER );
40  }
41 }
42 
44 {
45  AddRenderingFilter();
46  if ( IsValidEnumerationValue( value ) )
47  {
48  SetValue( value );
49  }
50  else
51  {
52  SetValue( NO_FILTER );
53  }
54 }
55 
56 
57 
59 {
62 }
63 
64 
65 bool mitk::ConnectomicsRenderingNodeFilteringProperty::AddEnum( const std::string& name, const IdType& id )
66 {
67  return Superclass::AddEnum( name, id );
68 }
const std::string connectomicsRenderingNodeThresholdingFilter
Only show nodes above a certain parameter threshold.
virtual bool SetValue(const std::string &name)
const std::string connectomicsRenderingNodeNoFilter
Do not filter nodes.
virtual bool AddEnum(const std::string &name, const IdType &id) override
This file defines the rendering properties available for connectomics networks in MITK...