1 #ifndef __GLPROJECTIONPARAMSPERSP_HH__
2 #define __GLPROJECTIONPARAMSPERSP_HH__
4 #include <bias_config.h>
5 #include <OpenGLFramework/Base/glfRenderTarget.hh>
6 #include <GLviewer/GLProjectionParametersBase.hh>
7 #include <Geometry/ProjectionParametersPerspective.hh>
9 #include <GLviewer/OutputAttachments/OutputLensDistortion.hh>
38 virtual int XMLRead (
const std::string &Filename);
39 virtual int XMLWrite(
const std::string &Filename)
const;
40 virtual int Load (
const std::string& filename);
41 virtual int Save (
const std::string& filename)
const;
44 int SetSimplePerspectiveCam(
double fovyDEG,
46 int imageHeight = -1);
53 virtual int SetGLMatrices(
bool forceUpdate =
true);
72 virtual double Z2Depth_(
const int x,
const int y,
const double z)
const;
74 virtual void InitShaders_();
75 virtual void Rescale_(
float scale);
77 virtual int UpdateGLProjectionMatrix_(
unsigned x0,
unsigned y0,
78 unsigned width,
unsigned height);
80 int DrawWithMatchedParamsAndViewport_(
int viewport[4],
int imageWidth,
int imageHeight,
81 std::vector<SceneBase*>& scenes);
89 virtual int Draw_(std::vector<SceneBase *>& scenes,
92 void ClearDepthAndAlpha_();
GLPPB encapsulates the opengl rendering interface for the projectionparameter classes.
camera parameters which define the mapping between rays in the camera coordinate system and pixels in...
virtual BIAS::ProjectionParametersBase * GetMyselfAsProjectionParametersBase() const
the pure virtual GetMyselfAsProjectionParameterBase() forces the child classes to inherit from a proj...
void IgnoreDistortion(bool b)
void UseStencilBuffer(bool b)
Camera parameters which define the mapping between rays in the camera coordinate system and pixels in...
class for rendering with projection parameters of ProjectionParametersPerspective ...