GlutImage Struct Reference

An Image drawn to the screen. More...

`#include <SurgSim/Testing/VisualTestCommon/GlutRenderer.h>`

Inheritance diagram for GlutImage:

## Public Types

typedef SurgSim::DataStructures::Image< float > | ImageType

## Public Member Functions

| GlutImage (const Eigen::AlignedBox< double, 2 > &bounds)
| Constuctor. More...
virtual void | draw ()
| Draws the image with Glut. More...
Public Member Functions inherited from GlutRenderObject
| GlutRenderObject ()
| Constructor initializes pose as identity (no rotation or translation) More...
virtual | ~GlutRenderObject ()

## Public Attributes

SurgSim::Framework::LockedContainer< ImageType > | image
| The image to draw. More...
Public Attributes inherited from GlutRenderObject
SurgSim::Math::RigidTransform3d | pose
| Pose (rotation and translation) of the object. More...

## Private Attributes

Eigen::AlignedBox< double, 2 > | m_bounds
| Window coordinates to draw the image. More...
unsigned int | m_texture
| Texture used for holding the image. More...
bool | m_firstRun
| Is this the fist run of draw. More...

## Detailed Description

An Image drawn to the screen.

## Member Typedef Documentation

## ImageType

typedef SurgSim::DataStructures::Image<float> GlutImage::ImageType

## Constructor & Destructor Documentation

## GlutImage()

GlutImage::GlutImage | ( | const Eigen::AlignedBox< double, 2 > & | bounds | ) |

inline explicit

Constuctor.

Parameters

  bounds | The bounds, in window coordinates ([-1..1], [-1..1]), to draw the image.

## Member Function Documentation

## draw()

void GlutImage::draw | ( |  | ) |

virtual

Draws the image with Glut.

Implements GlutRenderObject.

## Member Data Documentation

## image

SurgSim::Framework::LockedContainer<ImageType> GlutImage::image

The image to draw.

## m_bounds

Eigen::AlignedBox<double, 2> GlutImage::m_bounds

private

Window coordinates to draw the image.

## m_firstRun

bool GlutImage::m_firstRun

private

Is this the fist run of draw.

## m_texture

unsigned int GlutImage::m_texture

private

Texture used for holding the image.

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

- SurgSim/Testing/VisualTestCommon/GlutRenderer.h
- SurgSim/Testing/VisualTestCommon/GlutRenderer.cpp