#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 () |
| bool | isIdentity () const |
| void | move (const Vector3d &MovVec) |
| 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. More... | |
| Placement & | operator= (const Placement &) |
| bool | operator== (const Placement &) const |
| Placement (const Base::Matrix4D &matrix) | |
| Placement (const Placement &) | |
| Placement (const Vector3d &Pos, const Rotation &Rot) | |
| Placement (const Vector3d &Pos, const Rotation &Rot, const Vector3d &Cnt) | |
| Placement (void) | |
| default constructor More... | |
| Placement | pow (double t, bool shorten=true) const |
| void | setPosition (const Vector3d &Pos) |
| void | setRotation (const Rotation &Rot) |
| DualQuat | toDualQuaternion () const |
| Matrix4D | toMatrix (void) const |
| ~Placement () | |
| Destruction. More... | |
Static Public Member Functions | |
| static Placement | fromDualQuaternion (DualQuat qq) |
| specialty constructors More... | |
| static Placement | sclerp (const Placement &p0, const Placement &p1, double t, bool shorten=true) |
| static Placement | slerp (const Placement &p0, const Placement &p1, double t) |
Detailed Description
The Placement class.
Constructor & Destructor Documentation
◆ Placement() [1/5]
| Placement::Placement | ( | void | ) |
default constructor
Referenced by PartDesign::Pocket::execute(), PartDesign::Pad::execute(), PartDesign::ShapeBinder::execute(), fromDualQuaternion(), PartDesign::ProfileBased::getProfileNormal(), PartDesign::ProfileBased::getReversedAngle(), and slerp().
◆ Placement() [2/5]
| Placement::Placement | ( | const Placement & | that | ) |
◆ Placement() [3/5]
| Placement::Placement | ( | const Base::Matrix4D & | matrix | ) |
References fromMatrix().
◆ Placement() [4/5]
◆ Placement() [5/5]
◆ ~Placement()
| Base::Placement::~Placement | ( | ) |
Destruction.
Member Function Documentation
◆ fromDualQuaternion()
specialty constructors
References Base::DualQuat::conj(), Base::DualQuat::dual(), Placement(), Base::DualNumber::re, Base::DualQuat::real(), Base::DualQuat::w, Base::DualQuat::x, Base::DualQuat::y, and Base::DualQuat::z.
Referenced by pow().
◆ fromMatrix()
| void Placement::fromMatrix | ( | const Matrix4D & | m | ) |
◆ getPosition()
| const Vector3d& Base::Placement::getPosition | ( | void | ) | const |
Referenced by PartGui::TaskDlgAttacher::accept(), Attacher::AttachEngine3D::calculateAttachedPlacement(), Attacher::AttachEngineLine::calculateAttachedPlacement(), Import::ExportOCAF::createNode(), SketcherGui::ViewProviderSketch::doBoxSelection(), Robot::TrajectoryDressUpObject::execute(), PartDesign::Pad::execute(), PartDesignGui::fixSketchSupport(), PartDesign::ProfileBased::getAxis(), SketcherGui::ViewProviderSketch::getCoordsOnSketchPlane(), Part::Feature::getLocation(), Part::FeatureReference::getLocation(), Sketcher::SketchObject::isCarbonCopyAllowed(), Sketcher::SketchObject::rebuildExternalGeometry(), Path::Toolpath::recalculate(), Robot::Robot6AxisPy::representation(), Base::PlacementPy::representation(), Part::GeometryPy::rotate(), Robot::Robot6Axis::Save(), Robot::Waypoint::Save(), Import::ExportOCAF::saveShape(), RobotGui::ViewProviderRobotObject::setDragger(), SketcherGui::ViewProviderSketch::setEditViewer(), Path::Command::setFromPlacement(), Part::TopoShape::setPlacement(), Robot::Robot6Axis::setTo(), slerp(), Gui::View3DInventorViewer::toggleClippingPlane(), Path::Command::transform(), Point3D::UpdateCmd(), RobotGui::ViewProviderTrajectory::updateData(), RobotGui::ViewProviderRobotObject::updateData(), Gui::ViewProviderLink::updateDraggingPlacement(), Gui::ViewProviderDragger::updateTransform(), RobotGui::TaskTrajectoryDressUpParameter::viewPlacement(), Gui::View3DInventorPy::viewPosition(), Path::PathSegmentWalker::walk(), and Points::PcdWriter::write().
◆ getRotation()
| const Rotation& Base::Placement::getRotation | ( | void | ) | const |
Referenced by PartGui::TaskDlgAttacher::accept(), Attacher::AttachEngine3D::calculateAttachedPlacement(), Import::ExportOCAF::createNode(), Robot::TrajectoryDressUpObject::execute(), PartDesignGui::fixSketchSupport(), PartDesign::ProfileBased::getAxis(), SketcherGui::ViewProviderSketch::getCoordsOnSketchPlane(), Part::Feature::getLocation(), Part::FeatureReference::getLocation(), PartDesign::ProfileBased::getProfileNormal(), PartDesign::ProfileBased::getReversedAngle(), PartDesign::LinearPattern::getTransformations(), PartDesign::PolarPattern::getTransformations(), Sketcher::SketchObject::isCarbonCopyAllowed(), Attacher::AttachEngine::placementFactory(), Attacher::AttachEngine::readLinks(), SketcherGui::ViewProviderSketch::rebuildConstraintsVisual(), Sketcher::SketchObject::rebuildExternalGeometry(), Base::PlacementPy::representation(), Part::GeometryPy::rotate(), Robot::Robot6Axis::Save(), Robot::Waypoint::Save(), Import::ExportOCAF::saveShape(), RobotGui::ViewProviderRobotObject::setDragger(), SketcherGui::ViewProviderSketch::setEditViewer(), Path::Command::setFromPlacement(), Part::TopoShape::setPlacement(), Robot::Robot6Axis::setTo(), slerp(), Gui::View3DInventorViewer::toggleClippingPlane(), Path::Command::transform(), Gui::ViewProviderVRMLObject::updateData(), RobotGui::ViewProviderRobotObject::updateData(), Gui::ViewProviderInventorObject::updateData(), Gui::ViewProviderLink::updateDraggingPlacement(), Gui::ViewProviderDragger::updateTransform(), RobotGui::TaskTrajectoryDressUpParameter::viewPlacement(), Gui::View3DInventorPy::viewPosition(), Points::PlyWriter::write(), and Points::PcdWriter::write().
◆ inverse()
| Placement Placement::inverse | ( | ) | const |
Referenced by Mesh::MergeExporter::addPartFeat(), Gui::TreeWidget::dropEvent(), PartDesign::ShapeBinder::execute(), Sketcher::SketchAnalysis::getOpenVertices(), Gui::ViewProviderLink::initDraggingPlacement(), Base::PlacementPy::inverse(), Sketcher::SketchObject::rebuildExternalGeometry(), Robot::Simulation::reset(), sclerp(), RobotGui::ViewProviderRobotObject::setAxisTo(), PartDesignGui::ViewProviderDatumLine::setExtents(), PartDesignGui::ViewProviderDatumPlane::setExtents(), Robot::Simulation::setToTime(), PartDesign::SubShapeBinder::update(), and RobotGui::ViewProviderRobotObject::updateData().
◆ invert()
| void Placement::invert | ( | ) |
◆ isIdentity()
| bool Placement::isIdentity | ( | ) | const |
◆ move()
| void Placement::move | ( | const Vector3d & | MovVec | ) |
◆ multVec()
Referenced by Mesh::MergeExporter::addPartFeat(), SketcherGui::ViewProviderSketch::doBoxSelection(), PartDesign::ProfileBased::getAxis(), Sketcher::SketchAnalysis::getOpenVertices(), Base::PlacementPy::multVec(), Attacher::AttachEngine::readLinks(), Sketcher::SketchObject::rebuildExternalGeometry(), PathGui::ViewProviderPath::recomputeBoundingBox(), Points::PlyWriter::write(), and Points::PcdWriter::write().
◆ operator!=()
◆ operator*()
◆ operator*=()
◆ operator=()
◆ operator==()
◆ pow()
References fromDualQuaternion(), and toDualQuaternion().
Referenced by sclerp().
◆ sclerp()
◆ setPosition()
| void Base::Placement::setPosition | ( | const Vector3d & | Pos | ) |
◆ setRotation()
| void Base::Placement::setRotation | ( | const Rotation & | Rot | ) |
Referenced by Attacher::AttachEngine3D::calculateAttachedPlacement(), Attacher::AttachEngineLine::calculateAttachedPlacement(), Robot::TrajectoryDressUpObject::execute(), SketcherGui::ViewProviderSketch::getCoordsOnSketchPlane(), Base::PlacementPy::PyInit(), SketcherGui::ViewProviderSketch::rebuildConstraintsVisual(), Part::Box::Restore(), and Base::PlacementPy::setRotation().
◆ slerp()
References getPosition(), getRotation(), Placement(), and Base::Rotation::slerp().
◆ toDualQuaternion()
| DualQuat Placement::toDualQuaternion | ( | ) | const |
References Base::DualNumber::re, Base::DualQuat::w, Base::DualQuat::x, Base::DualQuat::y, and Base::DualQuat::z.
Referenced by pow().
◆ toMatrix()
| Base::Matrix4D Placement::toMatrix | ( | void | ) | const |
Referenced by Gui::Dialog::TransformStrategy::acceptDataTransform(), Mesh::MergeExporter::addMeshFeat(), Gui::Dialog::TransformStrategy::applyViewTransform(), Gui::TreeWidget::dropEvent(), PartDesign::Hole::execute(), App::OriginGroupExtension::extensionGetSubObject(), App::GeoFeatureGroupExtension::extensionGetSubObject(), Part::Feature::getSubObject(), PartDesign::Body::getSubObject(), PartDesign::SubShapeBinder::getSubObject(), Gui::ViewProviderLink::initDraggingPlacement(), Gui::Dialog::Transform::on_applyButton_clicked(), Mesh::Feature::onChanged(), Points::Feature::onChanged(), Part::Feature::onChanged(), MeshGui::ViewProviderMesh::partMeshCallback(), Sketcher::SketchObject::rebuildExternalGeometry(), Gui::Dialog::TransformStrategy::resetViewTransform(), MeshGui::ViewProviderMesh::segmMeshCallback(), Gui::ViewProviderDragger::setEditViewer(), PartDesignGui::ViewProviderDatumLine::setExtents(), PartDesignGui::ViewProviderDatumPlane::setExtents(), Data::ComplexGeoData::setPlacement(), Fem::PropertyFemMesh::setPyObject(), Fem::FemMeshPy::setTransform(), Gui::ViewProviderPy::setTransformation(), Base::PlacementPy::toMatrix(), PartDesign::SubShapeBinder::update(), PartGui::ViewProvider2DObject::updateData(), Gui::ViewProviderLink::updateDraggingPlacement(), and Points::AscWriter::write().
The documentation for this class was generated from the following files:
- src/Base/Placement.h
- src/Base/Placement.cpp
1.8.17