Graphics::Drawable Class Reference

#include <Drawable.hh>

Inheritance diagram for Graphics::Drawable:

Inheritance graph
[legend]
Collaboration diagram for Graphics::Drawable:

Collaboration graph
[legend]

List of all members.


Detailed Description

Abstract drawable interface.

Definition at line 23 of file Drawable.hh.


Public Member Functions

 Drawable (Int Width, Int Height)
virtual ~Drawable ()
virtual Int GetWidth () const
virtual Int GetHeight () const
virtual void PutPixel (Int x, Int y, const World::Color &C)=0
virtual void Refresh ()=0
virtual void Save (const std::string Filename) const =0

Protected Attributes

const Int Width
const Int Height

Constructor & Destructor Documentation

Graphics::Drawable::Drawable ( Int  Width,
Int  Height 
) [inline]

Interface constructor

Definition at line 31 of file Drawable.hh.

virtual Graphics::Drawable::~Drawable (  )  [inline, virtual]

Compulsory virtual destructor

Definition at line 35 of file Drawable.hh.


Member Function Documentation

virtual Int Graphics::Drawable::GetWidth (  )  const [inline, virtual]

Return width

Definition at line 38 of file Drawable.hh.

References Width.

Referenced by Render::Raytracer::Render().

Here is the caller graph for this function:

virtual Int Graphics::Drawable::GetHeight (  )  const [inline, virtual]

Return height

Definition at line 43 of file Drawable.hh.

References Height.

Referenced by Render::Raytracer::Render().

Here is the caller graph for this function:

virtual void Graphics::Drawable::PutPixel ( Int  x,
Int  y,
const World::Color C 
) [pure virtual]

Puts pixel of specified color at specified location

Implemented in Graphics::Image, and Graphics::Screen.

Referenced by Render::Raytracer::Render().

Here is the caller graph for this function:

virtual void Graphics::Drawable::Refresh (  )  [pure virtual]

Refreshes drawable (stores for images

Implemented in Graphics::Image, and Graphics::Screen.

virtual void Graphics::Drawable::Save ( const std::string  Filename  )  const [pure virtual]

Saves image/screen/whatever to the file

Implemented in Graphics::Image, and Graphics::Screen.


Member Data Documentation

const Int Graphics::Drawable::Width [protected]

const Int Graphics::Drawable::Height [protected]

Drawable size

Definition at line 26 of file Drawable.hh.

Referenced by GetHeight(), and Graphics::Image::PutPixel().


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

Generated on Wed Mar 12 00:35:07 2008 for blaRAY by  doxygen 1.5.5