Browse Source

SceneGraph: removed *Transformation::move().

The original purpose was to allow modifying of drawing order, but this
doesn't affect that at all (the order is preserved in DrawableGroup),
thus the functions are useless.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
eb877b31ba
  1. 11
      src/SceneGraph/DualComplexTransformation.h
  2. 11
      src/SceneGraph/MatrixTransformation2D.h
  3. 11
      src/SceneGraph/RigidMatrixTransformation2D.h

11
src/SceneGraph/DualComplexTransformation.h

@ -117,17 +117,6 @@ template<class T> class BasicDualComplexTransformation: public AbstractBasicTran
return transformInternal(Math::DualComplex<T>::rotation(angle), type);
}
/**
* @brief Move object in stacking order
* @param under Sibling object under which to move or `nullptr`,
* if you want to move it above all.
* @return Reference to self (for method chaining)
*/
Object<BasicDualComplexTransformation<T>>& move(Object<BasicDualComplexTransformation<T>>* under) {
static_cast<Object<BasicDualComplexTransformation>*>(this)->Containers::template LinkedList<Object<BasicDualComplexTransformation<T>>>::move(this, under);
return static_cast<Object<BasicDualComplexTransformation<T>>&>(*this);
}
protected:
/* Allow construction only from Object */
explicit BasicDualComplexTransformation() = default;

11
src/SceneGraph/MatrixTransformation2D.h

@ -117,17 +117,6 @@ template<class T> class BasicMatrixTransformation2D: public AbstractBasicTransla
return transform(Math::Matrix3<T>::reflection(normal), type);
}
/**
* @brief Move object in stacking order
* @param under Sibling object under which to move or `nullptr`,
* if you want to move it above all.
* @return Reference to self (for method chaining)
*/
Object<BasicMatrixTransformation2D<T>>& move(Object<BasicMatrixTransformation2D<T>>* under) {
static_cast<Object<BasicMatrixTransformation2D>*>(this)->Containers::template LinkedList<Object<BasicMatrixTransformation2D<T>>>::move(this, under);
return static_cast<Object<BasicMatrixTransformation2D<T>>&>(*this);
}
protected:
/* Allow construction only from Object */
explicit BasicMatrixTransformation2D() = default;

11
src/SceneGraph/RigidMatrixTransformation2D.h

@ -134,17 +134,6 @@ template<class T> class BasicRigidMatrixTransformation2D: public AbstractBasicTr
return transformInternal(Math::Matrix3<T>::reflection(normal), type);
}
/**
* @brief Move object in stacking order
* @param under Sibling object under which to move or `nullptr`,
* if you want to move it above all.
* @return Reference to self (for method chaining)
*/
Object<BasicRigidMatrixTransformation2D<T>>& move(Object<BasicRigidMatrixTransformation2D<T>>* under) {
static_cast<Object<BasicRigidMatrixTransformation2D>*>(this)->Containers::template LinkedList<Object<BasicRigidMatrixTransformation2D<T>>>::move(this, under);
return static_cast<Object<BasicRigidMatrixTransformation2D<T>>&>(*this);
}
protected:
/* Allow construction only from Object */
explicit BasicRigidMatrixTransformation2D() = default;

Loading…
Cancel
Save