NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkDataNodeBoolPropertyFilter.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 niftkDataNodeBoolPropertyFilter_h
16 #define niftkDataNodeBoolPropertyFilter_h
17 
18 #include "niftkCoreExports.h"
19 #include "niftkDataNodeFilter.h"
20 
21 #include <mitkDataStorage.h>
22 
23 namespace niftk
24 {
25 
26 class BaseRenderer;
27 
34 class NIFTKCORE_EXPORT DataNodeBoolPropertyFilter : public DataNodeFilter
35 {
36 
37 public:
38 
40  itkNewMacro(DataNodeBoolPropertyFilter)
41 
42 
43  itkSetMacro(PropertyName, std::string);
44 
46  itkGetMacro(PropertyName, std::string);
47 
53  virtual bool Pass(const mitk::DataNode* node) override;
54 
56  void SetRenderers(std::vector<mitk::BaseRenderer*>& list);
57 
59  void SetDataStorage(mitk::DataStorage::Pointer storage);
60 
61 protected:
62 
64  virtual ~DataNodeBoolPropertyFilter();
65 
66  DataNodeBoolPropertyFilter(const DataNodeBoolPropertyFilter&); // Purposefully not implemented.
67  DataNodeBoolPropertyFilter& operator=(const DataNodeBoolPropertyFilter&); // Purposefully not implemented.
68 
69 private:
70 
71  std::vector<mitk::BaseRenderer*> m_Renderers;
72  mitk::DataStorage::Pointer m_DataStorage;
73  std::string m_PropertyName;
74 
75 };
76 
77 }
78 
79 #endif
A class that tests a list of nodes, and returns true for "pass" and false otherwise.
Definition: niftkDataNodeFilter.h:30
A filter that contains a list of renderers, and returns true if the node has a specific boolean prope...
Definition: niftkDataNodeBoolPropertyFilter.h:34
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194