Flow123d  release_2.2.0-23-g01927c6
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
TPolygon Class Reference

#include <polygon.h>

Collaboration diagram for TPolygon:
Collaboration graph
[legend]

Public Member Functions

 TPolygon ()
 
 ~TPolygon ()
 
void Add (const TPoint &)
 
double GetArea ()
 
TPoint GetCenter ()
 
int vertexes_count ()
 

Static Public Member Functions

static int getNumInstances ()
 

Private Member Functions

int generateId ()
 
void ComputeCenter ()
 
void ComputeArea ()
 
int InsertPosition (const TVertex &Vx)
 

Private Attributes

int id
 
double area
 
TPoint center
 
TVector normal_vector
 
bool area_is_actual
 
bool center_is_actual
 
std::vector< TVertex * > verteces
 

Static Private Attributes

static int numberInstance = 0
 

Friends

std::ostream & operator<< (std::ostream &, const TPolygon &)
 

Detailed Description

Definition at line 28 of file polygon.h.

Constructor & Destructor Documentation

TPolygon::TPolygon ( )

Definition at line 33 of file polygon.cpp.

TPolygon::~TPolygon ( )

Definition at line 42 of file polygon.cpp.

Member Function Documentation

void TPolygon::Add ( const TPoint P)

Definition at line 67 of file polygon.cpp.

Here is the caller graph for this function:

void TPolygon::ComputeArea ( )
private

Definition at line 157 of file polygon.cpp.

void TPolygon::ComputeCenter ( )
private

Definition at line 91 of file polygon.cpp.

int TPolygon::generateId ( )
private

Definition at line 29 of file polygon.cpp.

double TPolygon::GetArea ( )

Definition at line 82 of file polygon.cpp.

Here is the caller graph for this function:

TPoint TPolygon::GetCenter ( )

Definition at line 111 of file polygon.cpp.

static int TPolygon::getNumInstances ( )
inlinestatic

Definition at line 71 of file polygon.h.

int TPolygon::InsertPosition ( const TVertex Vx)
private

Find position of new vertex

Parameters
VxNew vertex
Returns
position of new vertex

Definition at line 118 of file polygon.cpp.

int TPolygon::vertexes_count ( )
inline

Get count of vertexes

Definition at line 67 of file polygon.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const TPolygon p 
)
friend

Definition at line 52 of file polygon.cpp.

Member Data Documentation

double TPolygon::area
private

Definition at line 33 of file polygon.h.

bool TPolygon::area_is_actual
private

Definition at line 36 of file polygon.h.

TPoint TPolygon::center
private

Definition at line 34 of file polygon.h.

bool TPolygon::center_is_actual
private

Definition at line 37 of file polygon.h.

int TPolygon::id
private

Definition at line 31 of file polygon.h.

TVector TPolygon::normal_vector
private

Definition at line 35 of file polygon.h.

int TPolygon::numberInstance = 0
staticprivate

Definition at line 30 of file polygon.h.

std::vector<TVertex*> TPolygon::verteces
private

Definition at line 39 of file polygon.h.


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