Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SkelGuiImageDrawer Class Reference

Draw images from camera in texture. More...

#include "image_drawer.h"

Inheritance diagram for SkelGuiImageDrawer:

List of all members.

Public Member Functions

 SkelGuiImageDrawer (firevision::Camera *cam)
 Constructor.
 ~SkelGuiImageDrawer ()
 Destructor.
void fill_texture ()
 Fill texture.
- Public Member Functions inherited from SkelGuiTextureDrawer
 SkelGuiTextureDrawer (unsigned int width, unsigned int height)
 Constructor.
virtual ~SkelGuiTextureDrawer ()
 Destructor.
void draw ()
 Draw texture to screen.

Additional Inherited Members

- Protected Member Functions inherited from SkelGuiTextureDrawer
void copy_rgb_to_texture (const unsigned char *rgb_buf)
 Copy an RGB buffer to texture.
- Protected Attributes inherited from SkelGuiTextureDrawer
unsigned char * __texture
 Texture buffer.
const unsigned int __width
 Width of visible area from texture.
const unsigned int __height
 Height of visible area from texture.
const unsigned int __texture_width
 Real texture width.
const unsigned int __texture_height
 Real texture height.

Detailed Description

Draw images from camera in texture.

Uses texture mapping to show an image acquired from a camera in the background.

Author:
Tim Niemueller

Definition at line 32 of file image_drawer.h.


Constructor & Destructor Documentation

SkelGuiImageDrawer::SkelGuiImageDrawer ( firevision::Camera cam)

Constructor.

Parameters:
camcamera to capture image with

Definition at line 47 of file image_drawer.cpp.

References SkelGuiTextureDrawer::__height, and SkelGuiTextureDrawer::__width.

SkelGuiImageDrawer::~SkelGuiImageDrawer ( )

Destructor.

Definition at line 56 of file image_drawer.cpp.


Member Function Documentation


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