bioformats
5.1.6
|
2D (xy) grid renderer. More...
#include <ome/qtwidgets/gl/v20/V20Grid2D.h>
Public Member Functions | |
Grid2D (ome::compat::shared_ptr< ome::bioformats::FormatReader > reader, ome::bioformats::dimension_size_type series, QObject *parent=0) | |
Create a 2D grid. More... | |
~Grid2D () | |
Destructor. | |
void | render (const glm::mat4 &mvp, float zoom) |
Render the grid. More... | |
Public Member Functions inherited from ome::qtwidgets::gl::Grid2D | |
Grid2D (ome::compat::shared_ptr< ome::bioformats::FormatReader > reader, ome::bioformats::dimension_size_type series, QObject *parent=0) | |
Create a 2D grid. More... | |
virtual void | create () |
Create GL buffers. More... | |
Private Attributes | |
glsl::v110::GLLineShader2D * | grid_shader |
The shader program for grid shading. | |
Additional Inherited Members | |
Protected Member Functions inherited from ome::qtwidgets::gl::Grid2D | |
virtual void | setSize (const glm::vec2 &xlim, const glm::vec2 &ylim) |
Set the size of the x and y axes. More... | |
Protected Attributes inherited from ome::qtwidgets::gl::Grid2D | |
QOpenGLBuffer | grid_vertices |
The vertices for the grid. | |
QOpenGLBuffer | grid_elements |
The elements for the grid. | |
ome::compat::shared_ptr< ome::bioformats::FormatReader > | reader |
The image reader. | |
ome::bioformats::dimension_size_type | series |
The image series. | |
2D (xy) grid renderer.
Draws x and y gridlines for the specified image.
|
explicit |
Create a 2D grid.
The size and position will be taken from the specified image.
reader | the image reader. |
series | the image series. |
parent | the parent of this object. |
|
virtual |
Render the grid.
The zoom level is used to selectively draw gridlines of differing magnitude depending upon the magnification.
mvp | the model view projection matrix. |
zoom | the zoom level. |
Implements ome::qtwidgets::gl::Grid2D.
References ome::qtwidgets::gl::check_gl(), ome::qtwidgets::glsl::v110::GLLineShader2D::disableColour(), ome::qtwidgets::glsl::v110::GLLineShader2D::disableCoords(), ome::qtwidgets::glsl::v110::GLLineShader2D::enableColour(), ome::qtwidgets::glsl::v110::GLLineShader2D::enableCoords(), ome::qtwidgets::gl::Grid2D::grid_elements, grid_shader, ome::qtwidgets::gl::Grid2D::grid_vertices, ome::qtwidgets::glsl::v110::GLLineShader2D::setColour(), ome::qtwidgets::glsl::v110::GLLineShader2D::setCoords(), ome::qtwidgets::glsl::v110::GLLineShader2D::setModelViewProjection(), and ome::qtwidgets::glsl::v110::GLLineShader2D::setZoom().