NorMIT-nav  18.04
An IGT application
cxStreamRep3D.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 CXSTREAMREP3D_H
13 #define CXSTREAMREP3D_H
14 
15 #include "cxVolumetricRep.h"
16 #include "cxForwardDeclarations.h"
17 #include "cxTransform3D.h"
18 
19 namespace cx
20 {
21 typedef boost::shared_ptr<class VideoSourceGraphics> VideoSourceGraphicsPtr;
22 
31 class cxResourceVisualization_EXPORT StreamRep3D : public VolumetricRep
32 {
33  Q_OBJECT
34 public:
35  static StreamRep3DPtr New(SpaceProviderPtr spaceProvider, PatientModelServicePtr patientModelService, const QString &uid="");
36  virtual QString getType() const;
37 
38  void setTrackedStream(TrackedStreamPtr trackedStream);
39  TrackedStreamPtr getTrackedStream();
40 
41 private slots:
42  void newTool(ToolPtr tool);
43  void newVideoSource(VideoSourcePtr videoSource);
44 private:
45  StreamRep3D(SpaceProviderPtr spaceProvider, PatientModelServicePtr patientModelService);
46  void initTransferFunction(ImagePtr image);
47  void setVisualizerType();
48 
49  TrackedStreamPtr mTrackedStream;
50  VideoSourcePtr mVideoSource;
51 
52  PatientModelServicePtr mPatientModelService;
53 };
54 
55 } //cx
56 
57 #endif // CXSTREAMREP3D_H
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
boost::shared_ptr< class TrackedStream > TrackedStreamPtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
boost::shared_ptr< class StreamRep3D > StreamRep3DPtr
Display a volume in 3D.
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class VideoSource > VideoSourcePtr
boost::shared_ptr< class VideoSourceGraphics > VideoSourceGraphicsPtr
Display a 3D stream in 3D.
Definition: cxStreamRep3D.h:31
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr