Points&Forces (survey)
Software tools facilitating the task of surveying architecture
Public Member Functions | Static Public Member Functions | List of all members
a_wrench Class Reference

a wrench class More...

#include <a_wrench.h>

+ Inheritance diagram for a_wrench:
+ Collaboration diagram for a_wrench:

Public Member Functions

 a_wrench ()
 
 a_wrench (const a_plucker &m)
 copy constructor More...
 
 ~a_wrench ()
 
std::string name () const
 
void set (const a_point &p, a_point f, double m=0)
 apply a force f at p, possibly with a moment having same direction More...
 
void set (double x, double y, double z, double fx, double fy, double fz, double m=0)
 apply a force f at p, possibly with a moment having same direction More...
 
 a_wrench (const a_point &p, a_point f, double m=0)
 apply a force f at p, possibly with a moment having same direction More...
 
 a_wrench (double x, double y, double z, double fx, double fy, double fz, double m=0)
 apply a force f at p, possibly with a moment having same direction More...
 
 a_wrench (const a_point &p1, const a_point &p2, const a_point &p3, const a_wrench &f1, const a_wrench &f2)
 compute f at p1, so that m=0 at p1, torque//normal plane (p1,p2,p3)=0 at p2 & p3, f1 applied between p1 and p2, f2 between p2 and p3 More...
 
a_point F () const
 force More...
 
double fx () const
 force at the origin (x component) More...
 
double fy () const
 force at the origin (y component) More...
 
double fz () const
 force at the origin (z component) More...
 
a_point M () const
 torque More...
 
double mx () const
 torque at the origin (x component) More...
 
double my () const
 torque at the origin (y component) More...
 
double mz () const
 torque at the origin (z component) More...
 
double f () const
 force at the origin More...
 
double m () const
 torque at the origin More...
 
a_point pierce (const a_plane &p) const
 intersection with a plane More...
 
void clear ()
 set to 0 More...
 
a_wrench operator+ (const a_wrench &a)
 
a_wrench operator- (const a_wrench &a)
 
a_wrenchoperator- ()
 
void origin (a_point p)
 change origin More...
 
a_point d0 () const
 point where wrench reduces to a pure force, return origin if f=0 More...
 
a_point torque (const a_point &p) const
 torque at p More...
 
double torque (const a_point &p, const a_point &n) const
 torque at p, in direction n More...
 
- Public Member Functions inherited from a_plucker
 a_plucker ()
 
 a_plucker (double ax, double ay, double az, double bx, double by, double bz)
 
 a_plucker (a_point p1, a_point p2)
 
 a_plucker (const a_plucker &m)
 
 ~a_plucker ()
 
a_point p1 () const
 
a_point p2 () const
 
void p1 (const a_point &p)
 
void p2 (const a_point &p)
 
a_pluckeroperator= (const a_plucker &m)
 
bool operator== (const a_plucker &a)
 
a_pluckeroperator- ()
 
virtual a_plucker operator+ (const a_plucker &a)
 
a_plucker operator- (const a_plucker &a)
 
a_pluckeroperator+= (const a_plucker &a)
 
a_pluckeroperator-= (const a_plucker &a)
 
a_pluckeroperator*= (double v)
 
a_pluckeroperator/= (double v)
 
bool operator== (const a_plucker &a) const
 
bool operator!= (const a_plucker &a) const
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) const
 

Static Public Member Functions

static const std::string help ()
 get information about the class More...
 

Additional Inherited Members

- Protected Attributes inherited from a_plucker
a_point p1_
 
a_point p2_
 

Detailed Description

a wrench class

Author
P.Smars
Date
2009-2016

Definition at line 29 of file a_wrench.h.

Constructor & Destructor Documentation

◆ a_wrench() [1/5]

a_wrench::a_wrench ( )
inline

Definition at line 32 of file a_wrench.h.

◆ a_wrench() [2/5]

a_wrench::a_wrench ( const a_plucker m)
inline

copy constructor

Definition at line 34 of file a_wrench.h.

◆ ~a_wrench()

a_wrench::~a_wrench ( )
inline

Definition at line 35 of file a_wrench.h.

◆ a_wrench() [3/5]

a_wrench::a_wrench ( const a_point &  p,
a_point  f,
double  m = 0 
)

apply a force f at p, possibly with a moment having same direction

Definition at line 82 of file a_wrench.cxx.

+ Here is the call graph for this function:

◆ a_wrench() [4/5]

a_wrench::a_wrench ( double  x,
double  y,
double  z,
double  fx,
double  fy,
double  fz,
double  m = 0 
)

apply a force f at p, possibly with a moment having same direction

Definition at line 87 of file a_wrench.cxx.

+ Here is the call graph for this function:

◆ a_wrench() [5/5]

a_wrench::a_wrench ( const a_point &  p1,
const a_point &  p2,
const a_point &  p3,
const a_wrench f1,
const a_wrench f2 
)

compute f at p1, so that m=0 at p1, torque//normal plane (p1,p2,p3)=0 at p2 & p3, f1 applied between p1 and p2, f2 between p2 and p3

a new system of reference: u,v,n

normal to the plane defined by p1,p2,p3

total force

torque at p2 and p3 resulting from external forces

vertical force at p1 necessary to have torque at p3=0

torque along u at p1 necessary to have

horizontal force at p1 necessary to have torque at p2=0

moment at origin to make p1_ pass by p1

Definition at line 94 of file a_wrench.cxx.

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

void a_wrench::clear ( )
inline

set to 0

Definition at line 73 of file a_wrench.h.

◆ d0()

a_point a_wrench::d0 ( ) const

point where wrench reduces to a pure force, return origin if f=0

need checks!!!

Definition at line 144 of file a_wrench.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ F()

a_point a_wrench::F ( ) const
inline

force

Definition at line 51 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ f()

double a_wrench::f ( ) const
inline

force at the origin

Definition at line 67 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ fx()

double a_wrench::fx ( ) const
inline

force at the origin (x component)

Definition at line 53 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ fy()

double a_wrench::fy ( ) const
inline

force at the origin (y component)

Definition at line 55 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ fz()

double a_wrench::fz ( ) const
inline

force at the origin (z component)

Definition at line 57 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ help()

const std::string a_wrench::help ( )
static

get information about the class

Definition at line 28 of file a_wrench.cxx.

+ Here is the caller graph for this function:

◆ M()

a_point a_wrench::M ( ) const
inline

torque

Definition at line 59 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ m()

double a_wrench::m ( ) const
inline

torque at the origin

Definition at line 69 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ mx()

double a_wrench::mx ( ) const
inline

torque at the origin (x component)

Definition at line 61 of file a_wrench.h.

◆ my()

double a_wrench::my ( ) const
inline

torque at the origin (y component)

Definition at line 63 of file a_wrench.h.

◆ mz()

double a_wrench::mz ( ) const
inline

torque at the origin (z component)

Definition at line 65 of file a_wrench.h.

◆ name()

std::string a_wrench::name ( ) const
inlinevirtual

Reimplemented from a_plucker.

Definition at line 37 of file a_wrench.h.

+ Here is the caller graph for this function:

◆ operator+()

a_wrench a_wrench::operator+ ( const a_wrench a)
inline

Definition at line 74 of file a_wrench.h.

+ Here is the call graph for this function:

◆ operator-() [1/2]

a_wrench& a_wrench::operator- ( )
inline

Definition at line 76 of file a_wrench.h.

+ Here is the call graph for this function:

◆ operator-() [2/2]

a_wrench a_wrench::operator- ( const a_wrench a)
inline

Definition at line 75 of file a_wrench.h.

+ Here is the call graph for this function:

◆ origin()

void a_wrench::origin ( a_point  p)

change origin

Definition at line 128 of file a_wrench.cxx.

◆ pierce()

a_point a_wrench::pierce ( const a_plane &  p) const

intersection with a plane

Definition at line 135 of file a_wrench.cxx.

+ Here is the call graph for this function:

◆ set() [1/2]

void a_wrench::set ( const a_point &  p,
a_point  f,
double  m = 0 
)

apply a force f at p, possibly with a moment having same direction

Definition at line 68 of file a_wrench.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set() [2/2]

void a_wrench::set ( double  x,
double  y,
double  z,
double  fx,
double  fy,
double  fz,
double  m = 0 
)

apply a force f at p, possibly with a moment having same direction

Definition at line 75 of file a_wrench.cxx.

+ Here is the call graph for this function:

◆ torque() [1/2]

a_point a_wrench::torque ( const a_point &  p) const

torque at p

Definition at line 166 of file a_wrench.cxx.

+ Here is the caller graph for this function:

◆ torque() [2/2]

double a_wrench::torque ( const a_point &  p,
const a_point &  n 
) const

torque at p, in direction n

Definition at line 171 of file a_wrench.cxx.

+ Here is the call graph for this function:

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