#include <Drawable.hh>


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 |
| 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.
| 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().

| 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().

| 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().

| 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.
const Int Graphics::Drawable::Width [protected] |
Drawable size
Definition at line 26 of file Drawable.hh.
Referenced by Graphics::Image::Get(), GetWidth(), Graphics::Screen::PutPixel(), and Graphics::Image::PutPixel().
const Int Graphics::Drawable::Height [protected] |
Drawable size
Definition at line 26 of file Drawable.hh.
Referenced by GetHeight(), and Graphics::Image::PutPixel().
1.5.5