Flow123d  jenkins-Flow123d-windows32-release-multijob-51
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 11 of file polygon.h.

Constructor & Destructor Documentation

TPolygon::TPolygon ( )

Definition at line 16 of file polygon.cpp.

TPolygon::~TPolygon ( )

Definition at line 25 of file polygon.cpp.

Member Function Documentation

void TPolygon::Add ( const TPoint P)

Definition at line 50 of file polygon.cpp.

Here is the caller graph for this function:

void TPolygon::ComputeArea ( )
private

Definition at line 140 of file polygon.cpp.

void TPolygon::ComputeCenter ( )
private

Definition at line 74 of file polygon.cpp.

int TPolygon::generateId ( )
private

Definition at line 12 of file polygon.cpp.

double TPolygon::GetArea ( )

Definition at line 65 of file polygon.cpp.

Here is the caller graph for this function:

TPoint TPolygon::GetCenter ( )

Definition at line 94 of file polygon.cpp.

static int TPolygon::getNumInstances ( )
inlinestatic

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

int TPolygon::vertexes_count ( )
inline

Get count of vertexes

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

Member Data Documentation

double TPolygon::area
private

Definition at line 16 of file polygon.h.

bool TPolygon::area_is_actual
private

Definition at line 19 of file polygon.h.

TPoint TPolygon::center
private

Definition at line 17 of file polygon.h.

bool TPolygon::center_is_actual
private

Definition at line 20 of file polygon.h.

int TPolygon::id
private

Definition at line 14 of file polygon.h.

TVector TPolygon::normal_vector
private

Definition at line 18 of file polygon.h.

int TPolygon::numberInstance = 0
staticprivate

Definition at line 13 of file polygon.h.

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

Definition at line 22 of file polygon.h.


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