Public Member Functions | Public Attributes | Protected Member Functions

EM::RandomLineByShiftGenerator Class Reference

Creates random line from another by shifting it. More...

List of all members.

Public Member Functions

 RandomLineByShiftGenerator (const Geometry::RandomLineSet &rls, float d=1, int s=0)
void generate (Geometry::RandomLineSet &, int linenr_in_inp_set=0) const
 , -1=left, 0=both, 1=right

Public Attributes

const Geometry::RandomLineSetrls_
float dist_
int side_

Protected Member Functions

void crLine (const Geometry::RandomLine &, bool, Geometry::RandomLineSet &) const
bool getShifted (Coord, Coord, Coord &, Coord &, bool) const
bool getIntersection (Coord, Coord, Coord, Coord, Coord &) const

Detailed Description

Creates random line from another by shifting it.


Constructor & Destructor Documentation

EM::RandomLineByShiftGenerator::RandomLineByShiftGenerator ( const Geometry::RandomLineSet rls,
float  d = 1,
int  s = 0 
) [inline]

Member Function Documentation

void EM::RandomLineByShiftGenerator::crLine ( const Geometry::RandomLine ,
bool  ,
Geometry::RandomLineSet  
) const [protected]
void EM::RandomLineByShiftGenerator::generate ( Geometry::RandomLineSet ,
int  linenr_in_inp_set = 0 
) const

, -1=left, 0=both, 1=right

bool EM::RandomLineByShiftGenerator::getIntersection ( Coord  ,
Coord  ,
Coord  ,
Coord  ,
Coord  
) const [protected]
bool EM::RandomLineByShiftGenerator::getShifted ( Coord  ,
Coord  ,
Coord ,
Coord ,
bool   
) const [protected]

Member Data Documentation