ContRap-Libraries
Public Member Functions

crp::GLPicture Class Reference

Class GLPicture represents a quad primitive with a texture drawn on it. More...

#include <glpicture.h>

Inheritance diagram for crp::GLPicture:
crp::GLPrimitive

Public Member Functions

 GLPicture (const GLTexture &texture, const GLVertex &position, double width=1.0, double height=1.0, double px=0.0, double py=0.0)
 Constructor from the coordinates of the picture.
 ~GLPicture ()
 Destructor.
void make_display_list (int style) const
 Draws the point into an OpenGL display list.
void set_corners (const GLPixel &tl, const GLPixel &bl, const GLPixel &tr, const GLPixel &br)
 Sets the corners of the image position.
virtual GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLPicture represents a quad primitive with a texture drawn on it.


Constructor & Destructor Documentation

crp::GLPicture::GLPicture ( const GLTexture texture,
const GLVertex position,
double  width = 1.0,
double  height = 1.0,
double  px = 0.0,
double  py = 0.0 
)

Constructor from the coordinates of the picture.

Parameters:
textureTexture of the picture
positionPosition of the primitive
widthWidth of the image
heightHeight of the image
pxDisplacement to the image center in image coordinates
pyDisplacement to the image center in image coordinates
crp::GLPicture::~GLPicture ( )

Destructor.


Member Function Documentation

virtual GLPrimitiveType crp::GLPicture::get_type ( ) const [inline, virtual]

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLPicture::make_display_list ( int  style) const [virtual]

Draws the point into an OpenGL display list.

Parameters:
flagsStyle flags used to filter out drawing

Implements crp::GLPrimitive.

void crp::GLPicture::set_corners ( const GLPixel tl,
const GLPixel bl,
const GLPixel tr,
const GLPixel br 
)

Sets the corners of the image position.

Parameters:
tlTop left pixel of the image
blTop left pixel of the image
trTop left pixel of the image
brTop left pixel of the image

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