Hugin trunk 0.1
Loading...
Searching...
No Matches
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.
 
- 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.
 
void ClipFace (Coords *face)
 Crop a face to the source image, return true if there is anything left.
 
bool GiveClipFaceResult (Coords *result)
 Get a face that was produced by ClipFace.
 
- 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.
 
double height
 The sizes of the input images in pixels.
 
double width
 
HuginBase::PTools::Transform transform
 A transform to use to remap the images.
 
HuginBase::SrcPanoImage::CropMode crop_mode
 Crop mode of the source image.
 
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::VertexCoordRemapper ( HuginBase::Panorama m_pano,
HuginBase::SrcPanoImage image,
VisualizationState visualization_state 
)

Definition at line 103 of file VertexCoordRemapper.cpp.

Member Function Documentation

◆ DiscontinuityFlip()

void VertexCoordRemapper::DiscontinuityFlip ( double  vertex_c[2])
private

◆ GetNextFaceCoordinates()

bool VertexCoordRemapper::GetNextFaceCoordinates ( Coords result)
virtual

◆ RecursiveUpdate()

void VertexCoordRemapper::RecursiveUpdate ( unsigned int  node_id,
unsigned int  stretch_x,
unsigned int  stretch_y 
)
private

◆ SetLengthAndAngle()

void VertexCoordRemapper::SetLengthAndAngle ( TreeNode node)
private

Definition at line 776 of file VertexCoordRemapper.cpp.

References sqr(), and threshold().

Referenced by TestSubdivide().

◆ TestSubdivide()

void VertexCoordRemapper::TestSubdivide ( unsigned int  node_id)
private

◆ UpdateAndResetIndex()

void VertexCoordRemapper::UpdateAndResetIndex ( )
virtual

Member Data Documentation

◆ discontinuity_flags

unsigned short int VertexCoordRemapper::discontinuity_flags
private

Definition at line 91 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().

◆ done_node

bool VertexCoordRemapper::done_node
private

Definition at line 88 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates(), and UpdateAndResetIndex().

◆ lower_bound

double VertexCoordRemapper::lower_bound
private

Definition at line 81 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

◆ lower_bound_h

double VertexCoordRemapper::lower_bound_h
private

Definition at line 81 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

◆ o_height

double VertexCoordRemapper::o_height
private

Definition at line 79 of file VertexCoordRemapper.h.

Referenced by UpdateAndResetIndex().

◆ o_width

double VertexCoordRemapper::o_width
private

Definition at line 79 of file VertexCoordRemapper.h.

Referenced by UpdateAndResetIndex().

◆ output_projection

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

Definition at line 94 of file VertexCoordRemapper.h.

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

◆ radius

double VertexCoordRemapper::radius
private

Definition at line 81 of file VertexCoordRemapper.h.

Referenced by UpdateAndResetIndex().

◆ s_vertex_coords

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

Definition at line 77 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().

◆ tex_coords

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

Definition at line 75 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates(), and RecursiveUpdate().

◆ tree

Tree VertexCoordRemapper::tree
private

◆ tree_node_id

unsigned int VertexCoordRemapper::tree_node_id
private

Definition at line 89 of file VertexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().

◆ upper_bound

double VertexCoordRemapper::upper_bound
private

Definition at line 81 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

◆ upper_bound_h

double VertexCoordRemapper::upper_bound_h
private

Definition at line 81 of file VertexCoordRemapper.h.

Referenced by TestSubdivide(), and UpdateAndResetIndex().

◆ x_add_360

double VertexCoordRemapper::x_add_360
private

Definition at line 84 of file VertexCoordRemapper.h.

Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().

◆ x_midpoint

double VertexCoordRemapper::x_midpoint
private

Definition at line 82 of file VertexCoordRemapper.h.

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

◆ y_add_360

double VertexCoordRemapper::y_add_360
private

Definition at line 84 of file VertexCoordRemapper.h.

Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().

◆ y_midpoint

double VertexCoordRemapper::y_midpoint
private

Definition at line 82 of file VertexCoordRemapper.h.

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


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