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

#include <edge.h>

Public Member Functions

 Edge (kjb_c::Edge *edge)
 
 ~Edge ()
 
 Edge (const Edge &edge)
 
Edgeoperator= (const Edge &edge)
 
unsigned int get_num_points () const
 returns the number of edge points in this edge More...
 
Edge_point get_edge_point (unsigned int i) const
 returns the ith edge point of this edge More...
 
const kjb_c::Edge * _c_ptr () const
 returns a const pointer to the c Edge structure More...
 
void draw (Image &img, float r, float g, float b) const
 draws the edge onto the input image, using color (r,g,b). This funcstion expects color values between 0 and 255 More...
 
void randomly_color (Image &img) const
 draws the edge onto the input image, using a random color More...
 

Detailed Description

wraps the c structure Edge. No memory allocation is handled in here, this class simply provides a c++ interface to the underlying c structure

Constructor & Destructor Documentation

kjb::Edge::Edge ( kjb_c::Edge *  edge)
inline
kjb::Edge::~Edge ( )
inline
kjb::Edge::Edge ( const Edge edge)
inline

Member Function Documentation

const kjb_c::Edge* kjb::Edge::_c_ptr ( ) const
inline

returns a const pointer to the c Edge structure

void kjb::Edge::draw ( Image img,
float  r,
float  g,
float  b 
) const
inline

draws the edge onto the input image, using color (r,g,b). This funcstion expects color values between 0 and 255

Edge_point kjb::Edge::get_edge_point ( unsigned int  i) const
inline

returns the ith edge point of this edge

unsigned int kjb::Edge::get_num_points ( ) const
inline

returns the number of edge points in this edge

Edge& kjb::Edge::operator= ( const Edge edge)
inline
void kjb::Edge::randomly_color ( Image img) const
inline

draws the edge onto the input image, using a random color


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