Public Member Functions | Static Public Member Functions | Public Attributes
Arc Class Reference

#include <Arc.hpp>

List of all members.

Public Member Functions

 Arc ()
 Returns a new *Arc* object.
 Arc (Tag *from_tag, double from_twist, double distance, Tag *to_tag, double to_twist, double goodness)
 Create and return a new *Arc* object.
void svg_write (SVG *svg)
 Draws *arc* into *svg*.
void update (double distance, double angle, double twist, double goodness)
 Updates the contents of *arc*.
void write (File out_file)
 Write *arc* out to *out_file* in XML format.

Static Public Member Functions

static bool distance_less (Arc *arc1, Arc *arc2)
 Return the distance sort order of *arc1* vs. *arc2*.
static bool equal (Arc *arc1, Arc *arc2)
 Return the sort order of *arc1* vs. *arc2*.
static bool less (Arc *arc1, Arc *arc2)
static Arcread (File out_file, Map map)
 Read in an XML <Arc.../> tag from *in_file*.

Public Attributes

double angle
 The angle in radians from the *origin* center parallel to the bottom edge to the line that connects the *origin* and *target* centers.
double distance
 The distance between the *from* and *to*.
Tagfrom_tag
 The from *Tag*.
double from_twist
 The amount *from_tag* is twisted from distance line segment.
double goodness
 Distance between camera center and line connecting both tags.
bool in_tree
 Set to true if this *Arc* is part of the map tree.
Tagto_tag
 The to *Tag* (has larger id than *from*).
double to_twist
 The amount *to_tag* is twisted from distance line segment.
unsigned int visit
 The visit number for the arc.

Detailed Description

Definition at line 52 of file Arc.hpp.


Constructor & Destructor Documentation

Arc::Arc ( )

Returns a new *Arc* object.

Returns:
new *Arc* object.

Arc__new*() will return a new *Arc*.

Definition at line 108 of file Arc.cpp.

Arc::Arc ( Tag from_tag,
double  from_twist,
double  distance,
Tag to_tag,
double  to_twist,
double  goodness 
)

Create and return a new *Arc* object.

Parameters:
from_tagis the tag with the lower id.
from_twistis the amount the *from_tag* is twisted in radians.
distancebetween the tags.
to_tagis the tag with the higher id.
to_twistis the amount *to_tag* is twisted in radians.
goodnessis the distance from camera center to tag point center.
Returns:
new *Arc* object

Arc__create*() will create and return arc a new *Arc* object that contains *from_tag*, *from_twist*, *distance*, *to_tag*, *to_twist*, and *goodness*.

Definition at line 49 of file Arc.cpp.


Member Function Documentation

bool Arc::distance_less ( Arc arc1,
Arc arc2 
) [static]

Return the distance sort order of *arc1* vs. *arc2*.

Parameters:
arc1is the first *Arc* object.
arc2is the second *Arc* object.
Returns:
true or false depending upon distance sort order.

Arc__distance_compare*() will return true if the *arc1* distance is larger than the *arc2* distance, otherwise false

Definition at line 85 of file Arc.cpp.

bool Arc::equal ( Arc arc1,
Arc arc2 
) [static]

Return the sort order of *arc1* vs. *arc2*.

Parameters:
arc1is the first *Arc* object.
arc2is the first *Arc* object.
Returns:
-1, 0, or 1 depending upon sort order.

Arc__compare*() will return -1 if *arc1* sorts before *arc2*, 0 if they are equal, and 1 if *arc1* sorts after *arc2*.

Definition at line 21 of file Arc.cpp.

bool Arc::less ( Arc arc1,
Arc arc2 
) [static]

Definition at line 27 of file Arc.cpp.

Arc * Arc::read ( File  in_file,
Map  map 
) [static]

Read in an XML <Arc.../> tag from *in_file*.

Parameters:
in_fileis the file to read from.
mapis contains the Tag associations.
Returns:
new *Arc* object.

Arc__read*() will read in a <Arc.../> tag from *in_file* and return the resulting *Arc* object. *Tag* objects all looked up using *map*.

Definition at line 128 of file Arc.cpp.

void Arc::svg_write ( SVG svg)

Draws *arc* into *svg*.

Parameters:
arcis the *Arc* to draw.
svgis the *SVG* object to draw it into.

Arc__svg_write*() will draw *arc* into *svg*.

Definition at line 170 of file Arc.cpp.

void Arc::update ( double  from_twist,
double  distance,
double  to_twist,
double  goodness 
)

Updates the contents of *arc*.

Parameters:
arcto update.
from_twistis the amount the from tag is twisted in radians.
distancebetween the two tag centers.
to_twistis the amount the to tag is twisted in radians.
goodnessthe distence between the camera center and center point between the two tag centers.

Arc__update*() will load *from_twist*, *distance*, *to_twist*, and goodness* into *arc*.

Definition at line 189 of file Arc.cpp.

void Arc::write ( File  out_file)

Write *arc* out to *out_file* in XML format.

Parameters:
arcto be written out.
out_fileto write ot.

Arc__write*() will write *arc* out to *out_file* as an <Arc .../> tag.

Definition at line 207 of file Arc.cpp.


Member Data Documentation

double Arc::angle

The angle in radians from the *origin* center parallel to the bottom edge to the line that connects the *origin* and *target* centers.

Definition at line 56 of file Arc.hpp.

double Arc::distance

The distance between the *from* and *to*.

Definition at line 59 of file Arc.hpp.

The from *Tag*.

Definition at line 62 of file Arc.hpp.

The amount *from_tag* is twisted from distance line segment.

Definition at line 65 of file Arc.hpp.

double Arc::goodness

Distance between camera center and line connecting both tags.

Definition at line 68 of file Arc.hpp.

Set to true if this *Arc* is part of the map tree.

Definition at line 71 of file Arc.hpp.

The to *Tag* (has larger id than *from*).

Definition at line 74 of file Arc.hpp.

double Arc::to_twist

The amount *to_tag* is twisted from distance line segment.

Definition at line 77 of file Arc.hpp.

unsigned int Arc::visit

The visit number for the arc.

Definition at line 80 of file Arc.hpp.


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


fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Jun 6 2019 18:08:04