Fraxinus  18.10
An IGT application
cxRegionOfInterestMetricRep.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 CXREGIONOFINTERESTMETRICREP_H
13 #define CXREGIONOFINTERESTMETRICREP_H
14 
15 #include "cxResourceVisualizationExport.h"
16 
17 #include "cxDataMetricRep.h"
18 #include "cxGraphicalPrimitives.h"
20 #include "vtkForwardDeclarations.h"
21 
22 #include "vtkTextActor.h"
23 typedef vtkSmartPointer<vtkTextActor> vtkTextActorPtr;
24 
25 namespace cx
26 {
27 
28 typedef boost::shared_ptr<class RegionOfInterestMetricRep> RegionOfInterestMetricRepPtr;
29 typedef boost::shared_ptr<class GraphicalBox> GraphicalBoxPtr;
30 
37 class cxResourceVisualization_EXPORT RegionOfInterestMetricRep: public DataMetricRep
38 {
39 Q_OBJECT
40 public:
41  static RegionOfInterestMetricRepPtr New(const QString& uid="");
43 
44  virtual QString getType() const { return "RegionOfInterestMetricRep"; }
45 
46 protected:
47  virtual void clear();
48  virtual void onModifiedStartRender();
49 
50 private:
52  RegionOfInterestMetricPtr getRegionOfInterestMetric();
53 
54  GraphicalBoxPtr mGraphicalBox;
55 };
56 
57 }
58 
59 #endif // CXREGIONOFINTERESTMETRICREP_H
Base class for all Data Metric reps.
Rep for visualizing a RegionOfInterestMetric.
boost::shared_ptr< GraphicalBox > GraphicalBoxPtr
boost::shared_ptr< class RegionOfInterestMetricRep > RegionOfInterestMetricRepPtr
boost::shared_ptr< class RegionOfInterestMetric > RegionOfInterestMetricPtr
virtual ~RegionOfInterestMetricRep()
constructor
vtkSmartPointer< vtkTextActor > vtkTextActorPtr
Namespace for all CustusX production code.