GreatCircleArc::LineSegment Struct Reference

#include <GreatCircles.h>

List of all members.

Public Member Functions

float squareDistance (hugin_utils::FDiff2D point) const
 Get the square of the minimal distance to a point.
void doGLcross (int point, double cscale, VisualizationState *state) const
 Specify the line to OpenGL. Must be within a glBegin/glEnd pair.
void doGL (double width, VisualizationState *state, LineSegment *preceding=NULL, LineSegment *proceeding=NULL) const
 Draw a meshed line.

Public Attributes

hugin_utils::FDiff2D vertices [2]


Member Function Documentation

void GreatCircleArc::LineSegment::doGL double  width,
VisualizationState state,
LineSegment preceding = NULL,
LineSegment proceeding = NULL
const
 

Draw a meshed line.

Parameters:
width the width of the line
state The visualization state needed to obtain final 3D coordinates and the scale for the visualization
preceding the line segment before this line segment, needed to calculate the right begining slope
proceeding the line segment after this line segment, needed to calculate the right ending slope

Definition at line 256 of file GreatCircles.cpp.

References hugin_utils::FDiff2D, MeshManager::GetCoord3D(), VisualizationState::GetMeshManager(), VisualizationState::GetScale(), vertices, MeshManager::MeshInfo::Coord3D::x, hugin_utils::TDiff2D< T >::x, MeshManager::MeshInfo::Coord3D::y, hugin_utils::TDiff2D< T >::y, and MeshManager::MeshInfo::Coord3D::z.

Referenced by GreatCircleArc::draw(), and OverviewOutlinesTool::DrawRect().

void GreatCircleArc::LineSegment::doGLcross int  point,
double  cscale,
VisualizationState state
const
 

Specify the line to OpenGL. Must be within a glBegin/glEnd pair.

Definition at line 431 of file GreatCircles.cpp.

References hugin_utils::FDiff2D, MeshManager::GetCoord3D(), VisualizationState::GetMeshManager(), vertices, MeshManager::MeshInfo::Coord3D::x, hugin_utils::TDiff2D< T >::x, MeshManager::MeshInfo::Coord3D::y, hugin_utils::TDiff2D< T >::y, and MeshManager::MeshInfo::Coord3D::z.

Referenced by GreatCircleArc::draw().

float GreatCircleArc::LineSegment::squareDistance hugin_utils::FDiff2D  point  )  const
 

Get the square of the minimal distance to a point.

Definition at line 481 of file GreatCircles.cpp.

References hugin_utils::FDiff2D, hugin_utils::TDiff2D< T >::squareDistance(), vertices, hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.


Member Data Documentation

hugin_utils::FDiff2D GreatCircleArc::LineSegment::vertices[2]
 

Definition at line 93 of file GreatCircles.h.

Referenced by doGL(), doGLcross(), OverviewOutlinesTool::DrawRect(), GreatCircleArc::GreatCircleArc(), and squareDistance().


The documentation for this struct was generated from the following files:
Generated on Wed Aug 27 01:25:46 2014 for Hugintrunk by  doxygen 1.3.9.1