MeVisLabToolboxReference
View2DIcons Class Reference

Defines and implements a class to store multiple images and draw them via OpenGL. More...

#include <View2DIcons.h>

List of all members.

Public Member Functions

 View2DIcons ()
 Constructor and destructor.
 ~View2DIcons ()
void drawIcon (int idx, float dx1, float dy1, float dx2, float dy2)
 draw the icon at index i
bool addIcon (char *filename)
 add icon from file
bool addIcons (char *filename, int width, int height)
 add icons from file by splitting the file into width x height blocks
View2DTexturegetIcon (int index)
 get icon at index
int numIcons ()
 get number of icons
void removeIcon (int index)
 remove an icon
void clearIcons ()
 clear all icons

Detailed Description

Defines and implements a class to store multiple images and draw them via OpenGL.

Definition at line 22 of file View2DIcons.h.


Constructor & Destructor Documentation

View2DIcons::View2DIcons ( )

Constructor and destructor.

View2DIcons::~View2DIcons ( )

Member Function Documentation

bool View2DIcons::addIcon ( char *  filename)

add icon from file

bool View2DIcons::addIcons ( char *  filename,
int  width,
int  height 
)

add icons from file by splitting the file into width x height blocks

void View2DIcons::clearIcons ( )

clear all icons

void View2DIcons::drawIcon ( int  idx,
float  dx1,
float  dy1,
float  dx2,
float  dy2 
)

draw the icon at index i

View2DTexture* View2DIcons::getIcon ( int  index)

get icon at index

int View2DIcons::numIcons ( )

get number of icons

void View2DIcons::removeIcon ( int  index)

remove an icon


The documentation for this class was generated from the following file: