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

#include <HalfEdge.h>

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

Public Member Functions

 HalfEdge ()
 Empty HalfEdge constructor. More...
 
 HalfEdge (Vertex *pa, Vertex *pb, Wall::Surface *pSurface)
 HalfEdge constructor. More...
 
Wall::SurfacegetParent () const
 Returns parent Surface. More...
 
void setParent (Wall::Surface *pSurface)
 Sets parent Surface. More...
 
HalfEdgegetOppositeEdge () const
 Returns opposite HalfEdge. More...
 
void setOppositeEdge (HalfEdge *oppositeEdge)
 Sets opposite HalfEdge. More...
 
void setVertex (int i, Vertex *vt)
 Sets the i-th Vertex. More...
 
bool isSame (HalfEdge *)
 Checks whether it is same edge. More...
 
bool can_be_opposite_edge (HalfEdge *)
 Checks whether the other has possible opposite edge. More...
 
Vertexoperator[] (int idx)
 
Kernel::Segment_3 to_CGAL_segment ()
 Converts to Kernel::Segment_3. More...
 
std::string asJsonText ()
 Returns json string. 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

std::vector< Vertex * > vertices
 
Wall::Surfaceparent = NULL
 
HalfEdgeoppositeEdge = NULL
 
- Public Attributes inherited from TM2IN::IndoorComponent
std::string geom_id
 

Additional Inherited Members

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

Constructor & Destructor Documentation

TM2IN::HalfEdge::HalfEdge ( )
inline

Empty HalfEdge constructor.

TM2IN::HalfEdge::HalfEdge ( Vertex pa,
Vertex pb,
Wall::Surface pSurface 
)
inline

HalfEdge constructor.

Member Function Documentation

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

Returns json string.

Reimplemented from TM2IN::IndoorComponent.

bool TM2IN::HalfEdge::can_be_opposite_edge ( HalfEdge he)

Checks whether the other has possible opposite edge.

HalfEdge * TM2IN::HalfEdge::getOppositeEdge ( ) const

Returns opposite HalfEdge.

Wall::Surface * TM2IN::HalfEdge::getParent ( ) const

Returns parent Surface.

bool TM2IN::HalfEdge::isSame ( HalfEdge he)

Checks whether it is same edge.

Vertex* TM2IN::HalfEdge::operator[] ( int  idx)
inline
void TM2IN::HalfEdge::setOppositeEdge ( HalfEdge oppositeEdge)

Sets opposite HalfEdge.

void TM2IN::HalfEdge::setParent ( Wall::Surface pSurface)

Sets parent Surface.

void TM2IN::HalfEdge::setVertex ( int  i,
Vertex vt 
)

Sets the i-th Vertex.

Kernel::Segment_3 TM2IN::HalfEdge::to_CGAL_segment ( )

Converts to Kernel::Segment_3.

Member Data Documentation

HalfEdge* TM2IN::HalfEdge::oppositeEdge = NULL
Wall::Surface* TM2IN::HalfEdge::parent = NULL
std::vector<Vertex *> TM2IN::HalfEdge::vertices

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