Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
GreatCircleArc::LineSegment Struct Reference

#include <GreatCircles.h>

Public Member Functions

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

Public Attributes

hugin_utils::FDiff2D vertices [2]
 

Detailed Description

Definition at line 93 of file GreatCircles.h.

Member Function Documentation

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

Draw a meshed line.

Parameters
widththe width of the line
stateThe visualization state needed to obtain final 3D coordinates and the scale for the visualization
precedingthe line segment before this line segment, needed to calculate the right begining slope
proceedingthe line segment after this line segment, needed to calculate the right ending slope

Definition at line 257 of file GreatCircles.cpp.

References 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 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 432 of file GreatCircles.cpp.

References MeshManager::GetCoord3D(), VisualizationState::GetMeshManager(), MeshManager::MeshInfo::Coord3D::x, MeshManager::MeshInfo::Coord3D::y, and MeshManager::MeshInfo::Coord3D::z.

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

Get the square of the minimal distance to a point.

Definition at line 482 of file GreatCircles.cpp.

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

Member Data Documentation

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

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