ImageStrategy Class Reference

#include <ImageStrategy.h>

List of all members.

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


Detailed Description

This strategy loads an image file and displays it in a quad.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
August 3, 2007


Constructor & Destructor Documentation

ImageStrategy::ImageStrategy ( unsigned int  texName  ) 

Constructs an image strategy with texture given by the specified texture name.

Parameters:
texName the OpenGL texture name to be used when drawing.

ImageStrategy::~ImageStrategy ( void   ) 

Destroys this image strategy.


Member Function Documentation

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.

Parameters:
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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:08 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2