OutputProjectionInfo Class Reference

#include <OutputProjectionInfo.h>

List of all members.

Public Member Functions

 OutputProjectionInfo (HuginBase::PanoramaOptions *output)
const double GetMiddleX () const
const double GetMiddleY () const
const double GetLowerX () const
const double GetUpperX () const
const double GetLowerY () const
const double GetUpperY () const
const double GetUpperX (const double y) const
const double GetLowerX (const double y) const
const double GetRadius () const
const double GetXAdd360 () const
const double GetYAdd360 () const
const double GetXAdd360 (const double y) const
const double GetNorthPoleX () const
const double GetNorthPoleY () const
const double GetSouthPoleX () const
const double GetSouthPoleY () const
bool AngularToImage (double &image_x, double &image_y, double yaw, double pitch)
bool ImageToAngular (double &yaw, double &pitch, double image_x, double image_y)

Private Attributes

double lower_x
double middle_x
double upper_x
double lower_y
double middle_y
double upper_y
double radius
double x_add_360
double y_add_360
double north_pole_x
double north_pole_y
double south_pole_x
double south_pole_y
HuginBase::PanoramaOptionsproj
HuginBase::PTools::Transform transform
HuginBase::PTools::Transform reverse_transform


Detailed Description

Definition at line 37 of file OutputProjectionInfo.h.


Constructor & Destructor Documentation

OutputProjectionInfo::OutputProjectionInfo ( HuginBase::PanoramaOptions output  ) 

Definition at line 25 of file OutputProjectionInfo.cpp.

References HuginBase::PanoramaOptions::ARCHITECTURAL, HuginBase::PTools::Transform::createInvTransform(), HuginBase::PTools::Transform::createTransform(), HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, HuginBase::PanoramaOptions::EQUISOLID, HuginBase::PanoramaOptions::FULL_FRAME_FISHEYE, HuginBase::PanoramaOptions::getProjection(), HuginBase::PanoramaOptions::getSize(), HuginBase::PanoramaOptions::HAMMER_AITOFF, HuginBase::PanoramaOptions::LAMBERT_AZIMUTHAL, lower_x, lower_y, middle_x, middle_y, north_pole_x, north_pole_y, HuginBase::PanoramaOptions::ORTHOGRAPHIC, proj, radius, reverse_transform, HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::BaseSrcPanoImage::setProjection(), HuginBase::SrcPanoImage::setSize(), south_pole_x, south_pole_y, HuginBase::PanoramaOptions::STEREOGRAPHIC, HuginBase::PanoramaOptions::THOBY_PROJECTION, transform, HuginBase::PTools::Transform::transformImgCoord(), HuginBase::PanoramaOptions::TRANSVERSE_MERCATOR, upper_x, upper_y, x_add_360, and y_add_360.


Member Function Documentation

bool OutputProjectionInfo::AngularToImage ( double &  image_x,
double &  image_y,
double  yaw,
double  pitch 
)

Definition at line 117 of file OutputProjectionInfo.cpp.

References transform, and HuginBase::PTools::Transform::transformImgCoord().

Referenced by DragTool::MouseButtonEvent(), and PreviewDragTool::ReallyAfterDrawImagesEvent().

const double OutputProjectionInfo::GetLowerX ( const double  y  )  const

Definition at line 97 of file OutputProjectionInfo.cpp.

References reverse_transform, transform, and HuginBase::PTools::Transform::transformImgCoord().

const double OutputProjectionInfo::GetLowerX (  )  const [inline]

Definition at line 46 of file OutputProjectionInfo.h.

References lower_x.

Referenced by VertexCoordRemapper::TestSubdivide().

const double OutputProjectionInfo::GetLowerY (  )  const [inline]

Definition at line 50 of file OutputProjectionInfo.h.

References lower_y.

const double OutputProjectionInfo::GetMiddleX (  )  const [inline]

Definition at line 42 of file OutputProjectionInfo.h.

References middle_x.

const double OutputProjectionInfo::GetMiddleY (  )  const [inline]

Definition at line 44 of file OutputProjectionInfo.h.

References middle_y.

const double OutputProjectionInfo::GetNorthPoleX (  )  const [inline]

Definition at line 68 of file OutputProjectionInfo.h.

References north_pole_x.

const double OutputProjectionInfo::GetNorthPoleY (  )  const [inline]

Definition at line 70 of file OutputProjectionInfo.h.

References north_pole_y.

const double OutputProjectionInfo::GetRadius (  )  const [inline]

Definition at line 58 of file OutputProjectionInfo.h.

References radius.

const double OutputProjectionInfo::GetSouthPoleX (  )  const [inline]

Definition at line 72 of file OutputProjectionInfo.h.

References south_pole_x.

const double OutputProjectionInfo::GetSouthPoleY (  )  const [inline]

Definition at line 74 of file OutputProjectionInfo.h.

References south_pole_y.

const double OutputProjectionInfo::GetUpperX ( const double  y  )  const

Definition at line 89 of file OutputProjectionInfo.cpp.

References reverse_transform, transform, and HuginBase::PTools::Transform::transformImgCoord().

const double OutputProjectionInfo::GetUpperX (  )  const [inline]

Definition at line 48 of file OutputProjectionInfo.h.

References upper_x.

Referenced by VertexCoordRemapper::TestSubdivide().

const double OutputProjectionInfo::GetUpperY (  )  const [inline]

Definition at line 52 of file OutputProjectionInfo.h.

References upper_y.

const double OutputProjectionInfo::GetXAdd360 ( const double  y  )  const

Definition at line 106 of file OutputProjectionInfo.cpp.

References HuginBase::PanoramaOptions::getSize(), proj, reverse_transform, transform, and HuginBase::PTools::Transform::transformImgCoord().

const double OutputProjectionInfo::GetXAdd360 (  )  const [inline]

Definition at line 61 of file OutputProjectionInfo.h.

References x_add_360.

Referenced by VertexCoordRemapper::DiscontinuityFlip().

const double OutputProjectionInfo::GetYAdd360 (  )  const [inline]

Definition at line 63 of file OutputProjectionInfo.h.

References y_add_360.

bool OutputProjectionInfo::ImageToAngular ( double &  yaw,
double &  pitch,
double  image_x,
double  image_y 
)

Definition at line 124 of file OutputProjectionInfo.cpp.

References reverse_transform, and HuginBase::PTools::Transform::transformImgCoord().

Referenced by DragTool::MouseButtonEvent(), and DragTool::MouseMoveEvent().


Member Data Documentation

double OutputProjectionInfo::lower_x [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetLowerX(), and OutputProjectionInfo().

double OutputProjectionInfo::lower_y [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetLowerY(), and OutputProjectionInfo().

double OutputProjectionInfo::middle_x [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetMiddleX(), and OutputProjectionInfo().

double OutputProjectionInfo::middle_y [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetMiddleY(), and OutputProjectionInfo().

double OutputProjectionInfo::north_pole_x [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetNorthPoleX(), and OutputProjectionInfo().

double OutputProjectionInfo::north_pole_y [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetNorthPoleY(), and OutputProjectionInfo().

HuginBase::PanoramaOptions* OutputProjectionInfo::proj [private]

Definition at line 85 of file OutputProjectionInfo.h.

Referenced by GetXAdd360(), and OutputProjectionInfo().

double OutputProjectionInfo::radius [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetRadius(), and OutputProjectionInfo().

HuginBase::PTools::Transform OutputProjectionInfo::reverse_transform [private]

Definition at line 87 of file OutputProjectionInfo.h.

Referenced by GetLowerX(), GetUpperX(), GetXAdd360(), ImageToAngular(), and OutputProjectionInfo().

double OutputProjectionInfo::south_pole_x [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetSouthPoleX(), and OutputProjectionInfo().

double OutputProjectionInfo::south_pole_y [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetSouthPoleY(), and OutputProjectionInfo().

HuginBase::PTools::Transform OutputProjectionInfo::transform [private]

Definition at line 86 of file OutputProjectionInfo.h.

Referenced by AngularToImage(), GetLowerX(), GetUpperX(), GetXAdd360(), and OutputProjectionInfo().

double OutputProjectionInfo::upper_x [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetUpperX(), and OutputProjectionInfo().

double OutputProjectionInfo::upper_y [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetUpperY(), and OutputProjectionInfo().

double OutputProjectionInfo::x_add_360 [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetXAdd360(), and OutputProjectionInfo().

double OutputProjectionInfo::y_add_360 [private]

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by GetYAdd360(), and OutputProjectionInfo().


The documentation for this class was generated from the following files:
Generated on 31 Oct 2014 for Hugintrunk by  doxygen 1.4.7