TM2IN  0.5.1
Public Member Functions | Public Attributes | Friends | List of all members
TM2IN::Vertex Class Reference

Vertex imply one coordinate in 3-D indoor space. More...

#include <Vertex.h>

Inheritance diagram for TM2IN::Vertex:
Inheritance graph
[legend]

Public Member Functions

 Vertex ()
 Empty Vertex constructor. More...
 
 Vertex (double px, double py, double pz)
 Constructor with three double values. More...
 
 Vertex (Vertex &vt)
 Copy constructor. More...
 
 ~Vertex ()
 Destructor. More...
 
double x ()
 Gets x value. More...
 
double y ()
 Gets y value. More...
 
double z ()
 Gets z value. More...
 
void setX (double value)
 Sets x value. More...
 
void setY (double value)
 Sets y value. More...
 
void setZ (double value)
 Sets z value. More...
 
void setCoords (double x, double y, double z)
 Sets coordinate with three float values. More...
 
double operator[] (int idx)
 Operator [] to access each value. More...
 
void translate (double diff[])
 Translate coordinate values with difference. More...
 
void translateTo (std::vector< double > dest)
 Move Vertex to destination. More...
 
std::string asJsonText ()
 Generates json string. More...
 
Kernel::Point_3 CGAL_point ()
 Converts to Kernel::Point_3. More...
 
- Public Member Functions inherited from TM2IN::IndoorComponent
 IndoorComponent ()
 
double getArea ()
 Returns area. More...
 
void setArea (double _area)
 Sets area. More...
 
MinimumBoundingBoxgetMBB ()
 Returns minimum bounding box. More...
 
void setMBB (MinimumBoundingBox *_mbb)
 Sets minimum bounding box. More...
 
virtual void updateMBB ()
 Updates MinimumBoundingBox. More...
 
virtual void mergeMBB (IndoorComponent *gm)
 Merges with the other IndoorComponent. More...
 

Public Attributes

double coords [3]
 
- Public Attributes inherited from TM2IN::IndoorComponent
std::string geom_id
 

Friends

std::ostream & operator<< (std::ostream &ou, Vertex *pVertex)
 Operator << : print string. More...
 

Additional Inherited Members

- Protected Attributes inherited from TM2IN::IndoorComponent
MinimumBoundingBoxmbb
 
TM2IN::IND_TYPE type
 
double area = 0.0
 

Detailed Description

Vertex imply one coordinate in 3-D indoor space.

Constructor & Destructor Documentation

TM2IN::Vertex::Vertex ( )
inline

Empty Vertex constructor.

TM2IN::Vertex::Vertex ( double  px,
double  py,
double  pz 
)

Constructor with three double values.

TM2IN::Vertex::Vertex ( Vertex vt)

Copy constructor.

TM2IN::Vertex::~Vertex ( )
inline

Destructor.

Member Function Documentation

std::string TM2IN::Vertex::asJsonText ( )
virtual

Generates json string.

Reimplemented from TM2IN::IndoorComponent.

Kernel::Point_3 TM2IN::Vertex::CGAL_point ( )

Converts to Kernel::Point_3.

double TM2IN::Vertex::operator[] ( int  idx)
inline

Operator [] to access each value.

void TM2IN::Vertex::setCoords ( double  x,
double  y,
double  z 
)

Sets coordinate with three float values.

void TM2IN::Vertex::setX ( double  value)
inline

Sets x value.

void TM2IN::Vertex::setY ( double  value)
inline

Sets y value.

void TM2IN::Vertex::setZ ( double  value)
inline

Sets z value.

void TM2IN::Vertex::translate ( double  diff[])

Translate coordinate values with difference.

void TM2IN::Vertex::translateTo ( std::vector< double >  dest)

Move Vertex to destination.

double TM2IN::Vertex::x ( )
inline

Gets x value.

double TM2IN::Vertex::y ( )
inline

Gets y value.

double TM2IN::Vertex::z ( )
inline

Gets z value.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ou,
Vertex pVertex 
)
friend

Operator << : print string.

Member Data Documentation

double TM2IN::Vertex::coords[3]

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