cctw
0.2.1
|
#include <cctwvector3d.h>
Public Member Functions | |
CctwVector3D (T x, T y, T z) | |
template<typename T2 > | |
CctwVector3D (const CctwVector3D< T2 > &v) | |
CctwVector3D () | |
T | x () const |
T | y () const |
T | 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 |
T | length () const |
T | lengthSquared () const |
T | 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 | |
T | m_Vector [3] |
Definition at line 9 of file cctwvector3d.h.
CctwVector3D< T >::CctwVector3D | ( | T | x, |
T | y, | ||
T | z | ||
) |
Definition at line 5 of file cctwvector3d.cpp.
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().
CctwVector3D< T >::CctwVector3D | ( | ) |
|
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().
|
static |
Referenced by CctwIntVector3DProperty::registerMetaTypes().
|
static |
Definition at line 279 of file cctwvector3d.cpp.
References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().
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().
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().
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().
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().
|
static |
Definition at line 293 of file cctwvector3d.cpp.
References CctwVector3D< T >::crossProduct().
void CctwVector3D< T >::normalize | ( | ) |
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().
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().
|
inline |
Definition at line 24 of file cctwvector3d.h.
|
inline |
Definition at line 25 of file cctwvector3d.h.
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().
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().
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().
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().
CctwVector3D< T > CctwVector3D< T >::operator+= | ( | const CctwVector3D< T > & | vec | ) |
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().
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().
CctwVector3D< T > CctwVector3D< T >::operator-= | ( | const CctwVector3D< T > & | vec | ) |
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().
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().
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().
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().
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().
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().
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().
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().
QString CctwVector3D< T >::toString | ( | ) |
Definition at line 327 of file cctwvector3d.cpp.
References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().
Referenced by CctwComparer::compareDatasetsApproximately(), CctwChunkedData::openInputFile(), CctwChunkedData::openOutputFile(), CctwDataChunk::resetChunkStart(), CctwChunkedData::setChunkSize(), CctwChunkedData::setDimensions(), CctwTransformer::simpleTransform(), and CctwApplication::testing().
T CctwVector3D< T >::volume | ( | ) | const |
Definition at line 245 of file cctwvector3d.cpp.
References CctwVector3D< T >::x(), CctwVector3D< T >::y(), and CctwVector3D< T >::z().
Referenced by CctwDataChunk::allocateBuffer(), CctwChunkedData::allocateChunks(), CctwDataChunk::allocateData(), CctwDataChunk::allocateWeights(), CctwApplication::calculateDependencies(), Cctwtcl_Input_Cmd(), Cctwtcl_Transform_Cmd(), CctwTransformer::checkTransform(), CctwChunkedData::chunkIndexFromNumber(), CctwImporter::createOutputFile(), CctwDataChunk::deallocateData(), CctwDataChunk::deallocateWeights(), CctwApplication::inputChunkCount(), CctwDataChunk::mergeChunk(), CctwDataChunk::normalizeChunk(), CctwChunkedData::openOutputFile(), CctwApplication::outputChunkCount(), CctwChunkedData::readChunk(), CctwqtMainWindow::reportDependencies(), CctwApplication::reportDependencies(), CctwApplication::reportInputChunkCounts(), CctwApplication::reportInputDependencies(), CctwApplication::reportOutputChunkCounts(), CctwApplication::reportOutputDependencies(), CctwApplication::runMerge(), CctwTransformer::runTransformChunkNumber(), CctwTransformer::saveDependencies(), and CctwTransformer::simpleTransform().
|
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().
|
inline |
Definition at line 20 of file cctwvector3d.h.
|
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().
|
inline |
Definition at line 21 of file cctwvector3d.h.
|
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().
|
inline |
Definition at line 22 of file cctwvector3d.h.
|
protected |
Definition at line 67 of file cctwvector3d.h.
Referenced by CctwVector3D< int >::operator()(), CctwVector3D< T >::operator+=(), CctwVector3D< T >::operator-=(), CctwVector3D< int >::x(), CctwVector3D< int >::y(), and CctwVector3D< int >::z().