Points&Forces (core)
Software tools facilitating the task of surveying architecture
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
a_coord Class Reference

a coordinate system in the Points&Forces file format More...

#include <a_coord.h>

+ Inheritance diagram for a_coord:
+ Collaboration diagram for a_coord:

Public Member Functions

 a_coord ()
 
 a_coord (const std::string &aname)
 
 a_coord (const a_coord &coord)
 
 ~a_coord ()
 
virtual const std::string classname ()
 
std::string name () const
 
void name (const std::string &name)
 
void deg ()
 
void rad ()
 
void mode (const bool m)
 
double mode () const
 
void mat (a_mat_sq &r) const
 
void mat (const a_mat_sq &r)
 
void R (a_mat_sq &r) const
 
void R (const a_mat_sq &r)
 
void T (a_mat_c &t) const
 
void T (const a_mat_c &t)
 
void reset ()
 
void translate (double, double, double)
 reset to the world coordinate system More...
 
void translate (const a_point &p)
 translate the coordinate system (translation in local coordinates) More...
 
void translateW (double, double, double)
 
void translateW (const a_point &p)
 translate the coordinate system (translation in world coordinates) More...
 
void scale (double, double, double)
 
void scale (double)
 scale the coordinate system More...
 
void rotateX (double)
 
void rotateY (double)
 
void rotateZ (double)
 
void rotateXW (double)
 
void rotateYW (double)
 
void rotateZW (double)
 
void orient (const a_mat_c &o, const a_mat_c &x, const a_mat_c &y)
 
void orient (const a_point &o, const a_point &x, const a_point &y)
 
a_coord invert () const
 
a_point w2l (const a_point &pt) const
 
a_point l2w (const a_point &pt) const
 convert coordinates from world to local More...
 
virtual void read (std::istream &i)
 convert coordinates from local to world More...
 
virtual void write (std::ostream &o) const
 
- Public Member Functions inherited from a_coord_base
 a_coord_base ()
 
 a_coord_base (const a_coord_base &c)
 
- Public Member Functions inherited from a_mat_sq
 a_mat_sq (UI i, double v=0)
 
 a_mat_sq (int i, double v=0)
 
 a_mat_sq (const a_mat &m)
 
double determinant () const
 
double trace () const
 
UI dim () const
 
void settoI ()
 
a_mat_sqoperator= (const a_mat_sq &m)
 
a_mat_sqoperator= (const a_mat &m)
 
 ~a_mat_sq ()
 
a_matoperator*= (double v)
 
a_mat_sqoperator*= (const a_mat_sq m)
 
- Public Member Functions inherited from a_mat
 a_mat (UI i, UI j, double v=0)
 
 a_mat (int i, int j, double v=0)
 
 a_mat (const a_mat &m)
 
 ~a_mat ()
 
UI maxi () const
 
UI maxj () const
 
UI size () const
 
std::valarray< double > & x () const
 
virtual double & operator() (const UI i, const UI j)
 
virtual double operator() (const UI i, const UI j) const
 
a_matoperator= (const a_mat &m)
 
bool operator== (const a_mat &a)
 
a_matoperator- ()
 
a_matoperator+= (const a_mat &a)
 
a_mat operator+ (const a_mat &a)
 
a_matoperator-= (const a_mat &a)
 
a_mat operator- (const a_mat &a)
 
a_matoperator*= (double v)
 
a_mat operator* (double v)
 
a_matoperator/= (double v)
 
a_mat operator/ (double v)
 
a_mat transpose ()
 
void swapc (UI c1, UI c2)
 
void swapr (UI r1, UI r2)
 
a_mat sub_matrix (const UI i, const UI j) const
 
- Public Member Functions inherited from a_base
 a_base ()
 
void read (const std::string &file_in)
 
void write (const std::string &file_out) const
 
void small (double tol)
 
double small () const
 

Static Public Member Functions

static const std::string help ()
 
- Static Public Member Functions inherited from a_coord_base
static const std::string help ()
 
- Static Public Member Functions inherited from a_mat_base
static const std::string help ()
 
- Static Public Member Functions inherited from a_base
static const std::string help ()
 

Static Public Attributes

static const double pi = 3.141592653589793238
 

Protected Attributes

std::string name_
 
bool radian_
 
- Protected Attributes inherited from a_mat
UI maxi_
 
UI maxj_
 
std::valarray< double > * x_
 
- Protected Attributes inherited from a_base
double verysmall_
 

Additional Inherited Members

- Protected Member Functions inherited from a_mat_sq
void compatible (const a_mat &m) const
 

Detailed Description

a coordinate system in the Points&Forces file format

Author
P.Smars
Date
2000-2012
Warning
portability: ansi C++

Definition at line 32 of file a_coord.h.

Constructor & Destructor Documentation

◆ a_coord() [1/3]

a_coord::a_coord ( )

Definition at line 61 of file a_coord.cxx.

◆ a_coord() [2/3]

a_coord::a_coord ( const std::string &  aname)

Definition at line 66 of file a_coord.cxx.

◆ a_coord() [3/3]

a_coord::a_coord ( const a_coord coord)

Definition at line 71 of file a_coord.cxx.

◆ ~a_coord()

a_coord::~a_coord ( )

Definition at line 75 of file a_coord.cxx.

Member Function Documentation

◆ classname()

virtual const std::string a_coord::classname ( )
inlinevirtual

return class name: should be overridden by children classes

Reimplemented from a_coord_base.

Definition at line 39 of file a_coord.h.

◆ deg()

void a_coord::deg ( )
inline

Definition at line 45 of file a_coord.h.

◆ help()

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

Definition at line 26 of file a_coord.cxx.

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

◆ invert()

a_coord a_coord::invert ( ) const

Definition at line 314 of file a_coord.cxx.

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

◆ l2w()

a_point a_coord::l2w ( const a_point pt) const

convert coordinates from world to local

Definition at line 347 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ mat() [1/2]

void a_coord::mat ( a_mat_sq r) const

Definition at line 85 of file a_coord.cxx.

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

◆ mat() [2/2]

void a_coord::mat ( const a_mat_sq r)

Definition at line 96 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ mode() [1/2]

double a_coord::mode ( ) const
inline

Definition at line 48 of file a_coord.h.

◆ mode() [2/2]

void a_coord::mode ( const bool  m)
inline

Definition at line 47 of file a_coord.h.

◆ name() [1/2]

std::string a_coord::name ( ) const
inline

Definition at line 42 of file a_coord.h.

+ Here is the caller graph for this function:

◆ name() [2/2]

void a_coord::name ( const std::string &  name)
inline

Definition at line 43 of file a_coord.h.

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

◆ orient() [1/2]

void a_coord::orient ( const a_mat_c o,
const a_mat_c x,
const a_mat_c y 
)

Definition at line 248 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ orient() [2/2]

void a_coord::orient ( const a_point o,
const a_point x,
const a_point y 
)

Definition at line 274 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ R() [1/2]

void a_coord::R ( a_mat_sq r) const

Definition at line 107 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ R() [2/2]

void a_coord::R ( const a_mat_sq r)

Definition at line 114 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ rad()

void a_coord::rad ( )
inline

Definition at line 46 of file a_coord.h.

◆ read()

void a_coord::read ( std::istream &  i)
virtual

convert coordinates from local to world

Reimplemented from a_mat.

Definition at line 291 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ reset()

void a_coord::reset ( )

Definition at line 80 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ rotateX()

void a_coord::rotateX ( double  t)

Definition at line 170 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ rotateXW()

void a_coord::rotateXW ( double  t)

Definition at line 209 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ rotateY()

void a_coord::rotateY ( double  t)

Definition at line 183 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ rotateYW()

void a_coord::rotateYW ( double  t)

Definition at line 222 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ rotateZ()

void a_coord::rotateZ ( double  t)

Definition at line 196 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ rotateZW()

void a_coord::rotateZW ( double  t)

Definition at line 235 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ scale() [1/2]

void a_coord::scale ( double  s)

scale the coordinate system

Definition at line 165 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ scale() [2/2]

void a_coord::scale ( double  sx,
double  sy,
double  sz 
)

Definition at line 158 of file a_coord.cxx.

+ Here is the caller graph for this function:

◆ T() [1/2]

void a_coord::T ( a_mat_c t) const

Definition at line 125 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ T() [2/2]

void a_coord::T ( const a_mat_c t)

Definition at line 133 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ translate() [1/2]

void a_coord::translate ( const a_point p)
inline

translate the coordinate system (translation in local coordinates)

Definition at line 59 of file a_coord.h.

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

◆ translate() [2/2]

void a_coord::translate ( double  dx,
double  dy,
double  dz 
)

reset to the world coordinate system

Definition at line 141 of file a_coord.cxx.

+ Here is the caller graph for this function:

◆ translateW() [1/2]

void a_coord::translateW ( const a_point p)
inline

translate the coordinate system (translation in world coordinates)

Definition at line 61 of file a_coord.h.

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

◆ translateW() [2/2]

void a_coord::translateW ( double  dx,
double  dy,
double  dz 
)

Definition at line 148 of file a_coord.cxx.

◆ w2l()

a_point a_coord::w2l ( const a_point pt) const

Definition at line 334 of file a_coord.cxx.

+ Here is the call graph for this function:

◆ write()

void a_coord::write ( std::ostream &  o) const
virtual

write object to stream: should be overridden by children classes

Reimplemented from a_mat.

Definition at line 308 of file a_coord.cxx.

+ Here is the call graph for this function:

Member Data Documentation

◆ name_

std::string a_coord::name_
protected

Definition at line 87 of file a_coord.h.

◆ pi

const double a_coord::pi = 3.141592653589793238
static

Definition at line 84 of file a_coord.h.

◆ radian_

bool a_coord::radian_
protected

Definition at line 88 of file a_coord.h.


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