Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
BIAS::glfPassiveRenderMatrix Class Reference

This class allows to use the currently set RenderMatrix in the global opengl state! More...

#include <OpenGLFramework/Passive/glfPassiveMatrix.hh>

+ Inheritance diagram for BIAS::glfPassiveRenderMatrix:
+ Collaboration diagram for BIAS::glfPassiveRenderMatrix:

Public Member Functions

const GLfloat * GetArray () const
 
virtual void Load () const
 Loads the matrix in OpenGL. More...
 
void MakeAffineInverse (const glfMatrix &a)
 Computes the inverse of the matrix, assuming it is an affine transformation with an orthonormal linear part. More...
 
Initialization methods similar to glIdentity, glRotate etc.
void MakeIdentity ()
 
void MakeRotation (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
 
void MakeTranslation (GLfloat x, GLfloat y, GLfloat z)
 
void MakeScalation (GLfloat x, GLfloat y, GLfloat z)
 
void MakeFrustum (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat nearVal, GLfloat farVal)
 
void MakeOrtho (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat nearVal, GLfloat farVal)
 
void MakePerspective (GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar)
 
void MakeLookAt (GLfloat eyeX, GLfloat eyeY, GLfloat eyeZ, GLfloat centerX, GLfloat centerY, GLfloat centerZ, GLfloat upX, GLfloat upY, GLfloat upZ)
 
void Make (const Matrix4x4< float > &a)
 Initializes the glf matrix from a BIAS matrix. More...
 
void Make (const Matrix4x4< double > &a)
 
void MakeAffine (const Matrix3x3< float > &r, const Vector3< float > &t)
 Initializes the render matrix as an affine mapping. More...
 
void MakeAffine (const Matrix3x3< double > &r, const Vector3< double > &t)
 
void MakeTextureMatrix (const ProjectionParametersPerspective &params, bool flip=false)
 Conversion from ProjectionParametersPerspective. More...
 
void MakeViewMatrix (const ProjectionParametersBase &params)
 
void MakeViewMatrixNew (const ProjectionParametersBase &params)
 
void MakeProjectionMatrix (const ProjectionParametersPerspective &params, GLfloat nearZZ, GLfloat farZ, bool useIdealK=false)
 
void MakeProjectionMatrix (ProjectionParametersPerspective params, GLfloat nearZ, GLfloat farZ, unsigned int x0, unsigned int y0, unsigned int width, unsigned int height, bool useIdealK=false)
 
void MakeProjectionMatrixNew (const ProjectionParametersPerspective &params, GLfloat nearZ, GLfloat farZ, unsigned int x0, unsigned int y0, unsigned int width, unsigned int height, bool useIdealK=false, bool flip=false)
 
void MakeProjectionMatrixNew (const ProjectionParametersPerspective &params, GLfloat nearZ, GLfloat farZ, bool flip=false)
 
void MakeTextureMatrixNew (const ProjectionParametersPerspective &params, bool flip)
 
void TransformPoint (const Vector3< float > &in, Vector3< float > &out) const
 Transforms a point by the matrix. More...
 
void TransformPoint (const Vector3< double > &in, Vector3< double > &out) const
 
Matrix multiplications.
void Multiply (const glfMatrix &a)
 
void Multiply (Vector4< float > vIn, Vector4< float > &vOut)
 
void Multiply (Vector4< double > vIn, Vector4< double > &vOut)
 
void operator*= (const glfMatrix &a)
 
glfMatrix operator* (const glfMatrix &a)
 

Static Public Member Functions

static unsigned int Matrix2DIndexToRep (unsigned int row, unsigned int column)
 

Static Public Attributes

static const glfMatrix IDENTITY
 The identity matrix. More...
 

Detailed Description

This class allows to use the currently set RenderMatrix in the global opengl state!

It is not the intention of the OpenGLFramework to work on a global scope! Use this class with caution and seldom even if it is convenient! Your classes will develop difficult behavior and will not be transportable outside a well defined state context! Nevertheless it is usefull to use passive components for the integration of concepts from the OpenGLFramework into old software.

Author
bartczak 02/2008

Definition at line 47 of file glfPassiveMatrix.hh.

Member Function Documentation

const GLfloat* BIAS::glfMatrix::GetArray ( ) const
inlineinherited

Definition at line 171 of file glfMatrix.hh.

Referenced by BIAS::glfShaderProgram::SetUniform().

virtual void BIAS::glfPassiveRenderMatrix::Load ( ) const
inlinevirtual

Loads the matrix in OpenGL.

Reimplemented from BIAS::glfMatrix.

Definition at line 50 of file glfPassiveMatrix.hh.

void glfMatrix::Make ( const Matrix4x4< float > &  a)
inherited
void glfMatrix::Make ( const Matrix4x4< double > &  a)
inherited

Definition at line 201 of file glfMatrix.cpp.

References BIAS::glfMatrix::Make().

void glfMatrix::MakeAffine ( const Matrix3x3< float > &  r,
const Vector3< float > &  t 
)
inherited

Initializes the render matrix as an affine mapping.

Definition at line 206 of file glfMatrix.cpp.

Referenced by BIAS::glfMatrix::MakeAffine().

void glfMatrix::MakeAffine ( const Matrix3x3< double > &  r,
const Vector3< double > &  t 
)
inherited

Definition at line 214 of file glfMatrix.cpp.

References BIAS::glfMatrix::MakeAffine().

void glfMatrix::MakeAffineInverse ( const glfMatrix a)
inherited

Computes the inverse of the matrix, assuming it is an affine transformation with an orthonormal linear part.

Definition at line 219 of file glfMatrix.cpp.

void glfMatrix::MakeFrustum ( GLfloat  left,
GLfloat  right,
GLfloat  bottom,
GLfloat  top,
GLfloat  nearVal,
GLfloat  farVal 
)
inherited

Definition at line 115 of file glfMatrix.cpp.

void glfMatrix::MakeIdentity ( )
inherited
void glfMatrix::MakeLookAt ( GLfloat  eyeX,
GLfloat  eyeY,
GLfloat  eyeZ,
GLfloat  centerX,
GLfloat  centerY,
GLfloat  centerZ,
GLfloat  upX,
GLfloat  upY,
GLfloat  upZ 
)
inherited
void glfMatrix::MakeOrtho ( GLfloat  left,
GLfloat  right,
GLfloat  bottom,
GLfloat  top,
GLfloat  nearVal,
GLfloat  farVal 
)
inherited

Definition at line 131 of file glfMatrix.cpp.

void glfMatrix::MakePerspective ( GLfloat  fovy,
GLfloat  aspect,
GLfloat  zNear,
GLfloat  zFar 
)
inherited

Definition at line 147 of file glfMatrix.cpp.

void glfMatrix::MakeProjectionMatrix ( const ProjectionParametersPerspective params,
GLfloat  nearZZ,
GLfloat  farZ,
bool  useIdealK = false 
)
inherited
void glfMatrix::MakeProjectionMatrix ( ProjectionParametersPerspective  params,
GLfloat  nearZ,
GLfloat  farZ,
unsigned int  x0,
unsigned int  y0,
unsigned int  width,
unsigned int  height,
bool  useIdealK = false 
)
inherited
void glfMatrix::MakeProjectionMatrixNew ( const ProjectionParametersPerspective params,
GLfloat  nearZ,
GLfloat  farZ,
unsigned int  x0,
unsigned int  y0,
unsigned int  width,
unsigned int  height,
bool  useIdealK = false,
bool  flip = false 
)
inherited
void glfMatrix::MakeProjectionMatrixNew ( const ProjectionParametersPerspective params,
GLfloat  nearZ,
GLfloat  farZ,
bool  flip = false 
)
inherited
void glfMatrix::MakeRotation ( GLfloat  angle,
GLfloat  x,
GLfloat  y,
GLfloat  z 
)
inherited

Definition at line 77 of file glfMatrix.cpp.

void glfMatrix::MakeScalation ( GLfloat  x,
GLfloat  y,
GLfloat  z 
)
inherited

Definition at line 107 of file glfMatrix.cpp.

void glfMatrix::MakeTextureMatrix ( const ProjectionParametersPerspective params,
bool  flip = false 
)
inherited

Conversion from ProjectionParametersPerspective.

Parameters
fliphas to be used if a gl rendered texture is used but BIAS ProjectionParameters, since up and down interpretation is the other way around (got it?). flip does not have to be true if an BIAS image is uploaded without a previous call to BIAS::ImageBase::Flip(). (However it afterall depends on what you want to achieve!)

Definition at line 231 of file glfMatrix.cpp.

References BIAS::CoordinateTransform3D::GetGlobalToLocalTransform(), BIAS::ProjectionParametersBase::GetImageSize(), BIAS::ProjectionParametersPerspective::GetK(), BIAS::ProjectionParametersBase::GetPose(), BIAS::glfMatrix::Make(), BIAS::Matrix4x4< T >::Mult(), and BIAS::Matrix< T >::SetZero().

void glfMatrix::MakeTextureMatrixNew ( const ProjectionParametersPerspective params,
bool  flip 
)
inherited
void glfMatrix::MakeTranslation ( GLfloat  x,
GLfloat  y,
GLfloat  z 
)
inherited

Definition at line 99 of file glfMatrix.cpp.

Referenced by BIAS::glfMatrix::MakeLookAt().

void glfMatrix::MakeViewMatrix ( const ProjectionParametersBase params)
inherited
void glfMatrix::MakeViewMatrixNew ( const ProjectionParametersBase params)
inherited
unsigned int glfMatrix::Matrix2DIndexToRep ( unsigned int  row,
unsigned int  column 
)
staticinherited

Definition at line 524 of file glfMatrix.cpp.

Referenced by BIAS::glfMatrix::Multiply().

void glfMatrix::Multiply ( const glfMatrix a)
inherited

Definition at line 499 of file glfMatrix.cpp.

void BIAS::glfMatrix::Multiply ( Vector4< float >  vIn,
Vector4< float > &  vOut 
)
inherited
void glfMatrix::Multiply ( BIAS::Vector4< double >  vIn,
BIAS::Vector4< double > &  vOut 
)
inherited

Definition at line 529 of file glfMatrix.cpp.

References BIAS::glfMatrix::Matrix2DIndexToRep().

glfMatrix glfMatrix::operator* ( const glfMatrix a)
inherited

Definition at line 509 of file glfMatrix.cpp.

void glfMatrix::operator*= ( const glfMatrix a)
inherited

Definition at line 504 of file glfMatrix.cpp.

void glfMatrix::TransformPoint ( const Vector3< float > &  in,
Vector3< float > &  out 
) const
inherited

Transforms a point by the matrix.

Definition at line 480 of file glfMatrix.cpp.

Referenced by BIAS::glfMatrix::TransformPoint().

void glfMatrix::TransformPoint ( const Vector3< double > &  in,
Vector3< double > &  out 
) const
inherited

Definition at line 492 of file glfMatrix.cpp.

References BIAS::glfMatrix::TransformPoint().

Member Data Documentation

const glfMatrix glfMatrix::IDENTITY
staticinherited

The identity matrix.

Definition at line 158 of file glfMatrix.hh.

Referenced by BIAS::glfBatch::glfBatch(), and BIAS::glfMatrix::MakeIdentity().


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