Base::Placement Class Reference

The Placement class. More...

#include <Placement.h>

Public Member Functions

void fromMatrix (const Matrix4D &m)
 
const Vector3dgetPosition () const
 
const RotationgetRotation () 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
 
Placementoperator*= (const Placement &p)
 Operators. More...
 
Placementoperator= (const Placement &)
 
bool operator== (const Placement &) const
 
 Placement ()
 default constructor More...
 
 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 pow (double t, bool shorten=true) const
 
void setPosition (const Vector3d &Pos)
 
void setRotation (const Rotation &Rot)
 
DualQuat toDualQuaternion () const
 
Matrix4D toMatrix () 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() [2/5]

Placement::Placement ( const Placement that)

◆ Placement() [3/5]

Placement::Placement ( const Base::Matrix4D matrix)

References fromMatrix().

◆ Placement() [4/5]

Placement::Placement ( const Vector3d Pos,
const Rotation Rot 
)

◆ Placement() [5/5]

Placement::Placement ( const Vector3d Pos,
const Rotation Rot,
const Vector3d Cnt 
)

◆ ~Placement()

Base::Placement::~Placement ( )

Destruction.

Member Function Documentation

◆ fromDualQuaternion()

◆ fromMatrix()

◆ getPosition()

const Vector3d & Base::Placement::getPosition ( ) const

Referenced by PartGui::TaskDlgAttacher::accept(), Attacher::AttachEngine3D::calculateAttachedPlacement(), Attacher::AttachEngineLine::calculateAttachedPlacement(), Import::ExportOCAF::createNode(), Robot::TrajectoryDressUpObject::execute(), PartDesignGui::fixSketchSupport(), Part::Tools::fromPlacement(), PartDesign::ProfileBased::getAxis(), Part::Datum::getBasePoint(), Part::Feature::getLocation(), Part::FeatureReference::getLocation(), PartDesign::Point::getPoint(), Sketcher::SketchObject::isCarbonCopyAllowed(), PartGui::Location::Location(), PartGui::SectionCut::onCutXvalueChanged(), PartGui::SectionCut::onCutYvalueChanged(), PartGui::SectionCut::onCutZvalueChanged(), Sketcher::SketchObject::rebuildExternalGeometry(), Path::Toolpath::recalculate(), Part::Geometry::rotate(), Robot::Robot6Axis::Save(), Robot::Waypoint::Save(), Import::ExportOCAF::saveShape(), PartGui::SectionCut::SectionCut(), RobotGui::ViewProviderRobotObject::setDragger(), SketcherGui::ViewProviderSketch::setEditViewer(), Path::Command::setFromPlacement(), Part::TopoShape::setShapePlacement(), Robot::Robot6Axis::setTo(), slerp(), Robot::toFrame(), Gui::View3DInventorViewer::toggleClippingPlane(), Path::Command::transform(), Point3D::UpdateCmd(), RobotGui::ViewProviderRobotObject::updateData(), RobotGui::ViewProviderTrajectory::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 ( ) const

Referenced by PartGui::TaskDlgAttacher::accept(), Attacher::AttachEngine3D::calculateAttachedPlacement(), Import::ExportOCAF::createNode(), Robot::TrajectoryDressUpObject::execute(), PartDesignGui::fixSketchSupport(), Part::Tools::fromPlacement(), PartDesign::ProfileBased::getAxis(), PartDesign::Line::getDirection(), Part::Feature::getLocation(), Part::FeatureReference::getLocation(), PartDesign::Plane::getNormal(), PartDesign::ProfileBased::getProfileNormal(), PartDesign::ProfileBased::getReversedAngle(), PartDesign::LinearPattern::getTransformations(), PartDesign::PolarPattern::getTransformations(), PartDesign::CoordinateSystem::getXAxis(), PartDesign::CoordinateSystem::getYAxis(), PartDesign::CoordinateSystem::getZAxis(), Sketcher::SketchObject::isCarbonCopyAllowed(), Attacher::AttachEngine::placementFactory(), Attacher::AttachEngine::readLinks(), Sketcher::SketchObject::rebuildExternalGeometry(), Part::Geometry::rotate(), Robot::Robot6Axis::Save(), Robot::Waypoint::Save(), Import::ExportOCAF::saveShape(), RobotGui::ViewProviderRobotObject::setDragger(), SketcherGui::ViewProviderSketch::setEditViewer(), Path::Command::setFromPlacement(), Part::TopoShape::setShapePlacement(), Robot::Robot6Axis::setTo(), slerp(), Robot::toFrame(), Gui::View3DInventorViewer::toggleClippingPlane(), Path::Command::transform(), Gui::ViewProviderInventorObject::updateData(), Gui::ViewProviderVRMLObject::updateData(), RobotGui::ViewProviderRobotObject::updateData(), Gui::ViewProviderLink::updateDraggingPlacement(), Gui::ViewProviderDragger::updateTransform(), RobotGui::TaskTrajectoryDressUpParameter::viewPlacement(), Gui::View3DInventorPy::viewPosition(), Points::PlyWriter::write(), and Points::PcdWriter::write().

◆ inverse()

◆ invert()

◆ isIdentity()

◆ move()

◆ multVec()

◆ operator!=()

bool Placement::operator!= ( const Placement that) const

◆ operator*()

Placement Placement::operator* ( const Placement p) const

◆ operator*=()

Placement & Placement::operator*= ( const Placement p)

Operators.

◆ operator=()

Placement & Placement::operator= ( const Placement New)

◆ operator==()

bool Placement::operator== ( const Placement that) const

◆ pow()

Placement Placement::pow ( double  t,
bool  shorten = true 
) const

References fromDualQuaternion(), pow(), and toDualQuaternion().

Referenced by pow(), and sclerp().

◆ sclerp()

Placement Placement::sclerp ( const Placement p0,
const Placement p1,
double  t,
bool  shorten = true 
)
static

References inverse(), and pow().

◆ setPosition()

◆ setRotation()

◆ slerp()

Placement Placement::slerp ( const Placement p0,
const Placement p1,
double  t 
)
static

◆ toDualQuaternion()

DualQuat Placement::toDualQuaternion ( ) const

◆ toMatrix()


The documentation for this class was generated from the following files: