cctw  0.2.1
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CctwVector3D< T > Class Template Reference

#include <cctwvector3d.h>

Inheritance diagram for CctwVector3D< T >:
Inheritance graph
Collaboration diagram for CctwVector3D< T >:
Collaboration graph

Public Member Functions

 CctwVector3D (T x, T y, T z)
 
template<typename T2 >
 CctwVector3D (const CctwVector3D< T2 > &v)
 
 CctwVector3D ()
 
x () const
 
y () const
 
z () const
 
T & x ()
 
T & y ()
 
T & z ()
 
T & operator() (int i)
 
const T & operator() (int i) const
 
CctwVector3D< T > operator+ (const CctwVector3D< T > &vec) const
 
CctwVector3D< T > operator- (const CctwVector3D< T > &vec) const
 
CctwVector3D< T > operator* (const CctwVector3D< T > &vec) const
 
CctwVector3D< T > operator/ (const CctwVector3D< T > &vec) const
 
CctwVector3D< T > operator+= (const CctwVector3D< T > &vec)
 
CctwVector3D< T > operator-= (const CctwVector3D< T > &vec)
 
CctwVector3D< T > operator+ (const T val) const
 
CctwVector3D< T > operator- (const T val) const
 
CctwVector3D< T > operator* (const T val) const
 
CctwVector3D< T > operator/ (const T val) const
 
bool operator== (const CctwVector3D< T > &vec) const
 
bool operator!= (const CctwVector3D< T > &vec) const
 
bool operator> (const CctwVector3D< T > &vec) const
 
bool operator< (const CctwVector3D< T > &vec) const
 
bool operator>= (const CctwVector3D< T > &vec) const
 
bool operator<= (const CctwVector3D< T > &vec) const
 
length () const
 
lengthSquared () const
 
volume () const
 
CctwVector3D< T > normalized () const
 
void normalize ()
 
CctwVector3D< T > min (const CctwVector3D< T > &vec) const
 
CctwVector3D< T > max (const CctwVector3D< T > &vec) const
 
void setSettingsValue (QSettings *settings, QString name)
 
QString toString ()
 

Static Public Member Functions

static T dotProduct (const CctwVector3D< T > &v1, const CctwVector3D< T > &v2)
 
static CctwVector3D< T > crossProduct (const CctwVector3D< T > &v1, const CctwVector3D< T > &v2)
 
static CctwVector3D< T > normal (const CctwVector3D< T > &v1, const CctwVector3D< T > &v2)
 
static void customSaver (const QVariant &val, QSettings *settings, QString name)
 

Protected Attributes

m_Vector [3]
 

Detailed Description

template<typename T>
class CctwVector3D< T >

Definition at line 9 of file cctwvector3d.h.

Constructor & Destructor Documentation

template<typename T>
CctwVector3D< T >::CctwVector3D ( x,
y,
z 
)

Definition at line 5 of file cctwvector3d.cpp.

6 {
7  m_Vector[0] = x;
8  m_Vector[1] = y;
9  m_Vector[2] = z;
10 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T >
template<typename T2 >
CctwVector3D< T >::CctwVector3D ( const CctwVector3D< T2 > &  v)

Definition at line 22 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

23 {
24  m_Vector[0] = v.x();
25  m_Vector[1] = v.y();
26  m_Vector[2] = v.z();
27 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T >::CctwVector3D ( )

Definition at line 13 of file cctwvector3d.cpp.

Referenced by CctwVector3D< T >::normalized().

14 {
15  m_Vector[0] = 0;
16  m_Vector[1] = 0;
17  m_Vector[2] = 0;
18 }

Member Function Documentation

template<typename T>
CctwVector3D< T > CctwVector3D< T >::crossProduct ( const CctwVector3D< T > &  v1,
const CctwVector3D< T > &  v2 
)
static

Definition at line 285 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

Referenced by CctwVector3D< T >::normal().

286 {
287  return CctwVector3D<T>(v1.y()*v2.z() - v1.z()*v2.y(),
288  v1.z()*v2.x() - v1.x()*v2.z(),
289  v1.x()*v2.y() - v1.y()*v2.x());
290 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
static void CctwVector3D< T >::customSaver ( const QVariant &  val,
QSettings *  settings,
QString  name 
)
static
template<typename T>
T CctwVector3D< T >::dotProduct ( const CctwVector3D< T > &  v1,
const CctwVector3D< T > &  v2 
)
static

Definition at line 279 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

280 {
281  return v1.x()*v2.x() + v1.y()*v2.y() + v1.z()*v2.z();
282 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T >
T CctwVector3D< T >::length ( ) const

Definition at line 233 of file cctwvector3d.cpp.

References CctwVector3D< T >::lengthSquared().

Referenced by CctwVector3D< T >::normalize(), and CctwVector3D< T >::normalized().

234 {
235  return ::sqrt((double) lengthSquared());
236 }
T lengthSquared() const
template<typename T >
T CctwVector3D< T >::lengthSquared ( ) const

Definition at line 239 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

Referenced by CctwVector3D< T >::length().

240 {
241  return x()*x() + y()*y() + z()*z();
242 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::max ( const CctwVector3D< T > &  vec) const

Definition at line 225 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

226 {
227  return CctwVector3D<T>((x()>vec.x()?x():vec.x()),
228  (y()>vec.y()?y():vec.y()),
229  (z()>vec.z()?z():vec.z()));
230 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::min ( const CctwVector3D< T > &  vec) const

Definition at line 217 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

218 {
219  return CctwVector3D<T>((x()<vec.x()?x():vec.x()),
220  (y()<vec.y()?y():vec.y()),
221  (z()<vec.z()?z():vec.z()));
222 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::normal ( const CctwVector3D< T > &  v1,
const CctwVector3D< T > &  v2 
)
static

Definition at line 293 of file cctwvector3d.cpp.

References CctwVector3D< T >::crossProduct().

294 {
295  return crossProduct(v1, v2).normalized();
296 }
static CctwVector3D< T > crossProduct(const CctwVector3D< T > &v1, const CctwVector3D< T > &v2)
template<typename T >
void CctwVector3D< T >::normalize ( )

Definition at line 265 of file cctwvector3d.cpp.

References CctwVector3D< T >::length().

266 {
267  T len = length();
268 
269  if (::fabs((double)len) < 1e-10) {
270  return;
271  } else {
272  m_Vector[0] /= len;
273  m_Vector[1] /= len;
274  m_Vector[2] /= len;
275  }
276 }
T length() const
template<typename T >
CctwVector3D< T > CctwVector3D< T >::normalized ( ) const

Definition at line 251 of file cctwvector3d.cpp.

References CctwVector3D< T >::CctwVector3D(), CctwVector3D< T >::length(), CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

Referenced by CctwCrystalCoordinateTransform::pixel2qlab().

252 {
253  T len = length();
254 
255  if (::fabs((double)len) < 1e-10) {
256  return CctwVector3D<T>(0,0,0);
257  } else {
258  return CctwVector3D(x() / len,
259  y() / len,
260  z() / len);
261  }
262 }
T x() const
Definition: cctwvector3d.h:17
T length() const
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
bool CctwVector3D< T >::operator!= ( const CctwVector3D< T > &  vec) const

Definition at line 131 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

132 {
133  return x()!=vec.x() || y()!=vec.y() || z()!=vec.z();
134 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
T& CctwVector3D< T >::operator() ( int  i)
inline

Definition at line 24 of file cctwvector3d.h.

24 { return m_Vector[i]; }
template<typename T>
const T& CctwVector3D< T >::operator() ( int  i) const
inline

Definition at line 25 of file cctwvector3d.h.

25 { return m_Vector[i]; }
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator* ( const CctwVector3D< T > &  vec) const

Definition at line 51 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

52 {
53  return CctwVector3D<T>(x()*vec.x(), y()*vec.y(), z()*vec.z());
54 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator* ( const T  val) const

Definition at line 105 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

106 {
107  return CctwVector3D<T>(x()*val, y()*val, z()*val);
108 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator+ ( const CctwVector3D< T > &  vec) const

Definition at line 39 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

40 {
41  return CctwVector3D<T>(x()+vec.x(), y()+vec.y(), z()+vec.z());
42 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator+ ( const T  val) const

Definition at line 93 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

94 {
95  return CctwVector3D<T>(x()+val, y()+val, z()+val);
96 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator+= ( const CctwVector3D< T > &  vec)

Definition at line 73 of file cctwvector3d.cpp.

References CctwVector3D< T >::m_Vector.

74 {
75  for (int i=0; i<3; i++) {
76  m_Vector[i] += vec.m_Vector[i];
77  }
78 
79  return *this;
80 }
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator- ( const CctwVector3D< T > &  vec) const

Definition at line 45 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

46 {
47  return CctwVector3D<T>(x()-vec.x(), y()-vec.y(), z()-vec.z());
48 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator- ( const T  val) const

Definition at line 99 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

100 {
101  return CctwVector3D<T>(x()-val, y()-val, z()-val);
102 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator-= ( const CctwVector3D< T > &  vec)

Definition at line 83 of file cctwvector3d.cpp.

References CctwVector3D< T >::m_Vector.

84 {
85  for (int i=0; i<3; i++) {
86  m_Vector[i] -= vec.m_Vector[i];
87  }
88 
89  return *this;
90 }
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator/ ( const CctwVector3D< T > &  vec) const

Definition at line 65 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

66 {
67  return CctwVector3D<T>(x()/vec.x(),
68  y()/vec.y(),
69  z()/vec.z());
70 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
CctwVector3D< T > CctwVector3D< T >::operator/ ( const T  val) const

Definition at line 119 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

120 {
121  return CctwVector3D<T>(x()/val, y()/val, z()/val);
122 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
bool CctwVector3D< T >::operator< ( const CctwVector3D< T > &  vec) const

Definition at line 177 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

178 {
179  if (z() < vec.z()) {
180  return true;
181  } else if (z() > vec.z()) {
182  return false;
183  } else if (y() < vec.y()) {
184  return true;
185  } else if (y() > vec.y()) {
186  return false;
187  } else if (x() < vec.x()) {
188  return true;
189  } else if (x() > vec.x()) {
190  return false;
191  } else {
192  return false;
193  }
194 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
bool CctwVector3D< T >::operator<= ( const CctwVector3D< T > &  vec) const

Definition at line 197 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

198 {
199  if (z() < vec.z()) {
200  return true;
201  } else if (z() > vec.z()) {
202  return false;
203  } else if (y() < vec.y()) {
204  return true;
205  } else if (y() > vec.y()) {
206  return false;
207  } else if (x() < vec.x()) {
208  return true;
209  } else if (x() > vec.x()) {
210  return false;
211  } else {
212  return true;
213  }
214 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
bool CctwVector3D< T >::operator== ( const CctwVector3D< T > &  vec) const

Definition at line 125 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

126 {
127  return x()==vec.x() && y()==vec.y() && z()==vec.z();
128 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
bool CctwVector3D< T >::operator> ( const CctwVector3D< T > &  vec) const

Definition at line 137 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

138 {
139  if (z() > vec.z()) {
140  return true;
141  } else if (z() < vec.z()) {
142  return false;
143  } else if (y() > vec.y()) {
144  return true;
145  } else if (y() < vec.y()) {
146  return false;
147  } else if (x() > vec.x()) {
148  return true;
149  } else if (x() < vec.x()) {
150  return false;
151  } else {
152  return false;
153  }
154 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T>
bool CctwVector3D< T >::operator>= ( const CctwVector3D< T > &  vec) const

Definition at line 157 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

158 {
159  if (z() > vec.z()) {
160  return true;
161  } else if (z() < vec.z()) {
162  return false;
163  } else if (y() > vec.y()) {
164  return true;
165  } else if (y() < vec.y()) {
166  return false;
167  } else if (x() > vec.x()) {
168  return true;
169  } else if (x() < vec.x()) {
170  return false;
171  } else {
172  return true;
173  }
174 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T >
void CctwVector3D< T >::setSettingsValue ( QSettings *  settings,
QString  name 
)

Definition at line 299 of file cctwvector3d.cpp.

References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().

Referenced by CctwVector3D< int >::customSaver(), and CctwVector3D< double >::customSaver().

300 {
301  settings->beginGroup(name);
302 
303  settings->setValue("x", x());
304  settings->setValue("y", y());
305  settings->setValue("z", z());
306 
307  settings->endGroup();
308 }
T x() const
Definition: cctwvector3d.h:17
T z() const
Definition: cctwvector3d.h:19
T y() const
Definition: cctwvector3d.h:18
template<typename T >
QString CctwVector3D< T >::toString ( )
template<typename T >
T CctwVector3D< T >::volume ( ) const
template<typename T>
T CctwVector3D< T >::x ( ) const
inline

Definition at line 17 of file cctwvector3d.h.

Referenced by CctwApplication::calculateChunkDependencies(), CctwDataChunk::calculateChunkSize(), CctwApplication::calculateDependencies(), CctwqtSetupOutputDialog::CctwqtSetupOutputDialog(), CctwVector3D< T >::CctwVector3D(), CctwImporter::checkImportedDataApproximately(), CctwChunkedData::chunkContaining(), CctwChunkedData::chunkIndexFromNumber(), CctwChunkedData::chunkNumberFromIndex(), CctwComparer::compareDatasetsApproximately(), CctwChunkedData::containsChunk(), CctwChunkedData::containsPixel(), CctwqtSetupTransformDialog::copyDialogToParameters(), CctwqtSetupTransformDialog::copyParametersToDialog(), CctwImporter::createOutputFile(), CctwVector3D< T >::crossProduct(), CctwTransformer::dependencies(), CctwVector3D< T >::dotProduct(), CctwCrystalCoordinateTransform::forward(), CctwDoubleVector3DProperty::fromScriptValue(), CctwIntVector3DProperty::fromScriptValue(), CctwCrystalCoordinateTransform::getDetPix(), CctwCrystalCoordinateTransform::getDetPos(), CctwVector3D< T >::lengthSquared(), makeChunk(), CctwVector3D< T >::max(), CctwVector3D< T >::min(), CctwVector3D< T >::normalized(), CctwChunkedData::openOutputFile(), CctwVector3D< T >::operator!=(), CctwVector3D< T >::operator*(), CctwVector3D< T >::operator+(), CctwVector3D< T >::operator-(), CctwVector3D< T >::operator/(), CctwVector3D< T >::operator<(), CctwVector3D< T >::operator<=(), CctwVector3D< T >::operator==(), CctwVector3D< T >::operator>(), CctwVector3D< T >::operator>=(), CctwTransformer::parseSubset(), CctwCrystalCoordinateTransform::pixel2qlab(), CctwDataChunk::pixelOffset(), CctwChunkedData::readChunk(), CctwApplication::reportDependencies(), CctwApplication::reportInputChunkCounts(), CctwApplication::reportInputDependencies(), CctwApplication::reportOutputChunkCounts(), CctwApplication::reportOutputDependencies(), CctwObject::scriptValueLiteral(), CctwChunkedData::setChunks(), CctwqtTransformTester::setDet(), CctwChunkedData::setDims(), CctwqtTransformTester::setGrid(), CctwqtTransformTester::setHKL(), CctwqtTransformTester::setPixels(), CctwqtTransformTester::setQLab(), CctwVector3D< T >::setSettingsValue(), CctwUnitCell::setValue(), CctwTransformer::simpleTransform(), CctwDoubleVector3DProperty::toScriptValue(), CctwIntVector3DProperty::toScriptValue(), CctwDoubleVector3DProperty::toString(), CctwIntVector3DProperty::toString(), CctwVector3D< T >::toString(), CctwTransformer::transform(), CctwTransformer::transformChunkData(), CctwVector3D< T >::volume(), and CctwChunkedData::writeChunk().

17 { return m_Vector[0]; }
template<typename T>
T& CctwVector3D< T >::x ( )
inline

Definition at line 20 of file cctwvector3d.h.

20 { return m_Vector[0]; }
template<typename T>
T CctwVector3D< T >::y ( ) const
inline

Definition at line 18 of file cctwvector3d.h.

Referenced by assignToChunk(), CctwApplication::calculateChunkDependencies(), CctwDataChunk::calculateChunkSize(), CctwApplication::calculateDependencies(), CctwqtSetupOutputDialog::CctwqtSetupOutputDialog(), CctwVector3D< T >::CctwVector3D(), CctwImporter::checkImportedDataApproximately(), CctwChunkedData::chunkContaining(), CctwChunkedData::chunkIndexFromNumber(), CctwChunkedData::chunkNumberFromIndex(), CctwComparer::compareDatasetsApproximately(), CctwChunkedData::containsChunk(), CctwChunkedData::containsPixel(), CctwqtSetupTransformDialog::copyDialogToParameters(), CctwqtSetupTransformDialog::copyParametersToDialog(), CctwImporter::createOutputFile(), CctwVector3D< T >::crossProduct(), CctwTransformer::dependencies(), CctwVector3D< T >::dotProduct(), CctwCrystalCoordinateTransform::forward(), CctwDoubleVector3DProperty::fromScriptValue(), CctwIntVector3DProperty::fromScriptValue(), CctwCrystalCoordinateTransform::getDetPix(), CctwCrystalCoordinateTransform::getDetPos(), CctwVector3D< T >::lengthSquared(), makeChunk(), CctwVector3D< T >::max(), CctwVector3D< T >::min(), CctwVector3D< T >::normalized(), CctwChunkedData::openOutputFile(), CctwVector3D< T >::operator!=(), CctwVector3D< T >::operator*(), CctwVector3D< T >::operator+(), CctwVector3D< T >::operator-(), CctwVector3D< T >::operator/(), CctwVector3D< T >::operator<(), CctwVector3D< T >::operator<=(), CctwVector3D< T >::operator==(), CctwVector3D< T >::operator>(), CctwVector3D< T >::operator>=(), CctwTransformer::parseSubset(), CctwDataChunk::pixelOffset(), CctwChunkedData::readChunk(), CctwApplication::reportDependencies(), CctwApplication::reportInputChunkCounts(), CctwApplication::reportInputDependencies(), CctwApplication::reportOutputChunkCounts(), CctwApplication::reportOutputDependencies(), CctwObject::scriptValueLiteral(), CctwChunkedData::setChunks(), CctwqtTransformTester::setDet(), CctwChunkedData::setDims(), CctwqtTransformTester::setGrid(), CctwqtTransformTester::setHKL(), CctwqtTransformTester::setPixels(), CctwqtTransformTester::setQLab(), CctwVector3D< T >::setSettingsValue(), CctwUnitCell::setValue(), CctwTransformer::simpleTransform(), CctwDoubleVector3DProperty::toScriptValue(), CctwIntVector3DProperty::toScriptValue(), CctwDoubleVector3DProperty::toString(), CctwIntVector3DProperty::toString(), CctwVector3D< T >::toString(), CctwTransformer::transform(), CctwTransformer::transformChunkData(), CctwVector3D< T >::volume(), and CctwChunkedData::writeChunk().

18 { return m_Vector[1]; }
template<typename T>
T& CctwVector3D< T >::y ( )
inline

Definition at line 21 of file cctwvector3d.h.

21 { return m_Vector[1]; }
template<typename T>
T CctwVector3D< T >::z ( ) const
inline

Definition at line 19 of file cctwvector3d.h.

Referenced by assignToChunk(), CctwApplication::calculateChunkDependencies(), CctwDataChunk::calculateChunkSize(), CctwApplication::calculateDependencies(), CctwqtSetupOutputDialog::CctwqtSetupOutputDialog(), CctwVector3D< T >::CctwVector3D(), CctwImporter::checkImportedDataApproximately(), CctwChunkedData::chunkContaining(), CctwChunkedData::chunkNumberFromIndex(), CctwComparer::compareDatasetsApproximately(), CctwChunkedData::containsChunk(), CctwChunkedData::containsPixel(), CctwqtSetupTransformDialog::copyDialogToParameters(), CctwqtSetupTransformDialog::copyParametersToDialog(), CctwImporter::createOutputFile(), CctwVector3D< T >::crossProduct(), CctwTransformer::dependencies(), CctwVector3D< T >::dotProduct(), CctwCrystalCoordinateTransform::forward(), CctwDoubleVector3DProperty::fromScriptValue(), CctwIntVector3DProperty::fromScriptValue(), CctwVector3D< T >::lengthSquared(), makeChunk(), CctwVector3D< T >::max(), CctwVector3D< T >::min(), CctwVector3D< T >::normalized(), CctwChunkedData::openOutputFile(), CctwVector3D< T >::operator!=(), CctwVector3D< T >::operator*(), CctwVector3D< T >::operator+(), CctwVector3D< T >::operator-(), CctwVector3D< T >::operator/(), CctwVector3D< T >::operator<(), CctwVector3D< T >::operator<=(), CctwVector3D< T >::operator==(), CctwVector3D< T >::operator>(), CctwVector3D< T >::operator>=(), CctwTransformer::parseSubset(), CctwDataChunk::pixelOffset(), CctwChunkedData::readChunk(), CctwApplication::reportDependencies(), CctwApplication::reportInputChunkCounts(), CctwApplication::reportInputDependencies(), CctwApplication::reportOutputChunkCounts(), CctwApplication::reportOutputDependencies(), CctwObject::scriptValueLiteral(), CctwChunkedData::setChunks(), CctwqtTransformTester::setDet(), CctwChunkedData::setDims(), CctwqtTransformTester::setGrid(), CctwqtTransformTester::setHKL(), CctwqtTransformTester::setPixels(), CctwqtTransformTester::setQLab(), CctwVector3D< T >::setSettingsValue(), CctwUnitCell::setValue(), CctwTransformer::simpleTransform(), CctwDoubleVector3DProperty::toScriptValue(), CctwIntVector3DProperty::toScriptValue(), CctwDoubleVector3DProperty::toString(), CctwIntVector3DProperty::toString(), CctwVector3D< T >::toString(), CctwTransformer::transform(), CctwTransformer::transformChunkData(), CctwVector3D< T >::volume(), and CctwChunkedData::writeChunk().

19 { return m_Vector[2]; }
template<typename T>
T& CctwVector3D< T >::z ( )
inline

Definition at line 22 of file cctwvector3d.h.

22 { return m_Vector[2]; }

Member Data Documentation

template<typename T>
T CctwVector3D< T >::m_Vector[3]
protected

The documentation for this class was generated from the following files: