NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkVLGlobalSettingsDataNode.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 niftkVLGlobalSettingsDataNode_h
16 #define niftkVLGlobalSettingsDataNode_h
17 
18 #include <niftkVLExports.h>
19 #include <niftkVLUtils.h>
20 
21 #include <mitkDataNode.h>
22 #include <mitkBaseData.h>
23 
24 namespace niftk
25 {
26 
27 class NIFTKVL_EXPORT VLDummyData: public mitk::BaseData
28 {
29 public:
30  mitkClassMacro(VLDummyData, BaseData);
32  itkCloneMacro(Self)
33 protected:
34  virtual bool VerifyRequestedRegion(){return false;};
35  virtual bool RequestedRegionIsOutsideOfTheBufferedRegion(){return false;};
37  virtual void SetRequestedRegion( const itk::DataObject * /*data*/){};
38 };
39 
40 class NIFTKVL_EXPORT VLGlobalSettingsDataNode: public mitk::DataNode
41 {
42 public:
43  mitkClassMacro(VLGlobalSettingsDataNode, DataNode);
45  itkCloneMacro(Self)
46 
48  SetName( VLGlobalSettingsName() );
49  // Needs dummy data otherwise it doesn't show up
50  VLDummyData::Pointer data = VLDummyData::New();
51  SetData( data.GetPointer() );
52 
54  }
55 
56  static const char* VLGlobalSettingsName() { return "VL Debug"; }
57 
58 protected:
59 };
60 
61 }
62 
63 #endif
64 
static void initGlobalProps(mitk::DataNode *node)
Definition: niftkVLUtils.cxx:140
static const char * VLGlobalSettingsName()
Definition: niftkVLGlobalSettingsDataNode.h:56
virtual void SetRequestedRegion(const itk::DataObject *)
Definition: niftkVLGlobalSettingsDataNode.h:37
itkFactorylessNewMacro(Self) itkCloneMacro(Self) VLGlobalSettingsDataNode()
Definition: niftkVLGlobalSettingsDataNode.h:44
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
Definition: glew.h:1363
virtual void SetRequestedRegionToLargestPossibleRegion()
Definition: niftkVLGlobalSettingsDataNode.h:36
Definition: niftkVLGlobalSettingsDataNode.h:40
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion()
Definition: niftkVLGlobalSettingsDataNode.h:35
Definition: niftkVLGlobalSettingsDataNode.h:27
itkFactorylessNewMacro(Self) itkCloneMacro(Self) protected
Definition: niftkVLGlobalSettingsDataNode.h:31
Definition: niftkExceptionObject.h:21