Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkFreeSurferParcellationTranslator.h
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 
17 #ifndef mitkFreeSurferParcellationTranslator_h
18 #define mitkFreeSurferParcellationTranslator_h
19 
20 // MITK
21 #include <MitkConnectomicsExports.h>
22 #include <itkObject.h>
23 #include <mitkDataNode.h>
24 #include <mitkLookupTable.h>
25 #include <mitkTransferFunction.h>
26 // VTK
27 #include <vtkSmartPointer.h>
28 
29 using namespace mitk;
30 using namespace std;
31 
32 namespace mitk
33 {
41  class MITKCONNECTOMICS_EXPORT FreeSurferParcellationTranslator : public itk::Object
42  {
43  /*########### Constructors, Typedefs and Enumerations ###########*/
44  public:
45  typedef map<string, string> NameTable;
48  protected:
50  ~FreeSurferParcellationTranslator();
51 
52 
53  /*########### Methods ###########*/
54  public:
59  virtual void AssignLookupTable( DataNode::Pointer node ) const;
64  virtual void AssignTransferFunction( DataNode::Pointer node ) const;
70  virtual const string GetLabel( const string & name ) const;
76  virtual int GetLabelAsNumber( const string & name ) const;
81  virtual LookupTable::Pointer GetLookupTable() const;
87  virtual const string GetName( const string & label ) const;
93  virtual const string GetName( int label ) const;
98  virtual TransferFunction::Pointer GetTransferFunction() const;
99  private:
100  static LookupTable::Pointer CreateLookupTable();
101  static TransferFunction::Pointer CreateTransferFunction();
102  static NameTable CreateNameTable();
103 
104 
105  /*########### Static Members ###########*/
106  private:
107  static LookupTable::Pointer m_LookupTable;
108  static TransferFunction::Pointer m_TransferFunction;
109  static const NameTable m_NameTable;
110  };
111 }
112 #endif // mitkFreeSurferParcellationTranslator_h
STL namespace.
The TransferFunction class A wrapper class for VTK scalar opacity, gradient opacity, and color transfer functions.Holds a copy of each of the three standard VTK transfer functions (scalar opacity, gradient opacity, color) and provides an interface for manipulating their control points. Each original function can be retrieved by a Get() method.
DataCollection - Class to facilitate loading/accessing structured data.
The mitkFreeSurferParcellationTranslator class.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
static std::string GetName(std::string fileName, std::string suffix)
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...