Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVtkShaderProgram.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _MITKVTKSHADERPROGRAM_H_
18 #define _MITKVTKSHADERPROGRAM_H_
19 
20 #include <mitkIShaderRepository.h>
21 
22 #include <vtkShaderProgram2.h>
23 #include <vtkSmartPointer.h>
24 
25 namespace mitk
26 {
31  {
32  public:
34 
35 
39 
43  virtual ~VtkShaderProgram();
44 
45  virtual void Activate() override;
46  virtual void Deactivate() override;
47 
48  void SetVtkShaderProgram(vtkSmartPointer<vtkShaderProgram2> p);
49  vtkSmartPointer<vtkShaderProgram2> GetVtkShaderProgram() const;
50  itk::TimeStamp &GetShaderTimestampUpdate();
51 
52  private:
53  vtkSmartPointer<vtkShaderProgram2> m_VtkShaderProgram;
54  itk::TimeStamp m_ShaderTimestampUpdate;
55  };
56 
57 } // end of namespace mitk
58 #endif
mitkClassMacro(VtkShaderProgram, IShaderRepository::ShaderProgram) static Pointer New()
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Activate() override
virtual void Deactivate() override
itk::TimeStamp & GetShaderTimestampUpdate()
void SetVtkShaderProgram(vtkSmartPointer< vtkShaderProgram2 > p)
vtkSmartPointer< vtkShaderProgram2 > GetVtkShaderProgram() const