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

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

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

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

Public Member Functions

 Image2D (ome::compat::shared_ptr< ome::bioformats::FormatReader > reader, ome::bioformats::dimension_size_type series, QObject *parent=0)
 Create a 2D image. More...
 
virtual ~Image2D ()
 Destructor.
 
void render (const glm::mat4 &mvp)
 Render the image. More...
 
- Public Member Functions inherited from ome::qtwidgets::gl::Image2D
 Image2D (ome::compat::shared_ptr< ome::bioformats::FormatReader > reader, ome::bioformats::dimension_size_type series, QObject *parent=0)
 Create a 2D image. More...
 
virtual void create ()
 Create GL buffers. More...
 
void setPlane (ome::bioformats::dimension_size_type plane)
 Set the plane to render. More...
 
const glm::vec3 & getMin () const
 Get minimum limit for linear contrast. More...
 
void setMin (const glm::vec3 &min)
 Set minimum limit for linear contrast. More...
 
const glm::vec3 & getMax () const
 Get maximum limit for linear contrast. More...
 
void setMax (const glm::vec3 &max)
 Set maximum limit for linear contrast. More...
 
unsigned int texture ()
 Get texture ID. More...
 
unsigned int lut ()
 Get LUT ID. More...
 

Private Attributes

glsl::v110::GLImageShader2Dimage_shader
 The shader program for image rendering.
 

Additional Inherited Members

- Public Types inherited from ome::qtwidgets::gl::Image2D
enum  RangePolicy { StorageRange, BPPRange, PlaneRange, ImageRange }
 Range of min/max adjustment for linear contrast. More...
 
- Protected Member Functions inherited from ome::qtwidgets::gl::Image2D
virtual void setSize (const glm::vec2 &xlim, const glm::vec2 &ylim)
 Set the size of the x and y dimensions. More...
 
- Protected Attributes inherited from ome::qtwidgets::gl::Image2D
QOpenGLBuffer image_vertices
 The image vertices.
 
QOpenGLBuffer image_texcoords
 The image texture coordinates.
 
QOpenGLBuffer image_elements
 The image elements.
 
unsigned int textureid
 The identifier of the texture owned and used by this object.
 
unsigned int lutid
 The identifier of the LUTs owned and used by this object.
 
glm::vec3 texmin
 Linear contrast minimum limits.
 
glm::vec3 texmax
 Linear contrast maximum limits.
 
glm::vec3 texcorr
 Linear contrast correction multipliers.
 
ome::compat::shared_ptr< ome::bioformats::FormatReaderreader
 The image reader.
 
ome::bioformats::dimension_size_type series
 The image series.
 
ome::bioformats::dimension_size_type plane
 The current image plane.
 

Detailed Description

2D (xy) image renderer.

Draws the specified image, using a user-selectable plane.

The render is greyscale with a per-channel min/max for linear contrast.

Constructor & Destructor Documentation

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

Create a 2D image.

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::Image2D::render ( const glm::mat4 &  mvp)
virtual

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