NorMIT-nav  22.09
An IGT application
cxGeometricRep2D.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 CXGEOMETRICREP2D_H_
14 #define CXGEOMETRICREP2D_H_
15 
16 #include "cxResourceVisualizationExport.h"
17 
18 #include "vtkForwardDeclarations.h"
19 #include "cxRepImpl.h"
20 #include "cxVector3D.h"
21 
22 namespace cx
23 {
24 typedef boost::shared_ptr<class Mesh> MeshPtr;
25 typedef boost::shared_ptr<class SliceProxy> SliceProxyPtr;
26 
27 typedef boost::shared_ptr<class GeometricRep2D> GeometricRep2DPtr;
28 
39 class cxResourceVisualization_EXPORT GeometricRep2D : public RepImpl
40 {
41  Q_OBJECT
42 public:
43  virtual ~GeometricRep2D();
44 
45  static GeometricRep2DPtr New(const QString& uid="");
46 
47  virtual QString getType() const { return "GeometricRep2D"; }
48  void setMesh(MeshPtr mesh);
49  MeshPtr getMesh();
50  bool hasMesh(MeshPtr mesh) const;
51  void setSliceProxy(SliceProxyPtr slicer);
52 
53 protected:
55  virtual void addRepActorsToViewRenderer(ViewPtr view);
56  virtual void removeRepActorsFromViewRenderer(ViewPtr view);
57 
61 
64 
65 private slots:
66  void meshChangedSlot();
67  void transformChangedSlot();
68 };
69 
70 } // namespace cx
71 
72 #endif /*CXGEOMETRICREP2D_H_*/
cxRepImpl.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::GeometricRep2D::mSlicer
SliceProxyPtr mSlicer
Definition: cxGeometricRep2D.h:63
vtkPolyDataMapperPtr
vtkSmartPointer< class vtkPolyDataMapper > vtkPolyDataMapperPtr
Definition: vtkForwardDeclarations.h:112
cx::SliceProxyPtr
boost::shared_ptr< class SliceProxy > SliceProxyPtr
Definition: cxForwardDeclarations.h:96
cxVector3D.h
cx::GeometricRep2D::mActor
vtkActorPtr mActor
Definition: cxGeometricRep2D.h:60
cx::MeshPtr
boost::shared_ptr< class Mesh > MeshPtr
Definition: cxForwardDeclarations.h:48
cx::GeometricRep2D::mProperty
vtkPropertyPtr mProperty
Definition: cxGeometricRep2D.h:59
vtkForwardDeclarations.h
vtkPropertyPtr
vtkSmartPointer< class vtkProperty > vtkPropertyPtr
Definition: vtkForwardDeclarations.h:120
cx::GeometricRep2D
Display one Mesh in 2D.
Definition: cxGeometricRep2D.h:39
cx::ViewPtr
boost::shared_ptr< class View > ViewPtr
Definition: cxForwardDeclarations.h:110
cx::RepImpl
Default implementation of Rep.
Definition: cxRepImpl.h:42
vtkActorPtr
vtkSmartPointer< class vtkActor > vtkActorPtr
Definition: vtkForwardDeclarations.h:31
cx::GeometricRep2DPtr
boost::shared_ptr< class GeometricRep2D > GeometricRep2DPtr
Definition: cxForwardDeclarations.h:69
cx::GeometricRep2D::mMapper
vtkPolyDataMapperPtr mMapper
Definition: cxGeometricRep2D.h:58
cx::GeometricRep2D::mMesh
MeshPtr mMesh
Definition: cxGeometricRep2D.h:62