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


Constructor & Destructor Documentation

OutputProjectionInfo::OutputProjectionInfo HuginBase::PanoramaOptions output  ) 
 

Definition at line 25 of file OutputProjectionInfo.cpp.

References HuginBase::PTools::Transform::createInvTransform(), HuginBase::PTools::Transform::createTransform(), HuginBase::PanoramaOptions::getProjection(), HuginBase::PanoramaOptions::getSize(), lower_x, lower_y, middle_x, middle_y, north_pole_x, north_pole_y, proj, radius, reverse_transform, HuginBase::BaseSrcPanoImage::setHFOV(), HuginBase::BaseSrcPanoImage::setProjection(), HuginBase::SrcPanoImage::setSize(), south_pole_x, south_pole_y, transform, HuginBase::PTools::Transform::transformImgCoord(), 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(), PreviewPanoMaskTool::ReallyAfterDrawImagesEvent(), 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.

Referenced by VertexCoordRemapper::TestSubdivide(), and VertexCoordRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetLowerY  )  const [inline]
 

Definition at line 50 of file OutputProjectionInfo.h.

Referenced by VertexCoordRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetMiddleX  )  const [inline]
 

Definition at line 42 of file OutputProjectionInfo.h.

Referenced by VertexCoordRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetMiddleY  )  const [inline]
 

Definition at line 44 of file OutputProjectionInfo.h.

Referenced by VertexCoordRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetNorthPoleX  )  const [inline]
 

Definition at line 68 of file OutputProjectionInfo.h.

Referenced by ChoosyRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetNorthPoleY  )  const [inline]
 

Definition at line 70 of file OutputProjectionInfo.h.

Referenced by ChoosyRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetRadius  )  const [inline]
 

Definition at line 58 of file OutputProjectionInfo.h.

Referenced by VertexCoordRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetSouthPoleX  )  const [inline]
 

Definition at line 72 of file OutputProjectionInfo.h.

Referenced by ChoosyRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetSouthPoleY  )  const [inline]
 

Definition at line 74 of file OutputProjectionInfo.h.

Referenced by ChoosyRemapper::UpdateAndResetIndex().

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.

Referenced by VertexCoordRemapper::TestSubdivide(), and VertexCoordRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetUpperY  )  const [inline]
 

Definition at line 52 of file OutputProjectionInfo.h.

Referenced by VertexCoordRemapper::UpdateAndResetIndex().

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.

Referenced by VertexCoordRemapper::DiscontinuityFlip(), and VertexCoordRemapper::UpdateAndResetIndex().

const double OutputProjectionInfo::GetYAdd360  )  const [inline]
 

Definition at line 63 of file OutputProjectionInfo.h.

Referenced by VertexCoordRemapper::UpdateAndResetIndex().

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 OutputProjectionInfo().

double OutputProjectionInfo::lower_y [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by OutputProjectionInfo().

double OutputProjectionInfo::middle_x [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by OutputProjectionInfo().

double OutputProjectionInfo::middle_y [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by OutputProjectionInfo().

double OutputProjectionInfo::north_pole_x [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by OutputProjectionInfo().

double OutputProjectionInfo::north_pole_y [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by 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 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 OutputProjectionInfo().

double OutputProjectionInfo::south_pole_y [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by 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 OutputProjectionInfo().

double OutputProjectionInfo::upper_y [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by OutputProjectionInfo().

double OutputProjectionInfo::x_add_360 [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by OutputProjectionInfo().

double OutputProjectionInfo::y_add_360 [private]
 

Definition at line 80 of file OutputProjectionInfo.h.

Referenced by OutputProjectionInfo().


The documentation for this class was generated from the following files:
Generated on Wed Jul 16 01:25:48 2014 for Hugintrunk by  doxygen 1.3.9.1