The Placement class. More...

#include <Placement.h>

Public Member Functions

void fromMatrix (const Matrix4D &m)
 
const Vector3dgetPosition (void) const
 
const RotationgetRotation (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
 
Placementoperator*= (const Placement &p)
 Operators. More...
 
Placementoperator= (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() [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 ( void  ) const

◆ 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()

◆ 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(), and toDualQuaternion().

Referenced by 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:
  • src/Base/Placement.h
  • src/Base/Placement.cpp