Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/CoordinateSystem3D.cpp @ 760:1181e1ad98ec
progressive loading working
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 22 May 2019 18:34:06 +0200 |
parents | f7c236894c1a |
children | 32eaf4929b08 |
comparison
equal
deleted
inserted
replaced
759:774681b2c77c | 760:1181e1ad98ec |
---|---|
141 SetupCanonical(); | 141 SetupCanonical(); |
142 } | 142 } |
143 } | 143 } |
144 | 144 |
145 | 145 |
146 void CoordinateSystem3D::SetOrigin(const Vector& origin) | |
147 { | |
148 if (origin.size() != 3) | |
149 { | |
150 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | |
151 } | |
152 else | |
153 { | |
154 origin_ = origin; | |
155 } | |
156 } | |
157 | |
158 | |
146 Vector CoordinateSystem3D::MapSliceToWorldCoordinates(double x, | 159 Vector CoordinateSystem3D::MapSliceToWorldCoordinates(double x, |
147 double y) const | 160 double y) const |
148 { | 161 { |
149 return origin_ + x * axisX_ + y * axisY_; | 162 return origin_ + x * axisX_ + y * axisY_; |
150 } | 163 } |