• Home
  • Raw
  • Download

Lines Matching full:transform

19 template<typename Transform>
24 Dim = Transform::Dim,
25 HDim = Transform::HDim,
26 Mode = Transform::Mode,
67 struct traits<Transform<_Scalar,_Dim,_Mode,_Options> >
88 * \class Transform
108 * this class you have to think a Transform object as its internal
123 * However, unlike a plain matrix, the Transform class provides many features
125 * with any other transformations (Transform,Translation,RotationBase,DiagonalMatrix)
126 * and can be directly used to transform implicit homogeneous vectors. All these
131 * according to the nature of each terms. Likewise, when applying the transform
178 * The concatenation of a Transform object with any kind of other transformation
179 * always returns a Transform object.
187 * it is not possible to directly transform Dim vectors stored in a Dim x Dim matrix.
204 class Transform
248 /** The return type of the product between a diagonal matrix and a transform */
249 typedef Transform<Scalar,Dim,TransformTimeDiagonalMode> TransformTimeDiagonalReturnType;
259 EIGEN_DEVICE_FUNC inline Transform()
265 EIGEN_DEVICE_FUNC inline explicit Transform(const TranslationType& t)
270 EIGEN_DEVICE_FUNC inline explicit Transform(const UniformScaling<Scalar>& s)
276 EIGEN_DEVICE_FUNC inline explicit Transform(const RotationBase<Derived, Dim>& r)
282 typedef internal::transform_take_affine_part<Transform> take_affine_part;
286 EIGEN_DEVICE_FUNC inline explicit Transform(const EigenBase<OtherDerived>& other)
297 EIGEN_DEVICE_FUNC inline Transform& operator=(const EigenBase<OtherDerived>& other)
307 EIGEN_DEVICE_FUNC inline Transform(const Transform<Scalar,Dim,Mode,OtherOptions>& other)
315 EIGEN_DEVICE_FUNC inline Transform(const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
342 typedef typename Transform<Scalar,Dim,OtherMode,OtherOptions>::MatrixType OtherMatrixType;
356 EIGEN_DEVICE_FUNC Transform(const ReturnByValue<OtherDerived>& other)
363 EIGEN_DEVICE_FUNC Transform& operator=(const ReturnByValue<OtherDerived>& other)
370 inline Transform(const QMatrix& other);
371 inline Transform& operator=(const QMatrix& other);
373 inline Transform(const QTransform& other);
374 inline Transform& operator=(const QTransform& other);
408 …/** \returns an expression of the product between the transform \c *this and a matrix expression \…
421 …terpret \a other as a linear or affine transformation, then first convert it to a Transform<> type,
434 …GEN_STRONG_INLINE const typename internal::transform_right_product_impl<Transform, OtherDerived>::…
436 …{ return internal::transform_right_product_impl<Transform, OtherDerived>::run(*this,other.derived(…
438 /** \returns the product expression of a transformation matrix \a a times a transform \a b
447 operator * (const EigenBase<OtherDerived> &a, const Transform &b)
450 /** \returns The product expression of a transform \a a times a diagonal matrix \a b
453 * product results in a Transform of the same type (mode) as the lhs only if the lhs
454 * mode is no isometry. In that case, the returned transform is an affinity.
465 /** \returns The product expression of a diagonal matrix \a a times a transform \a b
468 * product results in a Transform of the same type (mode) as the lhs only if the lhs
469 * mode is no isometry. In that case, the returned transform is an affinity.
473 operator * (const DiagonalBase<DiagonalDerived> &a, const Transform &b)
484 …EIGEN_DEVICE_FUNC inline Transform& operator*=(const EigenBase<OtherDerived>& other) { return *thi…
487 EIGEN_DEVICE_FUNC inline const Transform operator * (const Transform& other) const
489 return internal::transform_transform_product_impl<Transform,Transform>::run(*this,other);
495 …// error: template instantiation resulted in unexpected function type of "Eigen::Transform<doubl…
496 // (const Eigen::Transform<double, 3, 2, 0> &) const"
498 // "Eigen::internal::transform_transform_product_impl<Eigen::Transform<double, 3, 32, 0>,
499 …// Eigen::Transform<double, 3, Mode, Options>, <expression>>::ResultType (const Eigen::Transfo…
503 …typedef internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherO…
511 operator * (const Transform<Scalar,Dim,OtherMode,OtherOptions>& other) const
519 …EIGEN_DEVICE_FUNC inline typename internal::transform_transform_product_impl<Transform,Transform<S…
520 operator * (const Transform<Scalar,Dim,OtherMode,OtherOptions>& other) const
522 …return internal::transform_transform_product_impl<Transform,Transform<Scalar,Dim,OtherMode,OtherOp…
531 * \todo In the future this function should be returning a Transform expression.
533 EIGEN_DEVICE_FUNC static const Transform Identity()
535 return Transform(MatrixType::Identity());
540 inline Transform& scale(const MatrixBase<OtherDerived> &other);
544 inline Transform& prescale(const MatrixBase<OtherDerived> &other);
546 EIGEN_DEVICE_FUNC inline Transform& scale(const Scalar& s);
547 EIGEN_DEVICE_FUNC inline Transform& prescale(const Scalar& s);
551 inline Transform& translate(const MatrixBase<OtherDerived> &other);
555 inline Transform& pretranslate(const MatrixBase<OtherDerived> &other);
559 inline Transform& rotate(const RotationType& rotation);
563 inline Transform& prerotate(const RotationType& rotation);
565 EIGEN_DEVICE_FUNC Transform& shear(const Scalar& sx, const Scalar& sy);
566 EIGEN_DEVICE_FUNC Transform& preshear(const Scalar& sx, const Scalar& sy);
568 EIGEN_DEVICE_FUNC inline Transform& operator=(const TranslationType& t);
571 inline Transform& operator*=(const TranslationType& t) { return translate(t.vector()); }
573 EIGEN_DEVICE_FUNC inline Transform operator*(const TranslationType& t) const;
576 inline Transform& operator=(const UniformScaling<Scalar>& t);
579 inline Transform& operator*=(const UniformScaling<Scalar>& s) { return scale(s.factor()); }
590 …inline Transform& operator*=(const DiagonalMatrix<Scalar,Dim>& s) { linearExt() *= s; return *this…
593 EIGEN_DEVICE_FUNC inline Transform& operator=(const RotationBase<Derived,Dim>& r);
595 …EIGEN_DEVICE_FUNC inline Transform& operator*=(const RotationBase<Derived,Dim>& r) { return rotate…
597 EIGEN_DEVICE_FUNC inline Transform operator*(const RotationBase<Derived,Dim>& r) const;
611 Transform& fromPositionOrientationScale(const MatrixBase<PositionDerived> &position,
615 inline Transform inverse(TransformTraits traits = (TransformTraits)Mode) const;
628 …EIGEN_DEVICE_FUNC inline typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim…
629 …{ return typename internal::cast_return_type<Transform,Transform<NewScalarType,Dim,Mode,Options> >…
633 …EIGEN_DEVICE_FUNC inline explicit Transform(const Transform<OtherScalarType,Dim,Mode,Options>& oth…
643 …EIGEN_DEVICE_FUNC bool isApprox(const Transform& other, const typename NumTraits<Scalar>::Real& pr…
695 typedef Transform<float,2,Isometry> Isometry2f;
697 typedef Transform<float,3,Isometry> Isometry3f;
699 typedef Transform<double,2,Isometry> Isometry2d;
701 typedef Transform<double,3,Isometry> Isometry3d;
704 typedef Transform<float,2,Affine> Affine2f;
706 typedef Transform<float,3,Affine> Affine3f;
708 typedef Transform<double,2,Affine> Affine2d;
710 typedef Transform<double,3,Affine> Affine3d;
713 typedef Transform<float,2,AffineCompact> AffineCompact2f;
715 typedef Transform<float,3,AffineCompact> AffineCompact3f;
717 typedef Transform<double,2,AffineCompact> AffineCompact2d;
719 typedef Transform<double,3,AffineCompact> AffineCompact3d;
722 typedef Transform<float,2,Projective> Projective2f;
724 typedef Transform<float,3,Projective> Projective3f;
726 typedef Transform<double,2,Projective> Projective2d;
728 typedef Transform<double,3,Projective> Projective3d;
740 Transform<Scalar,Dim,Mode,Options>::Transform(const QMatrix& other)
751 Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const QMatrix& ot…
771 QMatrix Transform<Scalar,Dim,Mode,Options>::toQMatrix(void) const
785 Transform<Scalar,Dim,Mode,Options>::Transform(const QTransform& other)
796 Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::operator=(const QTransform&…
815 QTransform Transform<Scalar,Dim,Mode,Options>::toQTransform(void) const
839 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
840 Transform<Scalar,Dim,Mode,Options>::scale(const MatrixBase<OtherDerived> &other)
853 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::sc…
866 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
867 Transform<Scalar,Dim,Mode,Options>::prescale(const MatrixBase<OtherDerived> &other)
880 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::pr…
893 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
894 Transform<Scalar,Dim,Mode,Options>::translate(const MatrixBase<OtherDerived> &other)
907 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
908 Transform<Scalar,Dim,Mode,Options>::pretranslate(const MatrixBase<OtherDerived> &other)
937 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
938 Transform<Scalar,Dim,Mode,Options>::rotate(const RotationType& rotation)
953 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
954 Transform<Scalar,Dim,Mode,Options>::prerotate(const RotationType& rotation)
967 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
968 Transform<Scalar,Dim,Mode,Options>::shear(const Scalar& sx, const Scalar& sy)
983 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
984 Transform<Scalar,Dim,Mode,Options>::preshear(const Scalar& sx, const Scalar& sy)
997 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::op…
1006 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::ope…
1008 Transform res = *this;
1014 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::op…
1024 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options>& Transform<Scalar,Dim,Mode,Options>::op…
1034 EIGEN_DEVICE_FUNC inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::ope…
1036 Transform res = *this;
1078 typename Transform<Scalar,Dim,Mode,Options>::RotationReturnType
1079 Transform<Scalar,Dim,Mode,Options>::rotation() const
1098 EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeRotationScaling(RotationMatrixTyp…
1128 EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeScalingRotation(ScalingMatrixType…
1150 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>&
1151 Transform<Scalar,Dim,Mode,Options>::fromPositionOrientationScale(const MatrixBase<PositionDerived> …
1222 EIGEN_DEVICE_FUNC Transform<Scalar,Dim,Mode,Options>
1223 Transform<Scalar,Dim,Mode,Options>::inverse(TransformTraits hint) const
1225 Transform res;
1228 internal::projective_transform_inverse<Transform>::run(*this, res);
1242 eigen_assert(false && "Invalid transform traits in Transform::Inverse");
1269 struct transform_take_affine_part<Transform<Scalar,Dim,AffineCompact, Options> > {
1270 typedef typename Transform<Scalar,Dim,AffineCompact,Options>::MatrixType MatrixType;
1282 …static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other&…
1284 transform->linear() = other;
1285 transform->translation().setZero();
1286 transform->makeAffine();
1293 …static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other&…
1295 transform->affine() = other;
1296 transform->makeAffine();
1303 …static inline void run(Transform<typename Other::Scalar,Dim,Mode,Options> *transform, const Other&…
1304 { transform->matrix() = other; }
1310 …static inline void run(Transform<typename Other::Scalar,Dim,AffineCompact,Options> *transform, con…
1311 { transform->matrix() = other.template block<Dim,HDim>(0,0); }
1424 typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1426 typedef Transform<typename Other::Scalar,Dim,Projective,Options> ResultType;
1435 typedef Transform<typename Other::Scalar,Dim,AffineCompact,Options> TransformType;
1437 typedef Transform<typename Other::Scalar,Dim,Projective,Options> ResultType;
1451 typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1467 typedef Transform<typename Other::Scalar,Dim,AffineCompact,Options> TransformType;
1483 typedef Transform<typename Other::Scalar,Dim,Mode,Options> TransformType;
1498 *** Specializations of operator* with another Transform ***
1502 struct transform_transform_product_impl<Transform<Scalar,Dim,LhsMode,LhsOptions>,Transform<Scalar,D…
1505 typedef Transform<Scalar,Dim,LhsMode,LhsOptions> Lhs;
1506 typedef Transform<Scalar,Dim,RhsMode,RhsOptions> Rhs;
1507 typedef Transform<Scalar,Dim,ResultMode,LhsOptions> ResultType;
1519 struct transform_transform_product_impl<Transform<Scalar,Dim,LhsMode,LhsOptions>,Transform<Scalar,D…
1521 typedef Transform<Scalar,Dim,LhsMode,LhsOptions> Lhs;
1522 typedef Transform<Scalar,Dim,RhsMode,RhsOptions> Rhs;
1523 typedef Transform<Scalar,Dim,Projective> ResultType;
1531 struct transform_transform_product_impl<Transform<Scalar,Dim,AffineCompact,LhsOptions>,Transform<Sc…
1533 typedef Transform<Scalar,Dim,AffineCompact,LhsOptions> Lhs;
1534 typedef Transform<Scalar,Dim,Projective,RhsOptions> Rhs;
1535 typedef Transform<Scalar,Dim,Projective> ResultType;
1546 struct transform_transform_product_impl<Transform<Scalar,Dim,Projective,LhsOptions>,Transform<Scala…
1548 typedef Transform<Scalar,Dim,Projective,LhsOptions> Lhs;
1549 typedef Transform<Scalar,Dim,AffineCompact,RhsOptions> Rhs;
1550 typedef Transform<Scalar,Dim,Projective> ResultType;