![]() |
An Image drawn to the screen. More...
#include <SurgSim/Testing/VisualTestCommon/GlutRenderer.h>
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... | |
![]() | |
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... | |
![]() | |
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... | |
An Image drawn to the screen.
typedef SurgSim::DataStructures::Image<float> GlutImage::ImageType |
|
inlineexplicit |
Constuctor.
bounds | The bounds, in window coordinates ([-1..1], [-1..1]), to draw the image. |
|
virtual |
Draws the image with Glut.
Implements GlutRenderObject.
SurgSim::Framework::LockedContainer<ImageType> GlutImage::image |
The image to draw.
|
private |
Window coordinates to draw the image.
|
private |
Is this the fist run of draw.
|
private |
Texture used for holding the image.