Basic Image AlgorithmS Library
2.8.0
|
This class allows to use the currently set RenderMatrix in the global opengl state! More...
#include <OpenGLFramework/Passive/glfPassiveMatrix.hh>
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 ¶ms, bool flip=false) |
Conversion from ProjectionParametersPerspective . More... | |
void | MakeViewMatrix (const ProjectionParametersBase ¶ms) |
void | MakeViewMatrixNew (const ProjectionParametersBase ¶ms) |
void | MakeProjectionMatrix (const ProjectionParametersPerspective ¶ms, 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 ¶ms, 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 ¶ms, GLfloat nearZ, GLfloat farZ, bool flip=false) |
void | MakeTextureMatrixNew (const ProjectionParametersPerspective ¶ms, 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... | |
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.
Definition at line 47 of file glfPassiveMatrix.hh.
|
inlineinherited |
Definition at line 171 of file glfMatrix.hh.
Referenced by BIAS::glfShaderProgram::SetUniform().
|
inlinevirtual |
Loads the matrix in OpenGL.
Reimplemented from BIAS::glfMatrix.
Definition at line 50 of file glfPassiveMatrix.hh.
|
inherited |
Initializes the glf matrix from a BIAS matrix.
Definition at line 193 of file glfMatrix.cpp.
Referenced by BIAS::glfMatrix::Make(), BIAS::glfMatrix::MakeProjectionMatrix(), BIAS::glfMatrix::MakeProjectionMatrixNew(), BIAS::glfMatrix::MakeTextureMatrix(), BIAS::glfMatrix::MakeTextureMatrixNew(), BIAS::glfMatrix::MakeViewMatrix(), and BIAS::glfMatrix::MakeViewMatrixNew().
|
inherited |
Definition at line 201 of file glfMatrix.cpp.
References BIAS::glfMatrix::Make().
Initializes the render matrix as an affine mapping.
Definition at line 206 of file glfMatrix.cpp.
Referenced by BIAS::glfMatrix::MakeAffine().
Definition at line 214 of file glfMatrix.cpp.
References BIAS::glfMatrix::MakeAffine().
|
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.
|
inherited |
Definition at line 115 of file glfMatrix.cpp.
|
inherited |
Definition at line 72 of file glfMatrix.cpp.
References BIAS::glfMatrix::IDENTITY.
Referenced by BIAS::PlainPerPixelProcessing::InitVertexTransformation_(), and BIAS::TemplateSpecializedBatch::InitVertexTransformation_().
|
inherited |
Definition at line 162 of file glfMatrix.cpp.
References BIAS::Vector3< T >::CrossProduct(), BIAS::glfMatrix::MakeTranslation(), and BIAS::Vector3< T >::Normalize().
|
inherited |
Definition at line 131 of file glfMatrix.cpp.
|
inherited |
Definition at line 147 of file glfMatrix.cpp.
|
inherited |
Definition at line 292 of file glfMatrix.cpp.
References BIAS::ProjectionParametersPerspective::GetIdealImageSize(), and BIAS::ProjectionParametersBase::GetImageSize().
|
inherited |
|
inherited |
Definition at line 314 of file glfMatrix.cpp.
References BIAS::ProjectionParametersPerspective::GetIdealK(), BIAS::ProjectionParametersPerspective::GetK(), BIAS::glfMatrix::Make(), and BIAS::Matrix< T >::SetZero().
Referenced by BIAS::glfMatrix::MakeProjectionMatrixNew(), and BIAS::GLProjectionParametersPerspective::UpdateGLProjectionMatrix_().
|
inherited |
Definition at line 305 of file glfMatrix.cpp.
References BIAS::ProjectionParametersBase::GetImageSize(), and BIAS::glfMatrix::MakeProjectionMatrixNew().
|
inherited |
Definition at line 77 of file glfMatrix.cpp.
|
inherited |
Definition at line 107 of file glfMatrix.cpp.
|
inherited |
Conversion from ProjectionParametersPerspective
.
flip | has 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().
|
inherited |
Definition at line 367 of file glfMatrix.cpp.
References BIAS::CoordinateTransform3D::GetGlobalToLocalTransform(), BIAS::ProjectionParametersBase::GetImageSize(), BIAS::ProjectionParametersPerspective::GetK(), BIAS::ProjectionParametersBase::GetPose(), BIAS::glfMatrix::Make(), and BIAS::Matrix< T >::SetZero().
|
inherited |
Definition at line 99 of file glfMatrix.cpp.
Referenced by BIAS::glfMatrix::MakeLookAt().
|
inherited |
Definition at line 271 of file glfMatrix.cpp.
References BIAS::ProjectionParametersBase::GetC(), BIAS::ProjectionParametersBase::GetR(), BIAS::glfMatrix::Make(), and BIAS::Matrix3x3< T >::Transpose().
|
inherited |
Definition at line 287 of file glfMatrix.cpp.
References BIAS::CoordinateTransform3D::GetGlobalToLocalTransform(), BIAS::ProjectionParametersBase::GetPose(), and BIAS::glfMatrix::Make().
|
staticinherited |
Definition at line 524 of file glfMatrix.cpp.
Referenced by BIAS::glfMatrix::Multiply().
|
inherited |
Definition at line 499 of file glfMatrix.cpp.
|
inherited |
Definition at line 529 of file glfMatrix.cpp.
References BIAS::glfMatrix::Matrix2DIndexToRep().
Definition at line 509 of file glfMatrix.cpp.
|
inherited |
Definition at line 504 of file glfMatrix.cpp.
|
inherited |
Transforms a point by the matrix.
Definition at line 480 of file glfMatrix.cpp.
Referenced by BIAS::glfMatrix::TransformPoint().
|
inherited |
Definition at line 492 of file glfMatrix.cpp.
References BIAS::glfMatrix::TransformPoint().
|
staticinherited |
The identity matrix.
Definition at line 158 of file glfMatrix.hh.
Referenced by BIAS::glfBatch::glfBatch(), and BIAS::glfMatrix::MakeIdentity().