#include <Placement.h>
Public Member Functions | |
void | fromMatrix (const Matrix4D &m) |
const Vector3d & | getPosition (void) const |
const Rotation & | getRotation (void) const |
Placement | inverse () const |
void | invert () |
void | move (const Vector3d &MovVec) |
Placement (const Vector3d &Pos, const Rotation &Rot, const Vector3d &Cnt) | |
Placement (const Vector3d &Pos, const Rotation &Rot) | |
Placement (const Base::Matrix4D &matrix) | |
Placement (const Placement &) | |
Placement (void) | |
default constructor | |
void | setPosition (const Vector3d &Pos) |
void | setRotation (const Rotation &Rot) |
Matrix4D | toMatrix (void) const |
~Placement () | |
Destruction. | |
void | multVec (const Vector3d &src, Vector3d &dst) const |
bool | operator!= (const Placement &) const |
Placement | operator* (const Placement &p) const |
Placement & | operator*= (const Placement &p) |
Operators. | |
Placement & | operator= (const Placement &) |
bool | operator== (const Placement &) const |
Static Public Member Functions | |
static Placement | slerp (const Placement &p0, const Placement &p1, double t) |
Protected Attributes | |
Vector3< double > | _pos |
Base::Rotation | _rot |
The Placement class.
Definition at line 39 of file Base/Placement.h.
Placement::Placement | ( | void | ) |
Placement::Placement | ( | const Placement & | that | ) |
Definition at line 44 of file Base/Placement.cpp.
Placement::Placement | ( | const Base::Matrix4D & | matrix | ) |
Definition at line 39 of file Base/Placement.cpp.
References fromMatrix().
Definition at line 50 of file Base/Placement.cpp.
Definition at line 56 of file Base/Placement.cpp.
References _pos, _rot, and Base::Rotation::multVec().
Base::Placement::~Placement | ( | ) | [inline] |
Destruction.
Definition at line 49 of file Base/Placement.h.
void Placement::fromMatrix | ( | const Matrix4D & | m | ) |
Definition at line 74 of file Base/Placement.cpp.
References _pos, _rot, Base::Rotation::setValue(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by Points::Feature::onChanged(), Part::Feature::onChanged(), Mesh::Feature::onChanged(), Placement(), Base::PlacementPy::PyInit(), App::PropertyPlacement::setPyObject(), and Robot::Robot6AxisPy::setTcp().
const Vector3d& Base::Placement::getPosition | ( | void | ) | const [inline] |
Definition at line 53 of file Base/Placement.h.
Referenced by CmdRobotSetDefaultOrientation::activated(), CmdSketcherMapSketch::activated(), CmdSketcherNewSketch::activated(), RobotGui::ViewProviderRobotObject::DraggerMotionCallback(), Robot::TrajectoryDressUpObject::execute(), SketcherGui::ViewProviderSketch::getCoordsOnSketchPlane(), Part::FeatureReference::getLocation(), Part::Feature::getLocation(), Part::Part2DObject::positionBySupport(), Robot::WaypointPy::representation(), Robot::Robot6AxisPy::representation(), Base::PlacementPy::representation(), Part::GeometryPy::rotate(), Robot::Waypoint::Save(), Robot::Robot6Axis::Save(), App::PropertyPlacement::Save(), RobotGui::ViewProviderRobotObject::setDragger(), Gui::ViewProviderGeometryObject::setEdit(), Robot::Robot6Axis::setTo(), Gui::PropertyEditor::PropertyPlacementItem::setValue(), slerp(), Robot::toFrame(), Gui::PropertyEditor::PropertyPlacementItem::toString(), RobotGui::ViewProviderTrajectory::updateData(), RobotGui::ViewProviderRobotObject::updateData(), Gui::ViewProviderGeometryObject::updateData(), RobotGui::TaskTrajectoryDressUpParameter::viewPlacement(), Gui::View3DInventorPy::viewPosition(), RobotGui::TaskRobot6Axis::viewTcp(), RobotGui::TaskTrajectory::viewTool(), and RobotGui::TaskRobot6Axis::viewTool().
const Rotation& Base::Placement::getRotation | ( | void | ) | const [inline] |
Definition at line 54 of file Base/Placement.h.
Referenced by CmdRobotSetDefaultOrientation::activated(), CmdSketcherMapSketch::activated(), CmdSketcherNewSketch::activated(), Robot::TrajectoryDressUpObject::execute(), PartDesign::Revolution::execute(), PartDesign::Pocket::execute(), PartDesign::Pad::execute(), SketcherGui::ViewProviderSketch::getCoordsOnSketchPlane(), Part::FeatureReference::getLocation(), Part::Feature::getLocation(), Robot::WaypointPy::representation(), Base::PlacementPy::representation(), Part::GeometryPy::rotate(), Robot::Waypoint::Save(), Robot::Robot6Axis::Save(), App::PropertyPlacement::Save(), RobotGui::ViewProviderRobotObject::setDragger(), Gui::ViewProviderGeometryObject::setEdit(), SketcherGui::ViewProviderSketch::setEditViewer(), Robot::Robot6Axis::setTo(), Gui::PropertyEditor::PropertyPlacementItem::setValue(), slerp(), Robot::toFrame(), Gui::PropertyEditor::PropertyPlacementItem::toString(), RobotGui::ViewProviderRobotObject::updateData(), Gui::ViewProviderGeometryObject::updateData(), RobotGui::TaskTrajectoryDressUpParameter::viewPlacement(), Gui::View3DInventorPy::viewPosition(), RobotGui::TaskRobot6Axis::viewTcp(), RobotGui::TaskTrajectory::viewTool(), and RobotGui::TaskRobot6Axis::viewTool().
Placement Placement::inverse | ( | void | ) | const |
Definition at line 89 of file Base/Placement.cpp.
References invert(), and draftTools::p.
Referenced by Base::PlacementPy::inverse(), Robot::Simulation::reset(), RobotGui::ViewProviderRobotObject::setAxisTo(), Robot::Simulation::setToTime(), and RobotGui::ViewProviderRobotObject::updateData().
void Placement::invert | ( | ) |
Definition at line 82 of file Base/Placement.cpp.
References _pos, _rot, Base::Rotation::inverse(), and Base::Rotation::multVec().
Referenced by inverse(), and PartGui::ViewProvider2DObject::updateData().
void Placement::move | ( | const Vector3d & | MovVec | ) |
Definition at line 96 of file Base/Placement.cpp.
References _pos.
Referenced by Base::PlacementPy::move().
Definition at line 134 of file Base/Placement.cpp.
References _pos, _rot, and Base::Rotation::multVec().
Referenced by Base::PlacementPy::multVec().
bool Placement::operator!= | ( | const Placement & | that | ) | const |
Definition at line 106 of file Base/Placement.cpp.
Definition at line 120 of file Base/Placement.cpp.
Operators.
Definition at line 111 of file Base/Placement.cpp.
References _pos, _rot, and Base::Rotation::multVec().
Definition at line 127 of file Base/Placement.cpp.
bool Placement::operator== | ( | const Placement & | that | ) | const |
Definition at line 101 of file Base/Placement.cpp.
void Base::Placement::setPosition | ( | const Vector3d & | Pos | ) | [inline] |
Definition at line 55 of file Base/Placement.h.
Referenced by Robot::TrajectoryDressUpObject::execute(), Base::PlacementPy::PyInit(), Part::Box::Restore(), and Base::PlacementPy::setBase().
void Base::Placement::setRotation | ( | const Rotation & | Rot | ) | [inline] |
Definition at line 56 of file Base/Placement.h.
Referenced by CmdPointsTransform::activated(), Robot::TrajectoryDressUpObject::execute(), SketcherGui::ViewProviderSketch::getCoordsOnSketchPlane(), Base::PlacementPy::PyInit(), Part::Box::Restore(), and Base::PlacementPy::setRotation().
Definition at line 140 of file Base/Placement.cpp.
References getPosition(), getRotation(), Placement(), and RobotExample::pos.
Base::Matrix4D Placement::toMatrix | ( | void | ) | const |
Definition at line 64 of file Base/Placement.cpp.
References _pos, _rot, Base::Rotation::getValue(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by Gui::Dialog::TransformStrategy::acceptDataTransform(), Gui::Dialog::TransformStrategy::applyViewTransform(), checkBB(), Gui::Dialog::Transform::on_applyButton_clicked(), Gui::Dialog::TransformStrategy::resetViewTransform(), Data::ComplexGeoData::setPlacement(), Fem::FemMeshPy::setTransform(), Base::PlacementPy::toMatrix(), PartGui::ViewProvider2DObject::updateData(), and Fem::FemMesh::writeABAQUS().
Vector3<double> Base::Placement::_pos [protected] |
Definition at line 76 of file Base/Placement.h.
Referenced by fromMatrix(), invert(), move(), multVec(), operator*=(), operator=(), operator==(), Placement(), and toMatrix().
Base::Rotation Base::Placement::_rot [protected] |
Definition at line 77 of file Base/Placement.h.
Referenced by fromMatrix(), invert(), multVec(), operator*=(), operator=(), operator==(), Placement(), and toMatrix().