liballofw
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
allofw::WarpBlend Class Referenceabstract

Warp and blend information for a display configuration. More...

#include <omnistereo.h>

Classes

struct  BlendData
 Blend map data. More...
 
struct  ViewportInfo
 Viewport information. More...
 
struct  WarpData
 Warp map data. More...
 

Public Member Functions

virtual int getViewportCount ()=0
 Get how many viewports to draw. More...
 
virtual ViewportInfo getViewport (int viewport_index)=0
 
virtual BlendData getBlendData (int viewport_index)=0
 
virtual WarpData getWarpData (int viewport_index)=0
 
virtual GLTextureID getBlendTexture (int viewport_index)=0
 
virtual GLTextureID getWarpTexture (int viewport_index)=0
 

Static Public Member Functions

static WarpBlendCreateEquirectangular (int width, int height)
 
static WarpBlendCreatePerspective (int width, int height, float fov)
 
static WarpBlendLoadAllosphereCalibration (const char *calibration_path, const char *hostname=nullptr)
 
static void Destroy (WarpBlend *warpblend)
 

Protected Member Functions

virtual ~WarpBlend ()
 

Detailed Description

Warp and blend information for a display configuration.

Constructor & Destructor Documentation

virtual allofw::WarpBlend::~WarpBlend ( )
protectedvirtual

Member Function Documentation

static WarpBlend* allofw::WarpBlend::CreateEquirectangular ( int  width,
int  height 
)
static

Create warpblend data with Equirectangular projection.

Parameters
widthThe width of the warpblend info.
heightThe height of the warpblend info.
static WarpBlend* allofw::WarpBlend::CreatePerspective ( int  width,
int  height,
float  fov 
)
static

Create warpblend data for Perspective projection.

Parameters
widthThe width of the warpblend info.
heightThe height of the warpblend info.
fovThe horizontal field of view.
static void allofw::WarpBlend::Destroy ( WarpBlend warpblend)
static

Destroy the warpblend object.

Parameters
warpblendThe object to be destroyed.
virtual BlendData allofw::WarpBlend::getBlendData ( int  viewport_index)
pure virtual

Get warp data for the viewport.

Parameters
viewport_indexThe index of the viewport, 0 to getViewportCount() - 1.
virtual GLTextureID allofw::WarpBlend::getBlendTexture ( int  viewport_index)
pure virtual

Get warp texture for the viewport.

Parameters
viewport_indexThe index of the viewport, 0 to getViewportCount() - 1.
virtual ViewportInfo allofw::WarpBlend::getViewport ( int  viewport_index)
pure virtual

Get viewport information.

Parameters
viewport_indexThe index of the viewport, 0 to getViewportCount() - 1.
virtual int allofw::WarpBlend::getViewportCount ( )
pure virtual

Get how many viewports to draw.

virtual WarpData allofw::WarpBlend::getWarpData ( int  viewport_index)
pure virtual

Get blend data for the viewport.

Parameters
viewport_indexThe index of the viewport, 0 to getViewportCount() - 1.
virtual GLTextureID allofw::WarpBlend::getWarpTexture ( int  viewport_index)
pure virtual

Get blend texture for the viewport.

Parameters
viewport_indexThe index of the viewport, 0 to getViewportCount() - 1.
static WarpBlend* allofw::WarpBlend::LoadAllosphereCalibration ( const char *  calibration_path,
const char *  hostname = nullptr 
)
static

Load warpblend data from AlloSphere calibration directory.

Parameters
calibration_pathThe path to the calibration directory.
hostnameThe hostname, if omitted, use gethostname().

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