chrono::ChFunctionPositionXYZFunctions Class Reference

Description

A motion function p=f(s) where p(t) is defined with three independent ChFunction objects, each for px, py, pz component.

#include <ChFunctionPositionXYZFunctions.h>

Inheritance diagram for chrono::ChFunctionPositionXYZFunctions:
Collaboration diagram for chrono::ChFunctionPositionXYZFunctions:

Public Member Functions

 ChFunctionPositionXYZFunctions (const ChFunctionPositionXYZFunctions &other)
 
virtual ChFunctionPositionXYZFunctionsClone () const override
 "Virtual" copy constructor.
 
void SetFunctionX (std::shared_ptr< ChFunction > mx)
 Set the fx(s) function for the X component of the motion, ie. p.x = fx(s)
 
std::shared_ptr< ChFunctionGetFunctionX ()
 Get the fx(s) function for the X component of the motion, ie. p.x = fx(s)
 
void SetFunctionY (std::shared_ptr< ChFunction > my)
 Set the fy(s) function for the Y component of the motion, ie. p.y = fy(s)
 
std::shared_ptr< ChFunctionGetFunctionY ()
 Get the fy(s) function for the Y component of the motion, ie. p.y = fy(s)
 
void SetFunctionZ (std::shared_ptr< ChFunction > mz)
 Set the fz(s) function for the Z component of the motion, ie. p.z = fz(s)
 
std::shared_ptr< ChFunctionGetFunctionZ ()
 Get the fz(s) function for the Z component of the motion, ie. p.z = fz(s)
 
virtual ChVector3d GetPos (double s) const override
 Return the position imposed by the function, at s.
 
virtual ChVector3d GetLinVel (double s) const override
 Return the linear velocity imposed by the function, at s.
 
virtual ChVector3d GetLinAcc (double s) const override
 Return the linear acceleration imposed the function, at s.
 
virtual void ArchiveOut (ChArchiveOut &archive_out) override
 Method to allow serialization of transient data to archives.
 
virtual void ArchiveIn (ChArchiveIn &archive_in) override
 Method to allow de-serialization of transient data from archives.
 
- Public Member Functions inherited from chrono::ChFunctionPosition
 ChFunctionPosition (const ChFunctionPosition &other)
 
virtual void Update (double t)
 Update could be implemented by children classes, ex. to launch callbacks.
 

Member Function Documentation

◆ ArchiveIn()

void chrono::ChFunctionPositionXYZFunctions::ArchiveIn ( ChArchiveIn & archive_in)
overridevirtual

Method to allow de-serialization of transient data from archives.

Reimplemented from chrono::ChFunctionPosition.

◆ ArchiveOut()

void chrono::ChFunctionPositionXYZFunctions::ArchiveOut ( ChArchiveOut & archive_out)
overridevirtual

Method to allow serialization of transient data to archives.

Reimplemented from chrono::ChFunctionPosition.

◆ Clone()

virtual ChFunctionPositionXYZFunctions * chrono::ChFunctionPositionXYZFunctions::Clone ( ) const
inlineoverridevirtual

"Virtual" copy constructor.

Implements chrono::ChFunctionPosition.

◆ GetLinAcc()

ChVector3d chrono::ChFunctionPositionXYZFunctions::GetLinAcc ( double s) const
overridevirtual

Return the linear acceleration imposed the function, at s.

Reimplemented from chrono::ChFunctionPosition.

◆ GetLinVel()

ChVector3d chrono::ChFunctionPositionXYZFunctions::GetLinVel ( double s) const
overridevirtual

Return the linear velocity imposed by the function, at s.

Reimplemented from chrono::ChFunctionPosition.

◆ GetPos()

ChVector3d chrono::ChFunctionPositionXYZFunctions::GetPos ( double s) const
overridevirtual

Return the position imposed by the function, at s.

Implements chrono::ChFunctionPosition.


The documentation for this class was generated from the following files:
  • C:/M/B/src/chrono-9.0.1/src/chrono/functions/ChFunctionPositionXYZFunctions.h
  • C:/M/B/src/chrono-9.0.1/src/chrono/functions/ChFunctionPositionXYZFunctions.cpp