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

a twist class More...

#include <a_twist.h>

+ Inheritance diagram for a_twist:
+ Collaboration diagram for a_twist:

Public Member Functions

void set (const a_point &p, a_point d, double t, double r)
 
void set (double x, double y, double z, double dx, double dy, double dz, double t, double r=0.)
 
 a_twist ()
 
 a_twist (const a_plucker &m)
 
 a_twist (const a_point &p, a_point d, double t, double r)
 
 a_twist (double x, double y, double z, double dx, double dy, double dz, double t, double r=0.)
 
 ~a_twist ()
 
std::string name () const
 
double dx () const
 p2_ : translation More...
 
double dy () const
 
double dz () const
 
double rx () const
 p1_ : rotation (applied first, norm is rotation in radian, direction is axis of rotation) More...
 
double ry () const
 
double rz () const
 
double d () const
 
double r () const
 
void reset ()
 
a_quaternion quaternion () const
 conversion routines More...
 
void quaternion (a_quaternion q)
 
a_mat_sq matrix () const
 
void matrix (const a_mat_sq &mat)
 
void translate (const a_point &d)
 iterative transformation More...
 
void translate (const double &x, const double &y, const double &z)
 
void rotate (const a_point &pt, const a_point &dir, double v)
 
a_point operator* (a_point p) const
 transform a point using the screw 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 twist class

Author
P.Smars
Date
2014

Definition at line 30 of file a_twist.h.

Constructor & Destructor Documentation

◆ a_twist() [1/4]

a_twist::a_twist ( )

Definition at line 77 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ a_twist() [2/4]

a_twist::a_twist ( const a_plucker m)
inline

Definition at line 42 of file a_twist.h.

◆ a_twist() [3/4]

a_twist::a_twist ( const a_point &  p,
a_point  d,
double  t,
double  r 
)

Definition at line 84 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ a_twist() [4/4]

a_twist::a_twist ( double  x,
double  y,
double  z,
double  dx,
double  dy,
double  dz,
double  t,
double  r = 0. 
)

Definition at line 70 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ ~a_twist()

a_twist::~a_twist ( )
inline

Definition at line 45 of file a_twist.h.

Member Function Documentation

◆ d()

double a_twist::d ( ) const
inline

Definition at line 57 of file a_twist.h.

+ Here is the caller graph for this function:

◆ dx()

double a_twist::dx ( ) const
inline

p2_ : translation

Definition at line 50 of file a_twist.h.

+ Here is the caller graph for this function:

◆ dy()

double a_twist::dy ( ) const
inline

Definition at line 51 of file a_twist.h.

+ Here is the caller graph for this function:

◆ dz()

double a_twist::dz ( ) const
inline

Definition at line 52 of file a_twist.h.

+ Here is the caller graph for this function:

◆ help()

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

get information about the class

Definition at line 112 of file a_twist.cxx.

+ Here is the caller graph for this function:

◆ matrix() [1/2]

a_mat_sq a_twist::matrix ( ) const

Definition at line 178 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ matrix() [2/2]

void a_twist::matrix ( const a_mat_sq &  mat)

Definition at line 197 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ name()

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

Reimplemented from a_plucker.

Definition at line 46 of file a_twist.h.

+ Here is the caller graph for this function:

◆ operator*()

a_point a_twist::operator* ( a_point  p) const

transform a point using the screw

Definition at line 89 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ quaternion() [1/2]

a_quaternion a_twist::quaternion ( ) const

conversion routines

Definition at line 156 of file a_twist.cxx.

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

◆ quaternion() [2/2]

void a_twist::quaternion ( a_quaternion  q)

Definition at line 167 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ r()

double a_twist::r ( ) const
inline

Definition at line 58 of file a_twist.h.

+ Here is the caller graph for this function:

◆ reset()

void a_twist::reset ( )

Definition at line 145 of file a_twist.cxx.

◆ rotate()

void a_twist::rotate ( const a_point &  pt,
const a_point &  dir,
double  v 
)

Definition at line 209 of file a_twist.cxx.

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

◆ rx()

double a_twist::rx ( ) const
inline

p1_ : rotation (applied first, norm is rotation in radian, direction is axis of rotation)

Definition at line 54 of file a_twist.h.

◆ ry()

double a_twist::ry ( ) const
inline

Definition at line 55 of file a_twist.h.

◆ rz()

double a_twist::rz ( ) const
inline

Definition at line 56 of file a_twist.h.

◆ set() [1/2]

void a_twist::set ( const a_point &  p,
a_point  d,
double  t,
double  r 
)

p: origin of the screw d: direction of the screw (will be normalised) t: translation along the screw r: rotation around the screw

Definition at line 20 of file a_twist.cxx.

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

◆ set() [2/2]

void a_twist::set ( double  x,
double  y,
double  z,
double  dx,
double  dy,
double  dz,
double  t,
double  r = 0. 
)

Definition at line 57 of file a_twist.cxx.

+ Here is the call graph for this function:

◆ translate() [1/2]

void a_twist::translate ( const a_point &  d)

iterative transformation

Definition at line 151 of file a_twist.cxx.

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

◆ translate() [2/2]

void a_twist::translate ( const double &  x,
const double &  y,
const double &  z 
)
inline

Definition at line 68 of file a_twist.h.

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

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