CustusX  22.04-rc5
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);
55  GraphicalAxes3DPtr mAxes;
56 };
57 
58 } // namespace cx
59 
60 #endif /*CXAXESREP_H_*/
boost::shared_ptr< class ViewportListener > ViewportListenerPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class View > ViewPtr
boost::shared_ptr< class GraphicalAxes3D > GraphicalAxes3DPtr
boost::shared_ptr< class AxesRep > AxesRepPtr
GraphicalAxes3DPtr mAxes
Definition: cxAxesRep.h:55
Default implementation of Rep.
Definition: cxRepImpl.h:42
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42
RealScalar length() const
virtual QString getType() const
Definition: cxAxesRep.h:43
Representation for one 3D coordinate axis triplet.
Definition: cxAxesRep.h:36
Namespace for all CustusX production code.