RenderTools::Image Class Reference

#include <Image.h>

Inheritance diagram for RenderTools::Image:

RenderTools::AbstractPropertyContainer RenderTools::ContainerProperty RenderTools::AbstractProperty RenderTools::InitializeInterface RenderTools::Sampler

List of all members.

Public Member Functions

 Image (void)
virtual ~Image (void)
virtual void createProperties (void)
virtual const string getTypeName (bool ofComponent=false) const
virtual void onPropertyEvent (const PropertyEvent &e)
virtual void onInitialize (void)
const string & getFilename (void) const
GLuint getWidth (void) const
GLuint getHeight (void) const
GLuint getChannels (void) const
GLuint getBytesPerPixel (void) const
GLenum getFormat (void) const
GLenum getType (void) const
const void * getData (void) const
void setData (const void *data, bool send=true)
void deleteImage (bool send=true)
void save (string filename)

Static Public Member Functions

static PropertyPtr create (const XMLNodePtr &xml=XMLNodePtr())
static void screenDump (int w, int h, string filename)

Protected Attributes

string m_filename
bool m_fileNotFound
GLuint m_w
GLuint m_h
GLuint m_channels
GLint m_bytespp
GLenum m_format
GLenum m_type
void * m_data


Detailed Description

Definition at line 13 of file Image.h.


Constructor & Destructor Documentation

RenderTools::Image::Image ( void   ) 

Definition at line 19 of file Image.cpp.

RenderTools::Image::~Image ( void   )  [virtual]

Definition at line 105 of file Image.cpp.


Member Function Documentation

PropertyPtr RenderTools::Image::create ( const XMLNodePtr xml = XMLNodePtr()  )  [static]

Reimplemented in RenderTools::Sampler.

Definition at line 38 of file Image.cpp.

void RenderTools::Image::createProperties ( void   )  [virtual]

Reimplemented from RenderTools::AbstractPropertyContainer.

Reimplemented in RenderTools::Sampler.

Definition at line 46 of file Image.cpp.

void RenderTools::Image::deleteImage ( bool  send = true  ) 

propertyChanged();

Definition at line 225 of file Image.cpp.

GLuint RenderTools::Image::getBytesPerPixel ( void   )  const

Definition at line 177 of file Image.cpp.

GLuint RenderTools::Image::getChannels ( void   )  const

Definition at line 173 of file Image.cpp.

const void * RenderTools::Image::getData ( void   )  const

Definition at line 189 of file Image.cpp.

const string & RenderTools::Image::getFilename ( void   )  const

Definition at line 161 of file Image.cpp.

GLenum RenderTools::Image::getFormat ( void   )  const

Definition at line 181 of file Image.cpp.

GLuint RenderTools::Image::getHeight ( void   )  const

Reimplemented in RenderTools::Sampler.

Definition at line 169 of file Image.cpp.

GLenum RenderTools::Image::getType ( void   )  const

Definition at line 185 of file Image.cpp.

const string RenderTools::Image::getTypeName ( bool  ofComponent = false  )  const [virtual]

Reimplemented from RenderTools::ContainerProperty.

Reimplemented in RenderTools::Sampler.

Definition at line 101 of file Image.cpp.

GLuint RenderTools::Image::getWidth ( void   )  const

Reimplemented in RenderTools::Sampler.

Definition at line 165 of file Image.cpp.

void RenderTools::Image::onInitialize ( void   )  [virtual]

Reimplemented from RenderTools::AbstractPropertyContainer.

Reimplemented in RenderTools::Sampler.

Definition at line 114 of file Image.cpp.

void RenderTools::Image::onPropertyEvent ( const PropertyEvent e  )  [virtual]

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 157 of file Image.cpp.

void RenderTools::Image::save ( string  filename  ) 

Definition at line 247 of file Image.cpp.

void RenderTools::Image::screenDump ( int  w,
int  h,
string  filename 
) [static]

Definition at line 193 of file Image.cpp.

void RenderTools::Image::setData ( const void *  data,
bool  send = true 
)

propertyChanged();

Definition at line 235 of file Image.cpp.


Member Data Documentation

GLint RenderTools::Image::m_bytespp [protected]

Definition at line 43 of file Image.h.

GLuint RenderTools::Image::m_channels [protected]

Definition at line 42 of file Image.h.

void* RenderTools::Image::m_data [protected]

Definition at line 46 of file Image.h.

string RenderTools::Image::m_filename [protected]

Definition at line 38 of file Image.h.

Definition at line 39 of file Image.h.

GLenum RenderTools::Image::m_format [protected]

Definition at line 44 of file Image.h.

GLuint RenderTools::Image::m_h [protected]

Definition at line 41 of file Image.h.

GLenum RenderTools::Image::m_type [protected]

Definition at line 45 of file Image.h.

GLuint RenderTools::Image::m_w [protected]

Definition at line 40 of file Image.h.


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

Generated on Wed Jan 26 00:15:36 2011 for RenderTools by  doxygen 1.5.8