Vector-tensor class used to perform translations and rotations in 3D space. More...
Public Member Functions | |
vectorTensorTransform (const vectorTensorTransform &)=default | |
Copy construct. More... | |
vectorTensorTransform & | operator= (const vectorTensorTransform &)=default |
Copy assignment. More... | |
vectorTensorTransform () | |
Default construct - no translation, identity rotation. More... | |
vectorTensorTransform (const vector &t, const tensor &R, bool hasR=true) | |
vectorTensorTransform (const vector &t) | |
vectorTensorTransform (const tensor &R) | |
vectorTensorTransform (Istream &) | |
Construct from Istream. More... | |
const vector & | t () const |
const tensor & | R () const |
bool | hasR () const |
vector & | t () |
tensor & | R () |
vector | transformPosition (const vector &v) const |
Transform the given position. More... | |
pointField | transformPosition (const pointField &pts) const |
Transform the given pointField. More... | |
vector | invTransformPosition (const vector &v) const |
Inverse transform the given position. More... | |
pointField | invTransformPosition (const pointField &pts) const |
Inverse transform the given pointField. More... | |
template<class Type > | |
tmp< Field< Type > > | transform (const Field< Type > &) const |
Transform the given field. More... | |
void | operator&= (const vectorTensorTransform &) |
void | operator= (const vector &) |
Assign translation. More... | |
void | operator+= (const vector &) |
void | operator-= (const vector &) |
void | operator= (const tensor &) |
void | operator&= (const tensor &) |
template<> | |
Foam::tmp< Foam::Field< bool > > | transform (const Field< bool > &fld) const |
template<> | |
Foam::tmp< Foam::Field< Foam::label > > | transform (const Field< label > &fld) const |
template<> | |
Foam::tmp< Foam::Field< Foam::scalar > > | transform (const Field< scalar > &fld) const |
template<> | |
tmp< Field< bool > > | transform (const Field< bool > &) const |
Template specialisations. More... | |
template<> | |
tmp< Field< label > > | transform (const Field< label > &) const |
template<> | |
tmp< Field< scalar > > | transform (const Field< scalar > &) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | transform (const Field< Type > &fld) const |
Static Public Attributes | |
static const char *const | typeName |
static const vectorTensorTransform | zero |
static const vectorTensorTransform | I |
Friends | |
Istream & | operator>> (Istream &is, vectorTensorTransform &) |
Ostream & | operator<< (Ostream &os, const vectorTensorTransform &) |
Vector-tensor class used to perform translations and rotations in 3D space.
Definition at line 63 of file vectorTensorTransform.H.
|
default |
Copy construct.
|
inline |
Default construct - no translation, identity rotation.
Definition at line 30 of file vectorTensorTransformI.H.
|
inline |
Construct given a translation vector, rotation tensor and hasR bool
Definition at line 39 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure translation vectorTensorTransform given a translation vector
Definition at line 51 of file vectorTensorTransformI.H.
|
inlineexplicit |
Construct a pure rotation vectorTensorTransform given a rotation tensor
Definition at line 59 of file vectorTensorTransformI.H.
|
explicit |
Construct from Istream.
Definition at line 55 of file vectorTensorTransform.C.
|
default |
Copy assignment.
|
inline |
Definition at line 69 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), Foam::operator&(), and Foam::operator==().
|
inline |
Definition at line 75 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), Foam::operator&(), mapDistribute::transform::operator()(), transformOp< PrimitivePatchType, Type, TrackingData >::operator()(), and Foam::operator==().
|
inline |
Definition at line 81 of file vectorTensorTransformI.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), globalIndexAndTransform::globalIndexAndTransform(), and Foam::operator&().
|
inline |
Definition at line 87 of file vectorTensorTransformI.H.
|
inline |
Definition at line 93 of file vectorTensorTransformI.H.
|
inline |
Transform the given position.
Definition at line 105 of file vectorTensorTransformI.H.
References R.
Referenced by mapDistribute::transformPosition::operator()().
|
inline |
Transform the given pointField.
Definition at line 121 of file vectorTensorTransformI.H.
References R.
|
inline |
Inverse transform the given position.
Definition at line 140 of file vectorTensorTransformI.H.
Referenced by mapDistribute::transformPosition::operator()().
|
inline |
Inverse transform the given pointField.
Definition at line 156 of file vectorTensorTransformI.H.
References R.
|
inline |
Definition at line 177 of file vectorTensorTransformI.H.
References Foam::tr().
|
inline |
Assign translation.
Definition at line 190 of file vectorTensorTransformI.H.
|
inline |
Definition at line 196 of file vectorTensorTransformI.H.
|
inline |
Definition at line 202 of file vectorTensorTransformI.H.
|
inline |
Definition at line 208 of file vectorTensorTransformI.H.
References R.
|
inline |
Definition at line 216 of file vectorTensorTransformI.H.
References R.
Foam::tmp<Foam::Field<bool> > transform | ( | const Field< bool > & | fld | ) | const |
Definition at line 75 of file vectorTensorTransform.C.
References fld.
Foam::tmp<Foam::Field<Foam::label> > transform | ( | const Field< label > & | fld | ) | const |
Definition at line 83 of file vectorTensorTransform.C.
References fld.
Foam::tmp<Foam::Field<Foam::scalar> > transform | ( | const Field< scalar > & | fld | ) | const |
Definition at line 91 of file vectorTensorTransform.C.
References fld.
Foam::tmp<Foam::Field<Type> > transform | ( | const Field< Type > & | fld | ) | const |
Definition at line 32 of file vectorTensorTransformTemplates.C.
|
friend |
|
friend |
|
static |
Definition at line 83 of file vectorTensorTransform.H.
|
static |
Definition at line 85 of file vectorTensorTransform.H.
|
static |
Definition at line 87 of file vectorTensorTransform.H.