Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
GlutImage Struct Reference

An Image drawn to the screen. More...

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

Inheritance diagram for GlutImage:
GlutRenderObject

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< ImageTypeimage
 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

Constructor & Destructor Documentation

§ GlutImage()

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

Constuctor.

Parameters
boundsThe 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

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: