NorMIT-nav  22.09
An IGT application
cxAxesRep.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 CXAXESREP_H_
14 #define CXAXESREP_H_
15 
16 #include "cxResourceVisualizationExport.h"
17 
18 #include <vector>
19 #include "cxRepImpl.h"
20 #include "cxTransform3D.h"
21 #include "vtkForwardDeclarations.h"
22 
23 namespace cx
24 {
25 typedef boost::shared_ptr<class AxesRep> AxesRepPtr;
26 typedef boost::shared_ptr<class GraphicalAxes3D> GraphicalAxes3DPtr;
27 typedef boost::shared_ptr<class ViewportListener> ViewportListenerPtr;
28 
36 class cxResourceVisualization_EXPORT AxesRep: public RepImpl
37 {
38 public:
39  virtual ~AxesRep();
40 
41  static AxesRepPtr New(const QString& uid="");
42 
43  virtual QString getType() const { return "AxesRep"; }
44  void setTransform(Transform3D rMt);
45  void setFontSize(double size);
46  void setAxisLength(double length);
47  void setVisible(bool on);
48  void setShowAxesLabels(bool on);
49  void setCaption(const QString& caption, const Vector3D& color);
50 
51 protected:
52  AxesRep();
53  virtual void addRepActorsToViewRenderer(ViewPtr view);
54  virtual void removeRepActorsFromViewRenderer(ViewPtr view);
56 };
57 
58 } // namespace cx
59 
60 #endif /*CXAXESREP_H_*/
cxRepImpl.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::AxesRep
Representation for one 3D coordinate axis triplet.
Definition: cxAxesRep.h:36
cx::ViewportListenerPtr
boost::shared_ptr< class ViewportListener > ViewportListenerPtr
Definition: cxForwardDeclarations.h:170
length
RealScalar length() const
Definition: cxMatrixBaseEigenAddons.h:35
cx::Transform3D
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Definition: cxLandmarkPatientRegistrationWidget.h:33
cx::AxesRep::getType
virtual QString getType() const
Definition: cxAxesRep.h:43
vtkForwardDeclarations.h
cx::ViewPtr
boost::shared_ptr< class View > ViewPtr
Definition: cxForwardDeclarations.h:110
cx::RepImpl
Default implementation of Rep.
Definition: cxRepImpl.h:42
cx::AxesRepPtr
boost::shared_ptr< class AxesRep > AxesRepPtr
Definition: cxForwardDeclarations.h:63
cx::AxesRep::mAxes
GraphicalAxes3DPtr mAxes
Definition: cxAxesRep.h:55
cx::GraphicalAxes3DPtr
boost::shared_ptr< class GraphicalAxes3D > GraphicalAxes3DPtr
Definition: cxGraphicalAxes3D.h:24
cxTransform3D.h
cx::Vector3D
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42