KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Friends | List of all members
kjb::Manhattan_corner_segment Class Reference

#include <manhattan_world.h>

Public Member Functions

 Manhattan_corner_segment (const Manhattan_segment &isegment, double idist=0.0, double iperp_dist=0.0)
 
 Manhattan_corner_segment (const Manhattan_corner_segment &src)
 
 ~Manhattan_corner_segment ()
 
const Manhattan_segmentget_manhattan_segment () const
 
const Edge_segmentget_edge_segment () const
 
double get_fitting_error () const
 
double get_strength () const
 
double get_distance () const
 
double get_perpendicular_distance () const
 
double compute_penalty () const
 

Friends

std::ostream & operator<< (std::ostream &out, const Manhattan_corner_segment &mcs)
 

Constructor & Destructor Documentation

kjb::Manhattan_corner_segment::Manhattan_corner_segment ( const Manhattan_segment isegment,
double  idist = 0.0,
double  iperp_dist = 0.0 
)
inline
kjb::Manhattan_corner_segment::Manhattan_corner_segment ( const Manhattan_corner_segment src)
inline
kjb::Manhattan_corner_segment::~Manhattan_corner_segment ( )
inline

Member Function Documentation

double Manhattan_corner_segment::compute_penalty ( ) const
double kjb::Manhattan_corner_segment::get_distance ( ) const
inline

returns the distance between the corner position and the line_segment closest point. We allow line segments that do not intersect exactly to form a corner

const Edge_segment& kjb::Manhattan_corner_segment::get_edge_segment ( ) const
inline
double kjb::Manhattan_corner_segment::get_fitting_error ( ) const
inline
const Manhattan_segment& kjb::Manhattan_corner_segment::get_manhattan_segment ( ) const
inline
double kjb::Manhattan_corner_segment::get_perpendicular_distance ( ) const
inline

returns the perpendicular distance between the corner position and the line the line_segment lies on. This is zero is the corner position lies on this line

double kjb::Manhattan_corner_segment::get_strength ( ) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Manhattan_corner_segment mcs 
)
friend

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