25 #ifndef __PMDWARP_HH__
26 #define __PMDWARP_HH__
28 #include <Base/Image/Image.hh>
29 #include <Geometry/ProjectionParametersPerspectiveDepth.hh>
30 #include <Geometry/ProjectionParametersPerspective.hh>
32 #include <OpenGLFramework/Base/glfTexture2D.hh>
33 #include <OpenGLFramework/Base/glfBatch.hh>
34 #include <OpenGLFramework/Passive/glfPassiveMatrix.hh>
35 #include <OpenGLFramework/Passive/glfPassiveViewport.hh>
36 #include <OpenGLFramework/Passive/glfPassiveDepthBufferMode.hh>
38 #include <bias_config.h>
61 class BIASOpenGLFramework_EXPORT
PMDWarp {
73 bool targetParametersHaveDistortion=
false);
100 double zNear,
double zFar);
108 unsigned int width,
unsigned int height);
110 void SetTargetCameraParametersToGlobal(
bool global);
112 void SetViewportSize(
unsigned int width,
unsigned int height);
117 void SetViewportToGlobal(
bool global);
119 void ChangeZClipping(
double zNear,
double zFar);
131 double zNear,
double zFar,
float N,
int output=0);
144 void SetDispForDistanceAndScale(
const float& dist_from_cam,
145 const float& disp,
const float& scale);
184 void SetupDefaultPrimitiveRendering_();
185 void SetupShadersDefault_();
186 void SetupShadersProjectiveTexturing_();
An element buffer contains vertex indices that form primitives.
Defines the usage of the depth buffer.
BIAS::glfShader fragmentProgram_
BIAS::glfPassiveViewport globalViewport_
camera parameters which define the mapping between rays in the camera coordinate system and pixels in...
bool targetParametersHaveDistortion_
unsigned int depthImageHeight_
BIAS::glfMatrix textureMatrix_
BIAS::glfVertexBuffer vertices_
A vertex buffer contains an array of vertices that can be used for rendering.
A batch represents a single Draw call including all parameters (render states).
BIAS::glfMatrix modelView_
A shader program composed of several shaders.
This class allows to use the currently set viewport in the global opengl state!
A GLSL vertex shader or fragment shader, which must be linked in a shader program.
BIAS::ProjectionParametersPerspective pmdParams_
BIAS::glfShader geometryProgram_
BIAS::glfTexture2D projectiveTexture_
BIAS::glfViewport viewport_
class for setting viewports
BIAS::ProjectionParametersPerspective targetParams_
A 4x4 matrix in native OpenGL format.
BIAS::glfPassiveRenderMatrix globalModelViewNProjection_
BIAS::glfMatrix Projection_
BIAS::glfDepthBufferMode depthBufferMode_
This class allows to use the currently set RenderMatrix in the global opengl state! ...
BIAS::glfShader vertexProgram_
Interface for render targets.
This is the base class for images in BIAS.
unsigned int depthImageWidth_
BIAS::glfTexture2D pmdDepthImage_
BIAS::glfElementBuffer elements_
class can be used to warp sequences of pmd depth images into a second view with different parameters...
BIAS::glfShaderProgram shaderProgram_