|
ome-qtwidgets
5.2.0
|
2D (xy) grid renderer. More...
#include <ome/qtwidgets/gl/Grid2D.h>
Inheritance diagram for ome::qtwidgets::gl::Grid2D:
Collaboration diagram for ome::qtwidgets::gl::Grid2D:Public Member Functions | |
| Grid2D (ome::compat::shared_ptr< ome::files::FormatReader > reader, ome::files::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::files::FormatReader > | reader |
| The image reader. | |
| ome::files::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().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
1.8.10