NorMIT-nav  2023.01.05-dev+develop.0da12
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
cx::RegionOfInterestMetricRep::getType
virtual QString getType() const
Definition: cxRegionOfInterestMetricRep.h:44
cx::RegionOfInterestMetricRep::~RegionOfInterestMetricRep
virtual ~RegionOfInterestMetricRep()
constructor
Definition: cxRegionOfInterestMetricRep.h:42
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxGraphicalPrimitives.h
cx::GraphicalBoxPtr
boost::shared_ptr< GraphicalBox > GraphicalBoxPtr
Definition: cxGraphicalBox.h:102
cx::RegionOfInterestMetricRep
Rep for visualizing a RegionOfInterestMetric.
Definition: cxRegionOfInterestMetricRep.h:37
cxRegionOfInterestMetric.h
cx::RegionOfInterestMetricRepPtr
boost::shared_ptr< class RegionOfInterestMetricRep > RegionOfInterestMetricRepPtr
Definition: cxRegionOfInterestMetricRep.h:28
vtkForwardDeclarations.h
vtkTextActorPtr
vtkSmartPointer< vtkTextActor > vtkTextActorPtr
Definition: cxRegionOfInterestMetricRep.h:23
cx::RegionOfInterestMetricPtr
boost::shared_ptr< class RegionOfInterestMetric > RegionOfInterestMetricPtr
Definition: cxRegionOfInterestMetric.h:58
cx::DataMetricRep
Base class for all Data Metric reps.
Definition: cxDataMetricRep.h:39
cxDataMetricRep.h