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

#include <a_contact.h>

+ Collaboration diagram for a_contact:

Public Member Functions

 a_contact ()
 
 a_contact (const a_contact &c)
 
int nv () const
 get number of vertices More...
 
void av (const a_point p)
 add a vertex More...
 
a_point v (const int i) const
 get a vertex More...
 
a_segment s (const int i) const
 get a segment More...
 
void clean ()
 clean More...
 
void f (const a_wrench &f)
 set force on the face More...
 
a_wrench f () const
 get force on the face More...
 
virtual void read (std::istream &i)
 
virtual void write (std::ostream &o) const
 

Protected Attributes

std::vector< a_point > vertices_
 points defining face More...
 
a_wrench f_
 force on the face More...
 

Friends

std::istream & operator>> (std::istream &i, a_contact &c)
 
std::ostream & operator<< (std::ostream &o, const a_contact &c)
 

Detailed Description

a_contact are the common part between the two contact faces of blocks touching each other

Definition at line 27 of file a_contact.h.

Constructor & Destructor Documentation

◆ a_contact() [1/2]

a_contact::a_contact ( )
inline

Definition at line 30 of file a_contact.h.

◆ a_contact() [2/2]

a_contact::a_contact ( const a_contact c)

Definition at line 22 of file a_contact.cxx.

+ Here is the call graph for this function:

Member Function Documentation

◆ av()

void a_contact::av ( const a_point  p)
inline

add a vertex

Definition at line 35 of file a_contact.h.

+ Here is the caller graph for this function:

◆ clean()

void a_contact::clean ( )

clean

check to see whether there is any aligned segments

Definition at line 36 of file a_contact.cxx.

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

◆ f() [1/2]

a_wrench a_contact::f ( ) const
inline

get force on the face

Definition at line 45 of file a_contact.h.

◆ f() [2/2]

void a_contact::f ( const a_wrench f)
inline

set force on the face

Definition at line 43 of file a_contact.h.

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

◆ nv()

int a_contact::nv ( ) const
inline

get number of vertices

Definition at line 33 of file a_contact.h.

+ Here is the caller graph for this function:

◆ read()

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

Definition at line 69 of file a_contact.cxx.

+ Here is the call graph for this function:

◆ s()

a_segment a_contact::s ( const int  i) const

get a segment

Definition at line 30 of file a_contact.cxx.

+ Here is the call graph for this function:

◆ v()

a_point a_contact::v ( const int  i) const
inline

get a vertex

Definition at line 37 of file a_contact.h.

+ Here is the caller graph for this function:

◆ write()

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

Definition at line 82 of file a_contact.cxx.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const a_contact c 
)
friend

Definition at line 96 of file a_contact.cxx.

◆ operator>>

std::istream& operator>> ( std::istream &  i,
a_contact c 
)
friend

Definition at line 90 of file a_contact.cxx.

Member Data Documentation

◆ f_

a_wrench a_contact::f_
protected

force on the face

Definition at line 56 of file a_contact.h.

◆ vertices_

std::vector<a_point> a_contact::vertices_
protected

points defining face

Definition at line 54 of file a_contact.h.


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