#include <ImageStrategy.h>
Public Member Functions | |
ImageStrategy (unsigned int texName) | |
~ImageStrategy (void) | |
Protected Member Functions | |
void | createDisplayList () |
void | draw (const std::vector< unsigned long > &selectedIds) |
void | drawForPicking () |
Protected Attributes | |
unsigned int | textureName |
unsigned int | dlImage |
unsigned int | dlImagePicking |
unsigned int | dlWidth |
unsigned int | dlHeight |
ImageStrategy::ImageStrategy | ( | unsigned int | texName | ) |
Constructs an image strategy with texture given by the specified texture name.
texName | the OpenGL texture name to be used when drawing. |
ImageStrategy::~ImageStrategy | ( | void | ) |
Destroys this image strategy.
void ImageStrategy::createDisplayList | ( | ) | [protected] |
Creates the display list to draw this image as a texture in a quad.
void ImageStrategy::draw | ( | const std::vector< unsigned long > & | selectedIds | ) | [protected] |
Defines the drawing strategy for the associated component.
enablePicking | if true, draw for selection mode (adding the component id). |
void ImageStrategy::drawForPicking | ( | ) | [protected] |
Defines the drawing strategy for the associated component that should be used for picking.
unsigned int ImageStrategy::textureName [protected] |
The name of the texture used by this strategy.
unsigned int ImageStrategy::dlImage [protected] |
The display list identifier.
unsigned int ImageStrategy::dlImagePicking [protected] |
The picking display list identifier.
unsigned int ImageStrategy::dlWidth [protected] |
The width value currently used by the display list.
unsigned int ImageStrategy::dlHeight [protected] |
The height value currently used by the display list.