|
Hugintrunk
0.1
|
A class to store information about each line that will be drawn. More...
Public Member Functions | |
| LineDetails () | |
| void | draw (bool highlight) |
| Draw a line in the preview for this pair of images. More... | |
| float | getDistance (hugin_utils::FDiff2D point) |
| Get the square of the distance from the arc to some panorama coordinate. More... | |
Public Attributes | |
| unsigned int | image1 |
| index of images for this line More... | |
| unsigned int | image2 |
| unsigned int | numberOfControlPoints |
| the number of control points between these images More... | |
| double | worstError |
| the error of the control point with the greatest error between these images More... | |
| double | totalError |
| the total of all the control point errors between these images More... | |
| bool | dud |
| false if the line should be used, true if it shouldn't. More... | |
| GreatCircleArc | arc |
A class to store information about each line that will be drawn.
Definition at line 105 of file PreviewLayoutLinesTool.h.
| PreviewLayoutLinesTool::LineDetails::LineDetails | ( | ) |
Definition at line 605 of file PreviewLayoutLinesTool.cpp.
| void PreviewLayoutLinesTool::LineDetails::draw | ( | bool | highlight | ) |
Draw a line in the preview for this pair of images.
If the line is a dud, no line is drawn.
| highlight | Prelight for nearest line. Draws the line white when true, otherwise use a colour based on error. |
Definition at line 578 of file PreviewLayoutLinesTool.cpp.
References arc, hugin_utils::ControlPointErrorColour(), GreatCircleArc::draw(), dud, numberOfControlPoints, and worstError.
| float PreviewLayoutLinesTool::LineDetails::getDistance | ( | hugin_utils::FDiff2D | point | ) |
Get the square of the distance from the arc to some panorama coordinate.
The point is normally the mouse location in the panorama.
Definition at line 613 of file PreviewLayoutLinesTool.cpp.
| GreatCircleArc PreviewLayoutLinesTool::LineDetails::arc |
Definition at line 123 of file PreviewLayoutLinesTool.h.
Referenced by draw(), and PreviewLayoutLinesTool::updateLineInformation().
| bool PreviewLayoutLinesTool::LineDetails::dud |
false if the line should be used, true if it shouldn't.
A dud image is not drawn, and should never be the nearest line to the mouse.
Definition at line 121 of file PreviewLayoutLinesTool.h.
Referenced by draw(), and PreviewLayoutLinesTool::updateLineInformation().
| unsigned int PreviewLayoutLinesTool::LineDetails::image1 |
index of images for this line
Definition at line 109 of file PreviewLayoutLinesTool.h.
Referenced by PreviewLayoutLinesTool::BeforeDrawImageEvent(), PreviewLayoutLinesTool::MouseButtonEvent(), PreviewLayoutLinesTool::MouseMoveEvent(), and PreviewLayoutLinesTool::updateLineInformation().
| unsigned int PreviewLayoutLinesTool::LineDetails::image2 |
Definition at line 109 of file PreviewLayoutLinesTool.h.
Referenced by PreviewLayoutLinesTool::BeforeDrawImageEvent(), PreviewLayoutLinesTool::MouseButtonEvent(), PreviewLayoutLinesTool::MouseMoveEvent(), and PreviewLayoutLinesTool::updateLineInformation().
| unsigned int PreviewLayoutLinesTool::LineDetails::numberOfControlPoints |
the number of control points between these images
Definition at line 112 of file PreviewLayoutLinesTool.h.
Referenced by draw(), and PreviewLayoutLinesTool::updateLineInformation().
| double PreviewLayoutLinesTool::LineDetails::totalError |
the total of all the control point errors between these images
Definition at line 116 of file PreviewLayoutLinesTool.h.
Referenced by PreviewLayoutLinesTool::updateLineInformation().
| double PreviewLayoutLinesTool::LineDetails::worstError |
the error of the control point with the greatest error between these images
Definition at line 114 of file PreviewLayoutLinesTool.h.
Referenced by draw(), and PreviewLayoutLinesTool::updateLineInformation().
1.8.5