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
mitkConnectomicsRenderingSchemeProperty.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 MITK_SCHEME 0
21 #define VTK_SCHEME 1
22 
24 {
27 }
28 
29 
31 {
32  AddRenderingSchemes();
33  if ( IsValidEnumerationValue( value ) )
34  {
35  SetValue( value ) ;
36  }
37  else
38  {
39  SetValue( MITK_SCHEME );
40  }
41 }
42 
44 {
45  AddRenderingSchemes();
46  if ( IsValidEnumerationValue( value ) )
47  {
48  SetValue( value );
49  }
50  else
51  {
52  SetValue( MITK_SCHEME );
53  }
54 }
55 
56 
57 
59 {
62 }
63 
64 
65 bool mitk::ConnectomicsRenderingSchemeProperty::AddEnum( const std::string& name, const IdType& id )
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 connectomicsRenderingMITKScheme
Slower but with several visualisation options.
const std::string connectomicsRenderingVTKScheme
Much faster but less features.
virtual bool AddEnum(const std::string &name, const IdType &id) override