Fraxinus  18.10
An IGT application
cxPlaneTypeCollection.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 #ifndef CXPLANETYPECOLLECTION_H
12 #define CXPLANETYPECOLLECTION_H
13 
14 #include "cxResourceExport.h"
15 
16 #include "cxDefinitions.h"
17 #include <vector>
18 #include <QStringList>
19 
20 namespace cx
21 {
22 
29 class cxResource_EXPORT PlaneTypeCollection
30 {
31 public:
32 
33  explicit PlaneTypeCollection(std::vector<PLANE_TYPE> planes);
34  PlaneTypeCollection(PLANE_TYPE a=ptCOUNT, PLANE_TYPE b=ptCOUNT, PLANE_TYPE c=ptCOUNT);
36 
37  void add(PLANE_TYPE plane);
38  std::vector<PLANE_TYPE> get() const;
39  QString toString() const;
40 
41 private:
42  std::vector<PLANE_TYPE> mPlanes;
43 };
44 
45 
46 
47 } // namespace cx
48 
49 #endif // CXPLANETYPECOLLECTION_H
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:755
Eigen::Vector2d fromString(const QString &text)
Definition: cxVector3D.cpp:106
Namespace for all CustusX production code.