bioformats
5.1.8
|
2D (xy) grid renderer. More...
#include <ome/qtwidgets/gl/Grid2D.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... | |
virtual | ~Grid2D ()=0 |
Destructor. | |
virtual void | create () |
Create GL buffers. More... | |
virtual void | render (const glm::mat4 &mvp, float zoom)=0 |
Render the grid. More... | |
Protected Member Functions | |
virtual void | setSize (const glm::vec2 &xlim, const glm::vec2 &ylim) |
Set the size of the x and y axes. More... | |
Protected Attributes | |
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. |
References setSize().
|
virtual |
Create GL buffers.
Referenced by ome::qtwidgets::GLView2D::initialize().
|
pure 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. |
Implemented in ome::qtwidgets::gl::v20::Grid2D.
Referenced by ome::qtwidgets::GLView2D::render().
|
protectedvirtual |
Set the size of the x and y axes.
xlim | the x axis limits (range). |
ylim | the y axis limits (range). |
References grid_elements, and grid_vertices.
Referenced by Grid2D().