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

a tetrahedron More...

#include <a_tetrahedron.h>

+ Inheritance diagram for a_tetrahedron:
+ Collaboration diagram for a_tetrahedron:

Public Member Functions

 a_tetrahedron (const a_point &p1, const a_point &p2, const a_point &p3, const a_point &p4)
 
 a_tetrahedron (const a_tetrahedron &p)
 
virtual const std::string classname ()
 
a_point p1 () const
 
a_point p2 () const
 
a_point p3 () const
 
a_point p4 () const
 
a_point operator[] (const int i) const
 
a_point p (const int ref) const
 
void p1 (const a_point &v)
 
void p2 (const a_point &v)
 
void p3 (const a_point &v)
 
void p4 (const a_point &v)
 
void set (const a_point &p1, const a_point &p2, const a_point &p3, const a_point &p4)
 
a_segment s (const int ref) const
 get segment i (0-3) of tetrahedron More...
 
a_triangle f (const int ref) const
 
a_point c () const
 get centre of gravity More...
 
a_tetrahedrontranslate (double x, double y, double z)
 
a_tetrahedronrotate (const a_point &x_axis, const a_point &y_axis, const a_point &z_axis)
 
double V () const
 get volume More...
 
double S () const
 get surface More...
 
bool contains (const a_point &p) const
 check whether point lies inside triangle More...
 
double quality () const
 quality: ratio between smaller and bigger segment More...
 
bool operator== (const a_tetrahedron &p)
 
a_tetrahedronoperator= (const a_tetrahedron &p)
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) 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_geom_base
static const std::string help ()
 
- Static Public Member Functions inherited from a_base
static const std::string help ()
 

Protected Attributes

a_point p_ [4]
 
- Protected Attributes inherited from a_base
double verysmall_
 

Detailed Description

a tetrahedron

Author
P.Smars
Date
2016

Definition at line 30 of file a_tetrahedron.h.

Constructor & Destructor Documentation

◆ a_tetrahedron() [1/2]

a_tetrahedron::a_tetrahedron ( const a_point p1,
const a_point p2,
const a_point p3,
const a_point p4 
)
inline

Definition at line 33 of file a_tetrahedron.h.

+ Here is the call graph for this function:

◆ a_tetrahedron() [2/2]

a_tetrahedron::a_tetrahedron ( const a_tetrahedron p)
inline

Definition at line 34 of file a_tetrahedron.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ c()

a_point a_tetrahedron::c ( ) const
inline

get centre of gravity

Definition at line 57 of file a_tetrahedron.h.

+ Here is the caller graph for this function:

◆ classname()

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

return class name: should be overridden by children classes

Reimplemented from a_geom_base.

Definition at line 36 of file a_tetrahedron.h.

◆ contains()

bool a_tetrahedron::contains ( const a_point p) const

check whether point lies inside triangle

Definition at line 138 of file a_tetrahedron.cxx.

+ Here is the call graph for this function:

◆ f()

a_triangle a_tetrahedron::f ( const int  ref) const

Definition at line 76 of file a_tetrahedron.cxx.

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

◆ help()

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

Definition at line 24 of file a_tetrahedron.cxx.

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

◆ operator=()

a_tetrahedron & a_tetrahedron::operator= ( const a_tetrahedron p)

Definition at line 57 of file a_tetrahedron.cxx.

+ Here is the call graph for this function:

◆ operator==()

bool a_tetrahedron::operator== ( const a_tetrahedron p)

Definition at line 49 of file a_tetrahedron.cxx.

+ Here is the call graph for this function:

◆ operator[]()

a_point a_tetrahedron::operator[] ( const int  i) const
inline

Definition at line 43 of file a_tetrahedron.h.

◆ p()

a_point a_tetrahedron::p ( const int  ref) const
inline

Definition at line 44 of file a_tetrahedron.h.

+ Here is the caller graph for this function:

◆ p1() [1/2]

a_point a_tetrahedron::p1 ( ) const
inline

Definition at line 39 of file a_tetrahedron.h.

+ Here is the caller graph for this function:

◆ p1() [2/2]

void a_tetrahedron::p1 ( const a_point v)
inline

Definition at line 47 of file a_tetrahedron.h.

◆ p2() [1/2]

a_point a_tetrahedron::p2 ( ) const
inline

Definition at line 40 of file a_tetrahedron.h.

+ Here is the caller graph for this function:

◆ p2() [2/2]

void a_tetrahedron::p2 ( const a_point v)
inline

Definition at line 48 of file a_tetrahedron.h.

◆ p3() [1/2]

a_point a_tetrahedron::p3 ( ) const
inline

Definition at line 41 of file a_tetrahedron.h.

+ Here is the caller graph for this function:

◆ p3() [2/2]

void a_tetrahedron::p3 ( const a_point v)
inline

Definition at line 49 of file a_tetrahedron.h.

◆ p4() [1/2]

a_point a_tetrahedron::p4 ( ) const
inline

Definition at line 42 of file a_tetrahedron.h.

+ Here is the caller graph for this function:

◆ p4() [2/2]

void a_tetrahedron::p4 ( const a_point v)
inline

Definition at line 50 of file a_tetrahedron.h.

◆ quality()

double a_tetrahedron::quality ( ) const

quality: ratio between smaller and bigger segment

Definition at line 151 of file a_tetrahedron.cxx.

+ Here is the call graph for this function:

◆ read()

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

read object from stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 169 of file a_tetrahedron.cxx.

◆ rotate()

a_tetrahedron & a_tetrahedron::rotate ( const a_point x_axis,
const a_point y_axis,
const a_point z_axis 
)

Definition at line 118 of file a_tetrahedron.cxx.

+ Here is the caller graph for this function:

◆ S()

double a_tetrahedron::S ( ) const

get surface

Definition at line 130 of file a_tetrahedron.cxx.

+ Here is the call graph for this function:

◆ s()

a_segment a_tetrahedron::s ( const int  ref) const

get segment i (0-3) of tetrahedron

Definition at line 64 of file a_tetrahedron.cxx.

+ Here is the caller graph for this function:

◆ set()

void a_tetrahedron::set ( const a_point p1,
const a_point p2,
const a_point p3,
const a_point p4 
)
inline

Definition at line 51 of file a_tetrahedron.h.

+ Here is the call graph for this function:

◆ translate()

a_tetrahedron & a_tetrahedron::translate ( double  x,
double  y,
double  z 
)

Definition at line 111 of file a_tetrahedron.cxx.

+ Here is the caller graph for this function:

◆ V()

double a_tetrahedron::V ( ) const

get volume

Definition at line 125 of file a_tetrahedron.cxx.

+ Here is the call graph for this function:

◆ write()

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

write object to stream: should be overridden by children classes

Reimplemented from a_base.

Definition at line 175 of file a_tetrahedron.cxx.

Member Data Documentation

◆ p_

a_point a_tetrahedron::p_[4]
protected

Definition at line 76 of file a_tetrahedron.h.


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