Fraxinus  18.10
An IGT application
cxNavigatedVideoImage.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 
13 #ifndef CXNAVIGATEDVIDEOIMAGE_H_
14 #define CXNAVIGATEDVIDEOIMAGE_H_
15 
16 #include "cxResourceExport.h"
17 #include "cxPrecompiledHeader.h"
18 
19 #include "cxImage.h"
20 
21 namespace cx
22 {
23 
35 class cxResource_EXPORT NavigatedVideoImage: public Image
36 {
37  Q_OBJECT;
38 public:
39  NavigatedVideoImage(QString uid, VideoSourcePtr source, SliceProxyPtr sliceProxy, QString name="");
40  virtual Transform3D get_rMd() const;
41  virtual double computeFullViewZoomFactor(DoubleBoundingBox3D viewport) const;
42  virtual void setToolPosition(double, double);
43 private slots:
44  void newFrame();
45 private:
46  SliceProxyPtr mSliceProxy;
47  double mSpacing[3];
48  double mToolPositionX;
49  double mToolPositionY;
50 };
51 
52 } // end namespace cx
53 
54 #endif /*CXNAVIGATEDVIDEOIMAGE_H_*/
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class SliceProxy > SliceProxyPtr
A volumetric data set.
Definition: cxImage.h:45
boost::shared_ptr< class VideoSource > VideoSourcePtr
Image subclass for live updated 2D images tied to a tool.
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
Namespace for all CustusX production code.