AURobotServers  4
Public Member Functions | Public Attributes | List of all members
UAvoidVertexIdx Class Reference

Public Member Functions

void extent4thPnt (U2Dpos pos)
 
UAvoidObstgetOther (UAvoidObst *notThis)
 
int getPktType ()
 
int getPktType1 ()
 
int getPktType2 ()
 
UAvoidObstgetUpper ()
 
void set (UAvoidObst *ob1, UAvoidObst *ob2, int idx, UPosition pkt, int vType)
 
void set (UAvoidObst *ob1, UAvoidObst *ob2, int idx, UPosition pkt)
 

Public Attributes

UAvoidObstobst
 obstacle More...
 
UAvoidObstobst2
 other obstacle if this is an intersection More...
 
int oIdx
 index into obstacle (negative if an intersection) More...
 
U2Dpos pos
 point position for the cell generation More...
 
int type
 

Detailed Description


Copyright (C) 2010 by DTU (Christian Andersen) jca@e.nosp@m.lekt.nosp@m.ro.dt.nosp@m.u.dk

Member Function Documentation

void UAvoidVertexIdx::extent4thPnt ( U2Dpos  pos)
inline
UAvoidObst* UAvoidVertexIdx::getOther ( UAvoidObst notThis)
inline

Get upper obstacle to the right of junction Get upper obstacle to the right of junction

References obst, and obst2.

Referenced by UAvoidCellGraph::makeCells().

int UAvoidVertexIdx::getPktType ( )
inline

Get point type -1 : undetermined, but one of 4..7 0 : left extreme (minimum x) 1 : right extreme (max x) 2 : upper point 3 : lower point. 4 : intersection close 5 : intersection open 6 : intersection upper 7 : intersection lower

Returns
point type

References getPktType1(), and getPktType2().

Referenced by UAvoidCellGraph::makeCells(), and UAvoidCellGraph::printVetrexList().

int UAvoidVertexIdx::getPktType1 ( )
inline

Get type if obstacle vertex.

References UPolygon::getPoint(), UPolygon::getPointsCnt(), UAvoidObst::obst, type, U2Dpos::x, and UPosition::x.

Referenced by getPktType(), and set().

int UAvoidVertexIdx::getPktType2 ( )
inline

get type, if point is an intersection

References UPolygon::getDistance(), UPolygon::getSegment(), UAvoidObst::obst, pos, type, ULine::vec, U2Dpos::x, UPosition::x, U2Dpos::y, and UPosition::y.

Referenced by getPktType().

UAvoidObst* UAvoidVertexIdx::getUpper ( )
inline

Get upper obstacle to the right of an opening junction, with increasing x

References UPolygon::getDistance(), UPolygon::getSegment(), obst, UAvoidObst::obst, obst2, ULine::vec, U2Dpos::x, UPosition::x, and U2Dpos::y.

Referenced by UAvoidCellGraph::makeCells().

void UAvoidVertexIdx::set ( UAvoidObst ob1,
UAvoidObst ob2,
int  idx,
UPosition  pkt,
int  vType 
)
inline

Set all values in vertex point

Referenced by UAvoidCellGraph::fillVerticeList().

void UAvoidVertexIdx::set ( UAvoidObst ob1,
UAvoidObst ob2,
int  idx,
UPosition  pkt 
)
inline

Set all values in vertex point

References getPktType1().

Member Data Documentation

UAvoidObst* UAvoidVertexIdx::obst
UAvoidObst* UAvoidVertexIdx::obst2
int UAvoidVertexIdx::oIdx

index into obstacle (negative if an intersection)

Referenced by UAvoidCellGraph::fillVerticeList(), and UAvoidCellGraph::printVetrexList().

U2Dpos UAvoidVertexIdx::pos

point position for the cell generation

no-visibility line index (as registred in obst) when >= 0 then obst is the source object and obst2 is the obst with the cross-point

Referenced by UAvoidCellGraph::fillVerticeList(), UAvoidCellGraph::findBestCellPath(), getPktType2(), UAvoidCellGraph::makeCells(), UAvoidCellGraph::printObstacleList(), and UAvoidCellGraph::printVetrexList().

int UAvoidVertexIdx::type

vertex type 0 : left extreme (minimum x) 1 : right extreme (max x) 2 : upper point 3 : lower point. 4 : intersection close 5 : intersection open 6 : intersection upper 7 : intersection lower 8 : error

Referenced by UAvoidCellGraph::fillVerticeList(), getPktType1(), getPktType2(), UAvoidCellGraph::makeCells(), and UAvoidCellGraph::printVetrexList().


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