Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxBoundingBoxWidget.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 CXBOUNDINGBOXWIDGET_H_
13 #define CXBOUNDINGBOXWIDGET_H_
14 
15 #include "cxResourceWidgetsExport.h"
16 
17 #include <QWidget>
18 #include <vector>
19 #include "cxForwardDeclarations.h"
20 #include "cxBoundingBox3D.h"
21 
22 namespace cx
23 {
24 class SliderRangeGroupWidget;
25 
26 
34 class cxResourceWidgets_EXPORT BoundingBoxWidget: public QWidget
35 {
36 Q_OBJECT
37 public:
38  BoundingBoxWidget(QWidget* parent=NULL, QStringList inCaptions = QStringList());
39  void setValue(const DoubleBoundingBox3D& value, const DoubleBoundingBox3D& range);
40  DoubleBoundingBox3D getValue() const;
41  void showDim(int dim, bool visible);
42 
43 signals:
44  void changed();
45 private:
46  std::vector<SliderRangeGroupWidget*> mRange;
47 };
48 
49 }
50 
51 #endif /* CXBOUNDINGBOXWIDGET_H_ */
Widget displays/edits a BoundingBox3D.
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
Namespace for all CustusX production code.