comparison Framework/Toolbox/OrientedBoundingBox.h @ 735:c3bbb130abc4

removing dependencies in ImageBuffer3D
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 May 2019 16:15:06 +0200
parents b70e9be013e4
children
comparison
equal deleted inserted replaced
734:be3671662eec 735:c3bbb130abc4
19 **/ 19 **/
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "CoordinateSystem3D.h"
24 #include "Extent2D.h" 25 #include "Extent2D.h"
25 #include "LinearAlgebra.h" 26 #include "LinearAlgebra.h"
26 #include "../Volumes/ImageBuffer3D.h" 27 #include "VolumeImageGeometry.h"
27 28
28 namespace OrthancStone 29 namespace OrthancStone
29 { 30 {
30 class OrientedBoundingBox : public boost::noncopyable 31 class OrientedBoundingBox : public boost::noncopyable
31 { 32 {
37 double hu_; // half width 38 double hu_; // half width
38 double hv_; // half height 39 double hv_; // half height
39 double hw_; // half depth 40 double hw_; // half depth
40 41
41 public: 42 public:
42 OrientedBoundingBox(const ImageBuffer3D& image); 43 OrientedBoundingBox(const VolumeImageGeometry& geometry);
43 44
44 const Vector& GetCenter() const 45 const Vector& GetCenter() const
45 { 46 {
46 return c_; 47 return c_;
47 } 48 }