|
hgl 0.5.25
A compiler/interpreter suite for developing images (plugin development)
|
Empty implementation of the HGL::ImageOutput::IPreRenderOutput interface. More...
#include "defaultprerenderoutput.h"
Public Types | |
| enum | RENDEREVENT { START, END } |
| Indicates the state of rendering. More... | |
Public Member Functions | |
Default implementations of the information functions | |
| virtual std::string | getOutputFilename () const |
| Get the effective output filename of the rendered picture. More... | |
Empty default implementations of bitmap render methods | |
| virtual void | writeImage (const ICanvas &, const std::string &=std::string()) const throw (ImageOutputException) |
| Writes an ICanvas bitmap into an image. More... | |
Empty default implementations of pre-render notifications | |
| virtual void | update (const RENDEREVENT) throw (ImageOutputException) |
| Notification about an general render event. More... | |
| virtual void | update (const ICanvas::TRANSFORMATIONINFO *const) throw (ImageOutputException) |
| Notification about transformation information available. More... | |
| virtual void | update (const PointPrimitive *const) throw (ImageOutputException) |
| Notification about a point to render. More... | |
| virtual void | update (const LinePrimitive *const) throw (ImageOutputException) |
| Notification about a line to render. More... | |
| virtual void | update (const CurvePrimitive *const) throw (ImageOutputException) |
| Notification about a curve to render. More... | |
| virtual void | update (const PolyPrimitive *const) throw (ImageOutputException) |
| Notification about a poly to render. More... | |
| virtual void | update (const EllipsePrimitive *const) throw (ImageOutputException) |
| Notification about an ellipse to render. More... | |
| virtual void | update (const TextPrimitive *const) throw (ImageOutputException) |
| Notification about a text to render. More... | |
Command line options support | |
| virtual struct::poptOption * | getPoptOptions () const |
| Get plugin supplied command line options. More... | |
Protected Member Functions | |
| void | announceOutputFilename (const std::string &outputFilename) const |
| Announces a (new) output filename. More... | |
Empty implementation of the HGL::ImageOutput::IPreRenderOutput interface.
You can use this class if you are not interested in implementing all notifications in your plugin.
The default iplemenentations are empty.
See Image Output Plugins in detail for more information.
|
inherited |
|
protected |
Announces a (new) output filename.
A plugin may add a suffix or even alter the output filename at all. In this case the new filename can get announced to the interpreter, which will use it furthermore.
|
virtual |
Get the effective output filename of the rendered picture.
It should return an empty std::string if the standard output is used
Implements HGL::ImageOutput::IOutput.
|
virtualinherited |
Get plugin supplied command line options.
The default implementation returns NULL i.e. it won't provide own command line options
In your POPT_ARG_CALLBACK you can indicate HGL to exit gracefully by throwing HGL::Exception::PoptExitException
|
virtual | ||||||||||||||
Notification about an general render event.
| evt | the event |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||
Notification about transformation information available.
| ti | the transformation information |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||
Notification about a point to render.
| primitive | the point primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||
Notification about a line to render.
| primitive | the line primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||
Notification about a curve to render.
| primitive | the curve primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||
Notification about a poly to render.
| primitive | the poly primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||
Notification about an ellipse to render.
| primitive | the ellipse primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||
Notification about a text to render.
| primitive | the text primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implements HGL::ImageOutput::IPreRenderOutput.
|
virtual | ||||||||||||||||||||
Writes an ICanvas bitmap into an image.
| canvas | the ICanvas bitmap to write |
| filename | filename to write the image to, if the filename is the empty string it should write to the standard output |
| ImageOutputException | if an unrecoverable error occured while writing |
Implements HGL::ImageOutput::IOutput.
1.8.5