PointCloud2BIM Library  1.0
Library to facilitate the transpormation of point clouds into digital BIM representation
Public Member Functions | List of all members
Wall Class Reference

Public Member Functions

 Wall ()
 Creates empty Wall.
 
int getId () const
 Returns Wall identifier. More...
 
void setId (int id)
 Sets Wall identifier. More...
 
int getFloorId () const
 Returns Floor identifier. More...
 
void setFloorId (int id)
 Sets Floor identifier. More...
 
bool isOuter () const
 Checks if wall is marked as outer. More...
 
void setOuter (bool outer)
 Changes outer flag. More...
 
std::vector< int > & getPlaneIDs ()
 Returns Plane identifiers. More...
 
void setPlaneIDs (std::vector< int > pcl_ids)
 Sets Plane identifiers. More...
 
const std::vector< Plane > & getPlanes () const
 Returns all Planes. More...
 
std::vector< Plane > & getPlanes ()
 Returns all Planes. More...
 
void addPlane (Plane &pc)
 Adds a Plane to the Wall. More...
 
std::vector< int > & getRoomIDs ()
 Returns Room identifiers. More...
 
void setRoomIDs (std::vector< int > pcl_ids)
 Sets Room identifiers. More...
 
const std::vector< Room > & getRooms () const
 Returns all Rooms. More...
 
std::vector< Room > & getRooms ()
 Returns all Rooms. More...
 
void addRoom (Room &room)
 Adds Room to the Wall. More...
 
template<typename T >
void getPoints (std::vector< T > &points)
 Returns all points of the Wall. Iterates over all Planes and pushes its Points into a vector. More...
 

Member Function Documentation

void Wall::addPlane ( Plane pc)
inline

Adds a Plane to the Wall.

Parameters
pcPlane
void Wall::addRoom ( Room room)
inline

Adds Room to the Wall.

Parameters
roomRoom
int Wall::getFloorId ( ) const
inline

Returns Floor identifier.

Returns
Floor identifier
int Wall::getId ( ) const
inline

Returns Wall identifier.

Returns
Wall identifier
std::vector<int>& Wall::getPlaneIDs ( )
inline

Returns Plane identifiers.

Returns
Plane identifiers
const std::vector<Plane>& Wall::getPlanes ( ) const
inline

Returns all Planes.

Returns
Planes
std::vector<Plane>& Wall::getPlanes ( )
inline

Returns all Planes.

Returns
Planes
template<typename T >
void Wall::getPoints ( std::vector< T > &  points)
inline

Returns all points of the Wall. Iterates over all Planes and pushes its Points into a vector.

Template Parameters
TPoint type
Parameters
pointsPoints
std::vector<int>& Wall::getRoomIDs ( )
inline

Returns Room identifiers.

Returns
Room identifiers
const std::vector<Room>& Wall::getRooms ( ) const
inline

Returns all Rooms.

Returns
Rooms
std::vector<Room>& Wall::getRooms ( )
inline

Returns all Rooms.

Returns
Rooms
bool Wall::isOuter ( ) const
inline

Checks if wall is marked as outer.

Returns
True if wall is marked as outer, it probably has just a single plane
False if wall is marked as inner, it probably has 2 planes (or more)
void Wall::setFloorId ( int  id)
inline

Sets Floor identifier.

Parameters
idFloor identifier
void Wall::setId ( int  id)
inline

Sets Wall identifier.

Parameters
idWall identifier
void Wall::setOuter ( bool  outer)
inline

Changes outer flag.

Parameters
outerIs wall outer?
void Wall::setPlaneIDs ( std::vector< int >  pcl_ids)
inline

Sets Plane identifiers.

Parameters
pcl_idsPlane identifiers
void Wall::setRoomIDs ( std::vector< int >  pcl_ids)
inline

Sets Room identifiers.

Parameters
pcl_idsRoom identifiers

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