NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkNamedLookupTableProperty.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 niftkNamedLookupTableProperty_h
16 #define niftkNamedLookupTableProperty_h
17 
18 #include "niftkCoreExports.h"
19 
20 #include <mitkLookupTableProperty.h>
21 
22 namespace niftk
23 {
24 
30 class NIFTKCORE_EXPORT NamedLookupTableProperty : public mitk::LookupTableProperty
31 {
32 public:
33 
34  mitkClassMacro(NamedLookupTableProperty, mitk::LookupTableProperty)
35  itkNewMacro(NamedLookupTableProperty)
36  mitkNewMacro2Param(NamedLookupTableProperty, const std::string&, const mitk::LookupTable::Pointer)
37  mitkNewMacro3Param(NamedLookupTableProperty, const std::string&, const mitk::LookupTable::Pointer, bool)
38 
39  virtual std::string GetValueAsString() const override;
40 
41  itkSetStringMacro(Name);
42  itkGetStringMacro(Name);
43 
44  itkSetMacro(IsScaled,bool);
45  itkGetConstMacro(IsScaled,bool);
46 
47  itkBooleanMacro(IsScaled);
48 
49 protected:
50 
51  virtual ~NamedLookupTableProperty();
54  NamedLookupTableProperty(const std::string& name, const mitk::LookupTable::Pointer lut);
55  NamedLookupTableProperty(const std::string& name, const mitk::LookupTable::Pointer lut, bool scale);
56 
57 private:
58 
59  NamedLookupTableProperty& operator=(const NamedLookupTableProperty&); // Purposefully not implemented
60  itk::LightObject::Pointer InternalClone() const override;
61 
62  virtual bool IsEqual(const mitk::BaseProperty& property) const override;
63  virtual bool Assign(const mitk::BaseProperty& property) override;
64 
65  std::string m_Name;
66  bool m_IsScaled;
67 };
68 
69 }
70 
71 #endif
GLenum GLenum GLenum GLenum GLenum scale
Definition: glew.h:12017
INT property
Definition: wglew.h:144
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