bioformats  5.1.8
Public Member Functions | Private Attributes | List of all members
ome::qtwidgets::gl::v20::Grid2D Class Reference

2D (xy) grid renderer. More...

#include <ome/qtwidgets/gl/v20/V20Grid2D.h>

+ Inheritance diagram for ome::qtwidgets::gl::v20::Grid2D:
+ Collaboration diagram for ome::qtwidgets::gl::v20::Grid2D:

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::GLLineShader2Dgrid_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::FormatReaderreader
 The image reader.
 
ome::bioformats::dimension_size_type series
 The image series.
 

Detailed Description

2D (xy) grid renderer.

Draws x and y gridlines for the specified image.

Constructor & Destructor Documentation

ome::qtwidgets::gl::v20::Grid2D::Grid2D ( ome::compat::shared_ptr< ome::bioformats::FormatReader reader,
ome::bioformats::dimension_size_type  series,
QObject *  parent = 0 
)
explicit

Create a 2D grid.

The size and position will be taken from the specified image.

Parameters
readerthe image reader.
seriesthe image series.
parentthe parent of this object.

Member Function Documentation

void ome::qtwidgets::gl::v20::Grid2D::render ( const glm::mat4 &  mvp,
float  zoom 
)
virtual

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