28#include <OpenGL/glu.h>
31#include <vigra/windows.h>
38#include "hugin_config.h"
156 return vigra::Diff2D(
int (
x_offs / scale),
int (
y_offs / scale));
183 for (
int img = imgs - 1; img != -1; img--)
309 for (
int img = imgs - 1; img != -1; img--)
348 for (
int img = imgs - 1; img != -1; img--)
402 for (
int img = imgs - 1; img != -1; img--)
481 return vigra::Diff2D(0,0);
541 for (
int img = imgs - 1; img != -1; img--)
571 for (
int img = imgs - 1; img != -1; img--)
634 return vigra::Diff2D(0,0);
GLPanosphereOverviewRenderer(HuginBase::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, PanosphereOverviewVisualizationState *visualization_state, PanosphereOverviewToolHelper *tool_helper, const wxColour backgroundColour)
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window's dimensions have changed.
PanosphereOverviewVisualizationState * m_visualization_state
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window's dimensions have changed.
PlaneOverviewVisualizationState * m_visualization_state
GLPlaneOverviewRenderer(HuginBase::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, PlaneOverviewVisualizationState *visualization_state, PlaneOverviewToolHelper *tool_helper, const wxColour backgroundColour)
GLPreviewRenderer(HuginBase::Panorama *pano, TextureManager *tex_man, MeshManager *mesh_man, VisualizationState *visualization_state, PreviewToolHelper *tool_helper, const wxColour backgroundColour)
VisualizationState * m_visualization_state
vigra::Diff2D Resize(int width, int height)
Resize the viewport because the window's dimensions have changed.
The renderer handles drawing the opengl scene.
void SetBackground(unsigned char red, unsigned char green, unsigned char blue)
GLRenderer(const wxColour backgroundColour)
ctor.
void SetPreviewBackgroundColor(const wxColour c)
sets the preview background color
wxColour m_background_color
ToolHelper * m_tool_helper
TextureManager * m_tex_man
virtual ~GLRenderer()
dtor.
HuginBase::Panorama * m_pano
const vigra::Rect2D & getROI() const
unsigned int getWidth() const
unsigned int getHeight() const
get panorama height
const SrcPanoImage & getImage(std::size_t nr) const
get a panorama image, counting starts with 0
std::size_t getNrOfImages() const
number of images.
static const double scale
A MeshManager handles the graphics system representation of a remapping, by creating OpenGL display l...
bool GetLayoutMode() const
return if layout mode is active
unsigned int GetDisplayList(unsigned int image_number) const
HuginBase::PanoramaOptions * GetOptions()
void DrawImage(unsigned int image_number, unsigned int display_list)
void DisableTexture(bool maskOnly=false)
HuginBase::PanoramaOptions * GetOptions()
MeshManager * GetMeshManager()
void SetScale(float scale)
ViewState * getViewState()
double GetZoomLevel() const
void SetVisibleArea(vigra::Rect2D area)
void SetCanvasSize(const vigra::Size2D &canvasSize)
hugin_utils::FDiff2D GetViewingCenter() const
include file for the hugin project
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.