Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
VertexCoordRemapper Class Reference

#include <VertexCoordRemapper.h>

Inheritance diagram for VertexCoordRemapper:
Inheritance graph

Classes

class  Tree
 
class  TreeNode
 

Public Member Functions

 VertexCoordRemapper (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state)
 
virtual void UpdateAndResetIndex ()
 
virtual bool GetNextFaceCoordinates (Coords *result)
 Get the texture and vertex coordinates for the next face. More...
 
- Public Member Functions inherited from MeshRemapper
 MeshRemapper (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state)
 
virtual ~MeshRemapper ()
 

Private Member Functions

void RecursiveUpdate (unsigned int node_id, unsigned int stretch_x, unsigned int stretch_y)
 
void TestSubdivide (unsigned int node_id)
 
void DiscontinuityFlip (double vertex_c[2])
 
void SetLengthAndAngle (TreeNode *node)
 

Private Attributes

double tex_coords [2][2][2]
 
double s_vertex_coords [2][2][2]
 
double o_width
 
double o_height
 
double radius
 
double lower_bound
 
double upper_bound
 
double lower_bound_h
 
double upper_bound_h
 
double x_midpoint
 
double y_midpoint
 
double x_add_360
 
double y_add_360
 
bool done_node
 
unsigned int tree_node_id
 
unsigned short int discontinuity_flags
 
HuginBase::PanoramaOptions::ProjectionFormat output_projection
 
Tree tree
 

Additional Inherited Members

- Protected Member Functions inherited from MeshRemapper
void SetCrop ()
 Fill the crop values of the MeshRemapper from the source image. More...
 
void ClipFace (Coords *face)
 Crop a face to the source image, return true if there is anything left. More...
 
bool GiveClipFaceResult (Coords *result)
 Get a face that was produced by ClipFace. More...
 
- Protected Attributes inherited from MeshRemapper
VisualizationStatevisualization_state
 
HuginBase::Panoramam_pano
 
HuginBase::SrcPanoImageimage
 
float scale
 The number number of units between vertex coorinates that gives a pixel in the display. More...
 
double height
 The sizes of the input images in pixels. More...
 
double width
 
HuginBase::PTools::Transform transform
 A transform to use to remap the images. More...
 
HuginBase::SrcPanoImage::CropMode crop_mode
 Crop mode of the source image. More...
 
double crop_x1
 
double crop_x2
 
double crop_y1
 
double crop_y2
 
double circle_crop_centre_x
 
double circle_crop_centre_y
 
double circle_crop_radius_x
 
double circle_crop_radius_y
 
bool circle_crop
 

Detailed Description

Definition at line 64 of file VertexCoordRemapper.h.

Constructor & Destructor Documentation

VertexCoordRemapper::VertexCoordRemapper ( HuginBase::Panorama m_pano,
HuginBase::SrcPanoImage image,
VisualizationState visualization_state 
)

Definition at line 105 of file VertexCoordRemapper.cpp.

Member Function Documentation

void VertexCoordRemapper::DiscontinuityFlip ( double  vertex_c[2])
private
bool VertexCoordRemapper::GetNextFaceCoordinates ( Coords result)
virtual
void VertexCoordRemapper::RecursiveUpdate ( unsigned int  node_id,
unsigned int  stretch_x,
unsigned int  stretch_y 
)
private
void VertexCoordRemapper::SetLengthAndAngle ( TreeNode node)
private
void VertexCoordRemapper::TestSubdivide ( unsigned int  node_id)
private

Definition at line 479 of file VertexCoordRemapper.cpp.

References HuginBase::PanoramaOptions::ALBERS_EQUAL_AREA_CONIC, VertexCoordRemapper::TreeNode::angle_x, VertexCoordRemapper::TreeNode::angle_y, HuginBase::PanoramaOptions::CYLINDRICAL, HuginBase::PanoramaOptions::EQUIRECTANGULAR, flags, VertexCoordRemapper::TreeNode::flags, HuginBase::PanoramaOptions::FULL_FRAME_FISHEYE, HuginBase::PanoramaOptions::GENERAL_PANINI, OutputProjectionInfo::GetLowerX(), VertexCoordRemapper::Tree::GetParentId(), VertexCoordRemapper::Tree::GetPosition(), VisualizationState::GetProjectionInfo(), VertexCoordRemapper::Tree::GetTransform(), OutputProjectionInfo::GetUpperX(), VisualizationState::GetVisibleArea(), HuginBase::PanoramaOptions::HAMMER_AITOFF, HuginBase::PanoramaOptions::LAMBERT, HuginBase::PanoramaOptions::LAMBERT_AZIMUTHAL, VertexCoordRemapper::TreeNode::length_x, VertexCoordRemapper::TreeNode::length_y, lower_bound, lower_bound_h, M_PI, max_depth, HuginBase::PanoramaOptions::MERCATOR, HuginBase::PanoramaOptions::MILLER_CYLINDRICAL, min_angle, min_depth, min_length, min_length_difference, VertexCoordRemapper::Tree::nodes, offscreen_safety_margin, output_projection, HuginBase::PanoramaOptions::PANINI, patch_flag_x, patch_flag_y, HuginBase::PanoramaOptions::RECTILINEAR, MeshRemapper::scale, SetLengthAndAngle(), HuginBase::PanoramaOptions::SINUSOIDAL, split_flag_x, split_flag_y, HuginBase::PanoramaOptions::STEREOGRAPHIC, HuginBase::PanoramaOptions::TRANSVERSE_MERCATOR, tree, upper_bound, upper_bound_h, vertex_side_flag_start, VertexCoordRemapper::TreeNode::verts, MeshRemapper::visualization_state, x_midpoint, and y_midpoint.

Referenced by RecursiveUpdate().

void VertexCoordRemapper::UpdateAndResetIndex ( )
virtual

Member Data Documentation

unsigned short int VertexCoordRemapper::discontinuity_flags
private

Definition at line 91 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().

bool VertexCoordRemapper::done_node
private

Definition at line 88 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates(), and UpdateAndResetIndex().

double VertexCoordRemapper::lower_bound
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

double VertexCoordRemapper::lower_bound_h
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

double VertexCoordRemapper::o_height
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by UpdateAndResetIndex().

double VertexCoordRemapper::o_width
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by UpdateAndResetIndex().

HuginBase::PanoramaOptions::ProjectionFormat VertexCoordRemapper::output_projection
private

Definition at line 94 of file VertexCoordRemapper.h.

Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().

double VertexCoordRemapper::radius
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by UpdateAndResetIndex().

double VertexCoordRemapper::s_vertex_coords[2][2][2]
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().

double VertexCoordRemapper::tex_coords[2][2][2]
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates(), and RecursiveUpdate().

Tree VertexCoordRemapper::tree
private
unsigned int VertexCoordRemapper::tree_node_id
private

Definition at line 89 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().

double VertexCoordRemapper::upper_bound
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

double VertexCoordRemapper::upper_bound_h
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

double VertexCoordRemapper::x_add_360
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().

double VertexCoordRemapper::x_midpoint
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().

double VertexCoordRemapper::y_add_360
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().

double VertexCoordRemapper::y_midpoint
private

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().


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