NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkLookupTableProviderServiceImpl_p.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 niftkLookupTableProviderServiceImpl_p_h
16 #define niftkLookupTableProviderServiceImpl_p_h
17 
19 
20 #include <memory>
21 
24 
25 
26 namespace niftk
27 {
28 
29 class LookupTableManager;
30 
36 {
37 
38 public:
39 
42 
46  virtual unsigned int GetNumberOfLookupTables() override;
47 
51  virtual bool CheckName(const QString& name) override;
52 
56  virtual vtkLookupTable* CreateLookupTable(const QString& lookupTableName,
57  float lowestValueOpacity,
58  float highestValueOpacity) override;
59 
63  virtual NamedLookupTableProperty::Pointer CreateLookupTableProperty(const QString& lookupTableName,
64  float lowestValueOpacity,
65  float highestValueOpacity) override;
66 
70  virtual LabeledLookupTableProperty::Pointer CreateLookupTableProperty(const QString& lookupTableName) override;
71 
75  virtual void AddNewLookupTableContainer(const LookupTableContainer* container) override;
76 
80  virtual void ReplaceLookupTableContainer(const LookupTableContainer* container,
81  const QString& lookupTableName) override;
82 
86  virtual bool GetIsScaled(const QString& lookupTableName) override;
87 
91  virtual std::vector<QString> GetTableNames() override;
92 
93 
97  LabeledLookupTableProperty::LabelListType GetLabels(const QString& lookupTableName);
98 
99 private:
100 
101  LookupTableManager* GetManager();
102  std::auto_ptr<LookupTableManager> m_Manager;
103 
104 };
105 
106 }
107 
108 #endif
Service to provide lookup tables.
Definition: niftkLookupTableProviderService.h:38
virtual NamedLookupTableProperty::Pointer CreateLookupTableProperty(const QString &lookupTableName, float lowestValueOpacity, float highestValueOpacity) override
Definition: niftkLookupTableProviderServiceImpl.cxx:139
virtual ~LookupTableProviderServiceImpl()
Definition: niftkLookupTableProviderServiceImpl.cxx:50
Class to manage access to LookupTableContainers.
Definition: niftkLookupTableManager.h:43
virtual std::vector< QString > GetTableNames() override
Definition: niftkLookupTableProviderServiceImpl.cxx:70
std::vector< LabelType > LabelListType
Definition: niftkLabeledLookupTableProperty.h:37
virtual unsigned int GetNumberOfLookupTables() override
Definition: niftkLookupTableProviderServiceImpl.cxx:56
Service implementation of LookupTableProviderService.
Definition: niftkLookupTableProviderServiceImpl_p.h:35
Class to contain a vtkLookupTable and to store meta-data attributes like display name, which order to display it in in GUI, etc.
Definition: niftkLookupTableContainer.h:34
virtual vtkLookupTable * CreateLookupTable(const QString &lookupTableName, float lowestValueOpacity, float highestValueOpacity) override
Definition: niftkLookupTableProviderServiceImpl.cxx:105
virtual void ReplaceLookupTableContainer(const LookupTableContainer *container, const QString &lookupTableName) override
Definition: niftkLookupTableProviderServiceImpl.cxx:189
GLuint const GLchar * name
Definition: glew.h:1798
LookupTableProviderServiceImpl()
Definition: niftkLookupTableProviderServiceImpl.cxx:32
virtual bool GetIsScaled(const QString &lookupTableName) override
Definition: niftkLookupTableProviderServiceImpl.cxx:77
virtual void AddNewLookupTableContainer(const LookupTableContainer *container) override
Definition: niftkLookupTableProviderServiceImpl.cxx:175
virtual bool CheckName(const QString &name) override
Definition: niftkLookupTableProviderServiceImpl.cxx:63
Definition: niftkExceptionObject.h:21
LabeledLookupTableProperty::LabelListType GetLabels(const QString &lookupTableName)
Definition: niftkLookupTableProviderServiceImpl.cxx:91