Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/ParallelSlices.h @ 110:53025eecbc95 wasm
renamed SliceGeometry as CoordinateSystem3D
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Jun 2017 15:50:38 +0200 |
parents | c2dc924f1a63 |
children | e2fe9352f240 |
comparison
equal
deleted
inserted
replaced
109:53bd9277b025 | 110:53025eecbc95 |
---|---|
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "SliceGeometry.h" | 24 #include "CoordinateSystem3D.h" |
25 | 25 |
26 namespace OrthancStone | 26 namespace OrthancStone |
27 { | 27 { |
28 class ParallelSlices : public boost::noncopyable | 28 class ParallelSlices : public boost::noncopyable |
29 { | 29 { |
30 private: | 30 private: |
31 Vector normal_; | 31 Vector normal_; |
32 std::vector<SliceGeometry*> slices_; | 32 std::vector<CoordinateSystem3D*> slices_; |
33 | 33 |
34 ParallelSlices& operator= (const ParallelSlices& other); // Forbidden | 34 ParallelSlices& operator= (const ParallelSlices& other); // Forbidden |
35 | 35 |
36 public: | 36 public: |
37 ParallelSlices(); | 37 ParallelSlices(); |
43 const Vector& GetNormal() const | 43 const Vector& GetNormal() const |
44 { | 44 { |
45 return normal_; | 45 return normal_; |
46 } | 46 } |
47 | 47 |
48 void AddSlice(const SliceGeometry& slice); | 48 void AddSlice(const CoordinateSystem3D& slice); |
49 | 49 |
50 void AddSlice(const Vector& origin, | 50 void AddSlice(const Vector& origin, |
51 const Vector& axisX, | 51 const Vector& axisX, |
52 const Vector& axisY); | 52 const Vector& axisY); |
53 | 53 |
54 size_t GetSliceCount() const | 54 size_t GetSliceCount() const |
55 { | 55 { |
56 return slices_.size(); | 56 return slices_.size(); |
57 } | 57 } |
58 | 58 |
59 const SliceGeometry& GetSlice(size_t index) const; | 59 const CoordinateSystem3D& GetSlice(size_t index) const; |
60 | 60 |
61 bool ComputeClosestSlice(size_t& closestSlice, | 61 bool ComputeClosestSlice(size_t& closestSlice, |
62 double& closestDistance, | 62 double& closestDistance, |
63 const Vector& origin) const; | 63 const Vector& origin) const; |
64 | 64 |