bioformats
5.1.8
|
Camera (modelview projection matrix manipulation) More...
Public Types | |
enum | ProjectionType { ORTHOGRAPHIC, PERSPECTIVE } |
Projection type. More... | |
Public Member Functions | |
float | zoomfactor () const |
Get zoom factor. More... | |
float | rotation () const |
Get rotation factor. More... | |
glm::mat4 | mvp () const |
Get modelview projection matrix. More... | |
Public Attributes | |
ProjectionType | projectionType |
Projection type. | |
int | zoom |
Zoom factor. | |
int | xTran |
x translation | |
int | yTran |
y translation. | |
int | zRot |
Rotation factor. | |
glm::mat4 | model |
Current model. | |
glm::mat4 | view |
Current view. | |
glm::mat4 | projection |
Current projection. | |
Camera (modelview projection matrix manipulation)
|
inline |
Get modelview projection matrix.
The separate model, view and projection matrices are combined to form a single matrix.
References model.
Referenced by ome::qtwidgets::GLView2D::render().
|
inline |
Get rotation factor.
Referenced by ome::qtwidgets::GLView2D::timerEvent().
|
inline |
Get zoom factor.
Convert linear signed zoom value to a factor (to the 10th power of the zoom value).
Referenced by ome::qtwidgets::GLView2D::render(), and ome::qtwidgets::GLView2D::timerEvent().