NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkLabeledLookupTableProperty.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkLabeledLookupTableProperty_h
16 #define niftkLabeledLookupTableProperty_h
17 
18 #include "niftkCoreExports.h"
19 
21 
22 #include <QString>
23 
24 namespace niftk
25 {
26 
33 {
34 public:
35 
36  typedef std::pair<int, QString> LabelType;
37  typedef std::vector<LabelType> LabelListType;
38 
40  itkNewMacro(LabeledLookupTableProperty)
41  mitkNewMacro3Param(LabeledLookupTableProperty,
42  const std::string&,
43  const mitk::LookupTable::Pointer,
44  const LabelListType&)
45  mitkNewMacro4Param(LabeledLookupTableProperty,
46  const std::string&,
47  const mitk::LookupTable::Pointer,
48  const LabelListType&,
49  bool)
50 
52  inline LabelListType GetLabels() const {return m_Labels;}
53 
55  inline void SetLabels(const LabelListType& labels){m_Labels = labels;}
56 
57 protected:
58 
59  virtual ~LabeledLookupTableProperty();
63  const mitk::LookupTable::Pointer lut,
64  const LabelListType& labels);
66  const mitk::LookupTable::Pointer lut,
67  const LabelListType& labels,
68  bool scale);
69 
70 private:
71 
72  LabeledLookupTableProperty& operator=(const LabeledLookupTableProperty&); // Purposefully not implemented
73  itk::LightObject::Pointer InternalClone() const override;
74 
75  virtual bool IsEqual(const mitk::BaseProperty& property) const override;
76  virtual bool Assign(const mitk::BaseProperty& property) override;
77 
78  LabelListType m_Labels;
79 };
80 
81 }
82 
83 #endif
GLenum GLenum GLenum GLenum GLenum scale
Definition: glew.h:12017
Definition: niftkMeshSmoother.cxx:19
Definition: ReceptorMemberCommandTest.cxx:25
std::pair< int, QString > LabelType
Definition: niftkLabeledLookupTableProperty.h:36
std::vector< LabelType > LabelListType
Definition: niftkLabeledLookupTableProperty.h:37
INT property
Definition: wglew.h:144
void SetLabels(const LabelListType &labels)
Definition: niftkLabeledLookupTableProperty.h:55
GLuint const GLchar * name
Definition: glew.h:1798
Provides a property so we can see the lookup table name in the property window.
Definition: niftkNamedLookupTableProperty.h:30
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194
Provides a property so that each value/color has an associated name.
Definition: niftkLabeledLookupTableProperty.h:32