CustusX  22.04-rc5
An IGT application
cxtestSphereSyntheticVolume.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 CXTESTSPHERESYNTETICVOLUME_H
12 #define CXTESTSPHERESYNTETICVOLUME_H
13 
14 #include "cxtestutilities_export.h"
15 #include "cxSyntheticVolume.h"
16 
17 namespace cxtest {
18 
26 class CXTESTUTILITIES_EXPORT SphereSyntheticVolume : public cx::cxSyntheticVolume
27 {
28 public:
30  void setSphere(const cx::Vector3D& center, double radius);
31 
32  virtual unsigned char evaluate(const cx::Vector3D& p) const;
33  virtual void printInfo() const;
34 
35 private:
36  double mRadius;
37  cx::Vector3D mCenter;
38 
39 };
40 
41 }
42 
43 #endif // CXTESTSPHERESYNTETICVOLUME_H
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42