CustusX  18.04-rc1
An IGT application
cxViewLinkingViewContainerItem.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 CXVIEWLINKINGVIEWCONTAINERITEM_H
13 #define CXVIEWLINKINGVIEWCONTAINERITEM_H
14 
15 #include "cxView.h"
16 #include "cxViewWidget.h"
17 #include <QPointer>
18 #include "cxBoundingBox3D.h"
19 #include "cxViewRepCollection.h"
20 #include "cxViewContainerItem.h"
21 
22 namespace cx
23 {
24 
31 {
32 public:
33  static ViewRepCollectionPtr create(ViewItem* base, vtkRenderWindowPtr renderWindow);
36  virtual QSize size() const;
37  virtual void setZoomFactor(double factor);
38  virtual double getZoomFactor() const;
39  virtual Transform3D get_vpMs() const;
40  virtual DoubleBoundingBox3D getViewport() const;
41  virtual DoubleBoundingBox3D getViewport_s() const;
42 
43 private:
44  QPointer<ViewItem> mBase;
45 };
46 
47 } /* namespace cx */
48 
49 #endif // CXVIEWLINKINGVIEWCONTAINERITEM_H
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
ViewLinkingViewContainerItem(ViewItem *base, vtkRenderWindowPtr renderWindow)
virtual DoubleBoundingBox3D getViewport() const
static ViewRepCollectionPtr create(ViewItem *base, vtkRenderWindowPtr renderWindow)
boost::shared_ptr< class ViewRepCollection > ViewRepCollectionPtr
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.
virtual DoubleBoundingBox3D getViewport_s() const
Namespace for all CustusX production code.