Flow123d  release_2.2.0-914-gf1a3a4f
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
ngh::TPolygon Class Reference

#include <polygon.h>

Collaboration diagram for ngh::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 30 of file polygon.h.

Constructor & Destructor Documentation

ngh::TPolygon::TPolygon ( )

Definition at line 36 of file polygon.cpp.

ngh::TPolygon::~TPolygon ( )

Definition at line 45 of file polygon.cpp.

Member Function Documentation

void ngh::TPolygon::Add ( const TPoint P)

Definition at line 70 of file polygon.cpp.

Here is the caller graph for this function:

void ngh::TPolygon::ComputeArea ( )
private

Definition at line 160 of file polygon.cpp.

void ngh::TPolygon::ComputeCenter ( )
private

Definition at line 94 of file polygon.cpp.

int ngh::TPolygon::generateId ( )
private

Definition at line 32 of file polygon.cpp.

double ngh::TPolygon::GetArea ( )

Definition at line 85 of file polygon.cpp.

Here is the caller graph for this function:

TPoint ngh::TPolygon::GetCenter ( )

Definition at line 114 of file polygon.cpp.

static int ngh::TPolygon::getNumInstances ( )
inlinestatic

Definition at line 73 of file polygon.h.

int ngh::TPolygon::InsertPosition ( const TVertex Vx)
private

Find position of new vertex

Parameters
VxNew vertex
Returns
position of new vertex

Definition at line 121 of file polygon.cpp.

int ngh::TPolygon::vertexes_count ( )
inline

Get count of vertexes

Definition at line 69 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 55 of file polygon.cpp.

Member Data Documentation

double ngh::TPolygon::area
private

Definition at line 35 of file polygon.h.

bool ngh::TPolygon::area_is_actual
private

Definition at line 38 of file polygon.h.

TPoint ngh::TPolygon::center
private

Definition at line 36 of file polygon.h.

bool ngh::TPolygon::center_is_actual
private

Definition at line 39 of file polygon.h.

int ngh::TPolygon::id
private

Definition at line 33 of file polygon.h.

TVector ngh::TPolygon::normal_vector
private

Definition at line 37 of file polygon.h.

int ngh::TPolygon::numberInstance = 0
staticprivate

Definition at line 32 of file polygon.h.

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

Definition at line 41 of file polygon.h.


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