Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkFiberBundleThreadMonitorMapper3D.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 
18 #ifndef FiberBundleThreadMonitorMapper3D_H_HEADER_INCLUDED
19 #define FiberBundleThreadMonitorMapper3D_H_HEADER_INCLUDED
20 
21 //#include <mitkBaseData.h> //?? necessary
22 #include <MitkFiberTrackingExports.h>
23 #include <mitkVtkMapper.h>
25 
26 #include <vtkSmartPointer.h>
27 #include <vtkPolyDataMapper.h>
28 #include <vtkTextActor.h>
29 
30 
31 
32 class vtkPropAssembly;
33 
34 
35 
36 
37 namespace mitk {
38 
39  //##Documentation
40  //## @brief Mapper for FiberBundle
41  //## @ingroup Mapper
42 
43  class MITKFIBERTRACKING_EXPORT FiberBundleThreadMonitorMapper3D : public VtkMapper
44  {
45  public:
46 
48  itkFactorylessNewMacro(Self)
49  itkCloneMacro(Self)
50 
51  //========== essential implementation for 3D mapper ========
52  const FiberBundleThreadMonitor* GetInput();
53  virtual vtkProp *GetVtkProp(mitk::BaseRenderer *renderer); //looks like depricated.. should be replaced bz GetViewProp()
54  static void SetDefaultProperties(DataNode* node, BaseRenderer* renderer = NULL, bool overwrite = false );
55  virtual void ApplyProperties(mitk::BaseRenderer* renderer);
56  static void SetVtkMapperImmediateModeRendering(vtkMapper *mapper);
57  virtual void GenerateDataForRenderer(mitk::BaseRenderer* renderer);
58  //=========================================================
59 
60  protected:
61 
64 
65  void UpdateVtkObjects(); //??
66 
67 
68  vtkSmartPointer<vtkPolyDataMapper> m_FiberMonitorMapper;
69  vtkSmartPointer<vtkTextActor> m_TextActorClose;
70  vtkSmartPointer<vtkTextActor> m_TextActorOpen;
71  vtkSmartPointer<vtkTextActor> m_TextActorHeading;
72  vtkSmartPointer<vtkTextActor> m_TextActorMask;
73  vtkSmartPointer<vtkTextActor> m_TextActorStatus;
74  vtkSmartPointer<vtkTextActor> m_TextActorStarted;
75  vtkSmartPointer<vtkTextActor> m_TextActorFinished;
76  vtkSmartPointer<vtkTextActor> m_TextActorTerminated;
77  vtkPropAssembly* m_FiberAssembly;
78 
79  private:
80  double m_lastModifiedMonitorNodeTime;
81 
82  };
83 
84 } // end namespace mitk
85 
86 
87 
88 
89 #endif /* FiberBundleMapper3D_H_HEADER_INCLUDED */
90 
vtkSmartPointer< vtkPolyDataMapper > m_FiberMonitorMapper
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Definition: mitkVtkMapper.h:53
Base class of all mappers, Vtk as well as OpenGL mappers.
Definition: mitkMapper.h:54
Base Class for Fiber Bundles;.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66