Home | History | Annotate | Download | only in Geometry

Lines Matching refs:Transform

27   * \class Transform
43 class Transform
79 inline Transform() { }
81 inline Transform(const Transform& other)
86 inline explicit Transform(const TranslationType& t) { *this = t; }
87 inline explicit Transform(const ScalingType& s) { *this = s; }
89 inline explicit Transform(const RotationBase<Derived, Dim>& r) { *this = r; }
91 inline Transform& operator=(const Transform& other)
97 static inline void run(Transform *transform, const MatrixBase<OtherDerived>& other)
99 transform->matrix() = other;
105 static inline void run(Transform *transform, const MatrixBase<OtherDerived>& other)
107 transform->linear() = other;
108 transform->translation().setZero();
109 transform->matrix()(Dim,Dim) = Scalar(1);
110 transform->matrix().template block<1,Dim>(Dim,0).setZero();
116 inline explicit Transform(const MatrixBase<OtherDerived>& other)
123 inline Transform& operator=(const MatrixBase<OtherDerived>& other)
127 inline Transform(const QMatrix& other);
128 inline Transform& operator=(const QMatrix& other);
130 inline Transform(const QTransform& other);
131 inline Transform& operator=(const QTransform& other);
157 /** \returns an expression of the product between the transform \c *this and a matrix expression \a other
170 /** \returns the product expression of a transformation matrix \a a times a transform \a b
174 operator * (const MatrixBase<OtherDerived> &a, const Transform &b)
178 inline const Transform
179 operator * (const Transform& other) const
180 { return Transform(m_matrix * other.matrix()); }
190 inline Transform& scale(const MatrixBase<OtherDerived> &other);
193 inline Transform& prescale(const MatrixBase<OtherDerived> &other);
195 inline Transform& scale(Scalar s);
196 inline Transform& prescale(Scalar s);
199 inline Transform& translate(const MatrixBase<OtherDerived> &other);
202 inline Transform& pretranslate(const MatrixBase<OtherDerived> &other);
205 inline Transform& rotate(const RotationType& rotation);
208 inline Transform& prerotate(const RotationType& rotation);
210 Transform& shear(Scalar sx, Scalar sy);
211 Transform& preshear(Scalar sx, Scalar sy);
213 inline Transform& operator=(const TranslationType& t);
214 inline Transform& operator*=(const TranslationType& t) { return translate(t.vector()); }
215 inline Transform operator*(const TranslationType& t) const;
217 inline Transform& operator=(const ScalingType& t);
218 inline Transform& operator*=(const ScalingType& s) { return scale(s.coeffs()); }
219 inline Transform operator*(const ScalingType& s) const;
220 friend inline Transform operator*(const LinearMatrixType& mat, const Transform& t)
222 Transform res = t;
229 inline Transform& operator=(const RotationBase<Derived,Dim>& r);
231 inline Transform& operator*=(const RotationBase<Derived,Dim>& r) { return rotate(r.toRotationMatrix()); }
233 inline Transform operator*(const RotationBase<Derived,Dim>& r) const;
242 Transform& fromPositionOrientationScale(const MatrixBase<PositionDerived> &position,
258 inline typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim> >::type cast() const
259 { return typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim> >::type(*this); }
263 inline explicit Transform(const Transform<OtherScalarType,Dim>& other)
270 bool isApprox(const Transform& other, typename NumTraits<Scalar>::Real prec = precision<Scalar>()) const
282 typedef Transform<float,2> Transform2f;
284 typedef Transform<float,3> Transform3f;
286 typedef Transform<double,2> Transform2d;
288 typedef Transform<double,3> Transform3d;
300 Transform<Scalar,Dim>::Transform(const QMatrix& other)
310 Transform<Scalar,Dim>& Transform<Scalar,Dim>::operator=(const QMatrix& other)
326 QMatrix Transform<Scalar,Dim>::toQMatrix(void) const
339 Transform<Scalar,Dim>::Transform(const QTransform& other)
349 Transform<Scalar,Dim>& Transform<Scalar,Dim>::operator=(const QTransform& other)
363 QTransform Transform<Scalar,Dim>::toQTransform(void) const
382 Transform<Scalar,Dim>&
383 Transform<Scalar,Dim>::scale(const MatrixBase<OtherDerived> &other)
395 inline Transform<Scalar,Dim>& Transform<Scalar,Dim>::scale(Scalar s)
407 Transform<Scalar,Dim>&
408 Transform<Scalar,Dim>::prescale(const MatrixBase<OtherDerived> &other)
420 inline Transform<Scalar,Dim>& Transform<Scalar,Dim>::prescale(Scalar s)
432 Transform<Scalar,Dim>&
433 Transform<Scalar,Dim>::translate(const MatrixBase<OtherDerived> &other)
446 Transform<Scalar,Dim>&
447 Transform<Scalar,Dim>::pretranslate(const MatrixBase<OtherDerived> &other)
473 Transform<Scalar,Dim>&
474 Transform<Scalar,Dim>::rotate(const RotationType& rotation)
489 Transform<Scalar,Dim>&
490 Transform<Scalar,Dim>::prerotate(const RotationType& rotation)
503 Transform<Scalar,Dim>&
504 Transform<Scalar,Dim>::shear(Scalar sx, Scalar sy)
518 Transform<Scalar,Dim>&
519 Transform<Scalar,Dim>::preshear(Scalar sx, Scalar sy)
531 inline Transform<Scalar,Dim>& Transform<Scalar,Dim>::operator=(const TranslationType& t)
541 inline Transform<Scalar,Dim> Transform<Scalar,Dim>::operator*(const TranslationType& t) const
543 Transform res = *this;
549 inline Transform<Scalar,Dim>& Transform<Scalar,Dim>::operator=(const ScalingType& s)
558 inline Transform<Scalar,Dim> Transform<Scalar,Dim>::operator*(const ScalingType& s) const
560 Transform res = *this;
567 inline Transform<Scalar,Dim>& Transform<Scalar,Dim>::operator=(const RotationBase<Derived,Dim>& r)
578 inline Transform<Scalar,Dim> Transform<Scalar,Dim>::operator*(const RotationBase<Derived,Dim>& r) const
580 Transform res = *this;
597 typename Transform<Scalar,Dim>::LinearMatrixType
598 Transform<Scalar,Dim>::rotation() const
619 void Transform<Scalar,Dim>::computeRotationScaling(RotationMatrixType *rotation, ScalingMatrixType *scaling) const
650 void Transform<Scalar,Dim>::computeScalingRotation(ScalingMatrixType *scaling, RotationMatrixType *rotation) const
673 Transform<Scalar,Dim>&
674 Transform<Scalar,Dim>::fromPositionOrientationScale(const MatrixBase<PositionDerived> &position,
705 inline const typename Transform<Scalar,Dim>::MatrixType
706 Transform<Scalar,Dim>::inverse(TransformTraits traits) const
725 ei_assert("invalid traits value in Transform::inverse()");
742 typedef Transform<typename Other::Scalar,Dim> TransformType;
752 typedef Transform<typename Other::Scalar,Dim> TransformType;
768 typedef Transform<typename Other::Scalar,Dim> TransformType;
779 typedef Transform<Scalar,Dim> TransformType;