#include <Transform.h>
Public Member Functions | |
void | acceptDataTransform (const Base::Matrix4D &mat, App::DocumentObject *obj) |
void | applyTransform (const Base::Placement &plm) |
void | applyViewTransform (const Base::Placement &plm, App::DocumentObject *obj) |
void | commitTransform (const Base::Matrix4D &plm) |
Base::Vector3d | getRotationCenter () const |
void | resetTransform () |
void | resetViewTransform (App::DocumentObject *obj) |
virtual std::set< App::DocumentObject * > | transformObjects () const =0 |
TransformStrategy () | |
virtual | ~TransformStrategy () |
TransformStrategy::TransformStrategy | ( | ) |
|
virtual |
void TransformStrategy::acceptDataTransform | ( | const Base::Matrix4D & | mat, |
App::DocumentObject * | obj | ||
) |
void TransformStrategy::applyTransform | ( | const Base::Placement & | plm | ) |
References applyViewTransform(), and transformObjects().
void TransformStrategy::applyViewTransform | ( | const Base::Placement & | plm, |
App::DocumentObject * | obj | ||
) |
References Gui::Application::getDocument(), Gui::Application::Instance, Gui::ViewProvider::setTransformation(), and Base::Placement::toMatrix().
Referenced by applyTransform().
void TransformStrategy::commitTransform | ( | const Base::Matrix4D & | plm | ) |
Base::Vector3d TransformStrategy::getRotationCenter | ( | ) | const |
References Base::BoundBox3< _Precision >::Add(), App::PropertyGeometry::getBoundingBox(), Base::Persistence::getClassTypeId(), App::GeoFeature::getPropertyOfGeometry(), Base::BoundBox3< _Precision >::MaxX, Base::BoundBox3< _Precision >::MaxY, Base::BoundBox3< _Precision >::MaxZ, Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, Base::BoundBox3< _Precision >::MinZ, and transformObjects().
Referenced by Gui::Dialog::Transform::on_applyButton_clicked(), and Gui::Dialog::Transform::setTransformStrategy().
void TransformStrategy::resetTransform | ( | ) |
References resetViewTransform(), and transformObjects().
Referenced by Gui::Dialog::Transform::reject().
void TransformStrategy::resetViewTransform | ( | App::DocumentObject * | obj | ) |
References Gui::Application::getDocument(), Gui::Application::Instance, Gui::ViewProvider::setTransformation(), and Base::Placement::toMatrix().
Referenced by resetTransform().
|
pure virtual |
Implemented in Gui::Dialog::DefaultTransformStrategy.
Referenced by applyTransform(), commitTransform(), getRotationCenter(), resetTransform(), and Gui::Dialog::Transform::setTransformStrategy().