Hugintrunk
0.1
|
#include <OutputProjectionInfo.h>
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::PanoramaOptions * | proj |
HuginBase::PTools::Transform | transform |
HuginBase::PTools::Transform | reverse_transform |
Definition at line 37 of file OutputProjectionInfo.h.
|
explicit |
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::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.
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().
|
inline |
Definition at line 46 of file OutputProjectionInfo.h.
References lower_x.
Referenced by VertexCoordRemapper::TestSubdivide(), and VertexCoordRemapper::UpdateAndResetIndex().
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().
|
inline |
Definition at line 50 of file OutputProjectionInfo.h.
References lower_y.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 42 of file OutputProjectionInfo.h.
References middle_x.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 44 of file OutputProjectionInfo.h.
References middle_y.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 68 of file OutputProjectionInfo.h.
References north_pole_x.
Referenced by ChoosyRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 70 of file OutputProjectionInfo.h.
References north_pole_y.
Referenced by ChoosyRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 58 of file OutputProjectionInfo.h.
References radius.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 72 of file OutputProjectionInfo.h.
References south_pole_x.
Referenced by ChoosyRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 74 of file OutputProjectionInfo.h.
References south_pole_y.
Referenced by ChoosyRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 48 of file OutputProjectionInfo.h.
References upper_x.
Referenced by VertexCoordRemapper::TestSubdivide(), and VertexCoordRemapper::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().
|
inline |
Definition at line 52 of file OutputProjectionInfo.h.
References upper_y.
Referenced by VertexCoordRemapper::UpdateAndResetIndex().
|
inline |
Definition at line 61 of file OutputProjectionInfo.h.
References x_add_360.
Referenced by VertexCoordRemapper::DiscontinuityFlip(), and 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().
|
inline |
Definition at line 63 of file OutputProjectionInfo.h.
References y_add_360.
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().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetLowerX(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetLowerY(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetMiddleX(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetMiddleY(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetNorthPoleX(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetNorthPoleY(), and OutputProjectionInfo().
|
private |
Definition at line 85 of file OutputProjectionInfo.h.
Referenced by GetXAdd360(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetRadius(), and OutputProjectionInfo().
|
private |
Definition at line 87 of file OutputProjectionInfo.h.
Referenced by GetLowerX(), GetUpperX(), GetXAdd360(), ImageToAngular(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetSouthPoleX(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetSouthPoleY(), and OutputProjectionInfo().
|
private |
Definition at line 86 of file OutputProjectionInfo.h.
Referenced by AngularToImage(), GetLowerX(), GetUpperX(), GetXAdd360(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetUpperX(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetUpperY(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetXAdd360(), and OutputProjectionInfo().
|
private |
Definition at line 80 of file OutputProjectionInfo.h.
Referenced by GetYAdd360(), and OutputProjectionInfo().