Points&Forces (survey)
Software tools facilitating the task of surveying architecture
|
a wrench class More...
#include <a_wrench.h>
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_wrench & | operator- () |
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_plucker & | operator= (const a_plucker &m) |
bool | operator== (const a_plucker &a) |
a_plucker & | operator- () |
virtual a_plucker | operator+ (const a_plucker &a) |
a_plucker | operator- (const a_plucker &a) |
a_plucker & | operator+= (const a_plucker &a) |
a_plucker & | operator-= (const a_plucker &a) |
a_plucker & | operator*= (double v) |
a_plucker & | operator/= (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_ |
|
inline |
Definition at line 32 of file a_wrench.h.
|
inline |
copy constructor
Definition at line 34 of file a_wrench.h.
|
inline |
Definition at line 35 of file a_wrench.h.
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.
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.
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.
|
inline |
set to 0
Definition at line 73 of file a_wrench.h.
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.
|
inline |
|
inline |
force at the origin
Definition at line 67 of file a_wrench.h.
|
inline |
force at the origin (x component)
Definition at line 53 of file a_wrench.h.
|
inline |
force at the origin (y component)
Definition at line 55 of file a_wrench.h.
|
inline |
force at the origin (z component)
Definition at line 57 of file a_wrench.h.
|
static |
get information about the class
Definition at line 28 of file a_wrench.cxx.
|
inline |
|
inline |
torque at the origin
Definition at line 69 of file a_wrench.h.
|
inline |
torque at the origin (x component)
Definition at line 61 of file a_wrench.h.
|
inline |
torque at the origin (y component)
Definition at line 63 of file a_wrench.h.
|
inline |
torque at the origin (z component)
Definition at line 65 of file a_wrench.h.
|
inlinevirtual |
Reimplemented from a_plucker.
Definition at line 37 of file a_wrench.h.
|
inline |
void a_wrench::origin | ( | a_point | p | ) |
change origin
Definition at line 128 of file a_wrench.cxx.
a_point a_wrench::pierce | ( | const a_plane & | p | ) | const |
intersection with a plane
Definition at line 135 of file a_wrench.cxx.
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.
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.
a_point a_wrench::torque | ( | const a_point & | p | ) | const |
torque at p
Definition at line 166 of file a_wrench.cxx.
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.