NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkCoordinateAxesVtkMapper3D.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 niftkCoordinateAxesVtkMapper3D_h
16 #define niftkCoordinateAxesVtkMapper3D_h
17 
18 #include "niftkCoreExports.h"
19 
20 #include <mitkBaseRenderer.h>
21 #include <mitkLocalStorageHandler.h>
22 #include <mitkVtkMapper.h>
23 
25 
26 class vtkAxesActor;
27 
28 namespace niftk
29 {
30 
33 class NIFTKCORE_EXPORT CoordinateAxesVtkMapper3D : public mitk::VtkMapper
34 {
35 public:
36  mitkClassMacro(CoordinateAxesVtkMapper3D, mitk::VtkMapper)
37  itkNewMacro(Self)
38 
39  virtual vtkProp *GetVtkProp(mitk::BaseRenderer *renderer) override;
40  const CoordinateAxesData* GetInput();
41 
43  static void SetDefaultProperties(mitk::DataNode* node, mitk::BaseRenderer* renderer = NULL, bool overwrite = false);
44 
45 protected:
48 
51  class LocalStorage : public mitk::Mapper::BaseLocalStorage
52  {
53  public:
54 
55  vtkAxesActor* m_Actor;
56  itk::TimeStamp m_ShaderTimestampUpdate;
57 
58  LocalStorage();
59  ~LocalStorage();
60  };
61 
62  mitk::LocalStorageHandler<LocalStorage> m_LocalStorage;
63 
64  virtual void GenerateDataForRenderer(mitk::BaseRenderer* renderer) override;
65  virtual void ResetMapper(mitk::BaseRenderer* renderer) override;
66 
67 };
68 
69 }
70 
71 #endif
vtkAxesActor * m_Actor
Definition: niftkCoordinateAxesVtkMapper3D.h:55
Draws a representation of an niftk::CoordinateAxesData.
Definition: niftkCoordinateAxesVtkMapper3D.h:33
itk::TimeStamp m_ShaderTimestampUpdate
Definition: niftkCoordinateAxesVtkMapper3D.h:56
Class to enable the data to represent coordinate axes to be added as a mitk::BaseData to the mitk::Da...
Definition: niftkCoordinateAxesData.h:33
Contains the VTK objects necessary to render the niftk::CoordinateAxesData via niftk::CoordinateAxesV...
Definition: niftkCoordinateAxesVtkMapper3D.h:51
mitk::LocalStorageHandler< LocalStorage > m_LocalStorage
Definition: niftkCoordinateAxesVtkMapper3D.h:62
Definition: niftkExceptionObject.h:21