Fraxinus  18.10
An IGT application
cxSharedContextCreatedCallback.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXSHAREDCONTEXTCREATEDCALLBACK_H
13 #define CXSHAREDCONTEXTCREATEDCALLBACK_H
14 
15 #include "cxResourceVisualizationExport.h"
16 
17 #include <vtkSmartPointer.h>
18 #include <vtkCommand.h>
19 #include "cxViewService.h"
20 #include "cxForwardDeclarations.h"
21 
22 namespace cx
23 {
24 typedef vtkSmartPointer<class SharedContextCreatedCallback> SharedContextCreatedCallbackPtr;
25 
26 class cxResourceVisualization_EXPORT SharedContextCreatedCallback : public vtkCommand
27 {
28 
29 public:
30  static SharedContextCreatedCallback *New();
32  void setRenderWindowFactory(RenderWindowFactory *factory);
33 
34  virtual void Execute(vtkObject *view, unsigned long eventId, void*cbo);
35 
36 private:
37  RenderWindowFactory *mRenderWindowFactory;
38 
39 };
40 
41 }//cx
42 #endif // CXSHAREDCONTEXTCREATEDCALLBACK_H
Use to create all vtkRenderWindows, and store a single shared render window.
vtkSmartPointer< class SharedContextCreatedCallback > SharedContextCreatedCallbackPtr
Namespace for all CustusX production code.