Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::xgl::Matrix Class Reference

A 4x4 matrix class used in arrays and has layout of 16x GLfloat. More...

#include <Matrix.h>

Inheritance diagram for sf::xgl::Matrix:
Collaboration diagram for sf::xgl::Matrix:

Public Member Functions

 Matrix ()
 Default constructor initializing with a black color.
 
 Matrix (const QMatrix4x4 &matrix)
 Constructor for Qt QMatrix4x4.
 
 Matrix (const Matrix44 &matrix)
 Constructor for Qt QMatrix4x4.
 
 operator const float * () const
 Gets the float pointer and allows omitting a call for the #data() method.
 
 operator float * ()
 Gets the float pointer and allows omitting a call for the #data() method.
 
bool isZero () const
 Checks if the 'w' value is non-zero.
 
 operator QMatrix4x4 () const
 Conversion operator when passing this class where a QMatrix4x4 is needed.
 
 operator Matrix44 () const
 Conversion operator when passing this class where a #Matrix44 is needed.
 
Matrixoperator= (const QMatrix4x4 &matrix)
 Assignment operator accepting a QMatrix4x4 instance.
 
Matrixoperator= (const Matrix44 &matrix)
 Assignment operator accepting a #Matrix44 instance.
 

Detailed Description

A 4x4 matrix class used in arrays and has layout of 16x GLfloat.

Constructor & Destructor Documentation

◆ Matrix() [1/3]

sf::xgl::Matrix::Matrix ( )

Default constructor initializing with a black color.

◆ Matrix() [2/3]

sf::xgl::Matrix::Matrix ( const QMatrix4x4 &  matrix)
explicit

Constructor for Qt QMatrix4x4.

◆ Matrix() [3/3]

sf::xgl::Matrix::Matrix ( const Matrix44 &  matrix)
explicit

Constructor for Qt QMatrix4x4.

Member Function Documentation

◆ isZero()

bool sf::xgl::Matrix::isZero ( ) const

Checks if the 'w' value is non-zero.

Returns
True when zero.

◆ operator const float *()

sf::xgl::Matrix::operator const float * ( ) const

Gets the float pointer and allows omitting a call for the #data() method.

◆ operator float *()

sf::xgl::Matrix::operator float * ( )

Gets the float pointer and allows omitting a call for the #data() method.

◆ operator Matrix44()

sf::xgl::Matrix::operator Matrix44 ( ) const

Conversion operator when passing this class where a #Matrix44 is needed.

◆ operator QMatrix4x4()

sf::xgl::Matrix::operator QMatrix4x4 ( ) const

Conversion operator when passing this class where a QMatrix4x4 is needed.

◆ operator=() [1/2]

Matrix & sf::xgl::Matrix::operator= ( const Matrix44 &  matrix)

Assignment operator accepting a #Matrix44 instance.

◆ operator=() [2/2]

Matrix & sf::xgl::Matrix::operator= ( const QMatrix4x4 &  matrix)

Assignment operator accepting a QMatrix4x4 instance.


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