#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 () |
Definition at line 36 of file Transform.h.
TransformStrategy::TransformStrategy | ( | ) |
Definition at line 82 of file Transform.cpp.
TransformStrategy::~TransformStrategy | ( | ) | [virtual] |
Definition at line 86 of file Transform.cpp.
void TransformStrategy::acceptDataTransform | ( | const Base::Matrix4D & | mat, | |
App::DocumentObject * | obj | |||
) |
Definition at line 134 of file Transform.cpp.
References App::DocumentObject::getDocument(), Gui::Application::getDocument(), App::PropertyContainer::getPropertyMap(), Gui::Document::getViewProvider(), Gui::Application::Instance, Gui::ViewProvider::setTransformation(), and Base::Placement::toMatrix().
Referenced by commitTransform().
void TransformStrategy::applyTransform | ( | const Base::Placement & | plm | ) |
Definition at line 160 of file Transform.cpp.
References applyViewTransform(), and transformObjects().
void TransformStrategy::applyViewTransform | ( | const Base::Placement & | plm, | |
App::DocumentObject * | obj | |||
) |
Definition at line 176 of file Transform.cpp.
References App::DocumentObject::getDocument(), Gui::Application::getDocument(), App::PropertyContainer::getPropertyMap(), Gui::Document::getViewProvider(), Gui::Application::Instance, Gui::ViewProvider::setTransformation(), and Base::Placement::toMatrix().
Referenced by applyTransform().
void TransformStrategy::commitTransform | ( | const Base::Matrix4D & | plm | ) |
Definition at line 121 of file Transform.cpp.
References acceptDataTransform(), Gui::Application::activeDocument(), Gui::Document::commitCommand(), Gui::Application::Instance, Gui::Document::openCommand(), and transformObjects().
Referenced by Gui::Dialog::Transform::on_applyButton_clicked().
Base::Vector3d TransformStrategy::getRotationCenter | ( | ) | const |
Definition at line 90 of file Transform.cpp.
References Base::BoundBox3< _Precision >::Add(), 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 | ( | ) |
Definition at line 168 of file Transform.cpp.
References resetViewTransform(), and transformObjects().
Referenced by Gui::Dialog::Transform::reject().
void TransformStrategy::resetViewTransform | ( | App::DocumentObject * | obj | ) |
Definition at line 197 of file Transform.cpp.
References App::DocumentObject::getDocument(), Gui::Application::getDocument(), App::PropertyContainer::getPropertyMap(), Gui::Document::getViewProvider(), Gui::Application::Instance, Gui::ViewProvider::setTransformation(), and Base::Placement::toMatrix().
Referenced by resetTransform().
virtual std::set<App::DocumentObject*> Gui::Dialog::TransformStrategy::transformObjects | ( | ) | const [pure virtual] |
Implemented in Gui::Dialog::DefaultTransformStrategy.
Referenced by applyTransform(), commitTransform(), getRotationCenter(), resetTransform(), and Gui::Dialog::Transform::setTransformStrategy().