Interface for writing images into a file. More...
#include <iprerenderoutput.h>
Public Types | |
| enum | RENDEREVENT { START, END } |
Indicates the state of rendering. More... | |
Public Member Functions | |
Information functions | |
| virtual std::string | getOutputFilename () const =0 |
| Get the effective output filename of the rendered picture. | |
Command line options support | |
| virtual struct::poptOption * | getPoptOptions () const |
| Get plugin supplied command line options. | |
Pre-render notifications | |
| virtual void | update (const TextPrimitive *const primitive)=0 throw (ImageOutputException) |
| Notification about a text to render. | |
| virtual void | update (const EllipsePrimitive *const primitive)=0 throw (ImageOutputException) |
| Notification about an ellipse to render. | |
| virtual void | update (const PolyPrimitive *const primitive)=0 throw (ImageOutputException) |
| Notification about a poly to render. | |
| virtual void | update (const CurvePrimitive *const primitive)=0 throw (ImageOutputException) |
| Notification about a curve to render. | |
| virtual void | update (const LinePrimitive *const primitive)=0 throw (ImageOutputException) |
| Notification about a line to render. | |
| virtual void | update (const PointPrimitive *const primitive)=0 throw (ImageOutputException) |
| Notification about a point to render. | |
| virtual void | update (const ICanvas::TRANSFORMATIONINFO *const ti)=0 throw (ImageOutputException) |
| Notification about transformation information available. | |
| virtual void | update (const RENDEREVENT evt)=0 throw (ImageOutputException) |
| Notification about an general render event. | |
Bitmap render methods | |
| virtual void | writeImage (const ICanvas &canvas, const std::string &filename=std::string()) const =0 throw (ImageOutputException) |
| Writes an ICanvas bitmap into an image. | |
Interface for writing images into a file.
See Image Output Plugins in detail for more information.
| virtual std::string HGL::ImageOutput::IOutput::getOutputFilename | ( | ) | const [pure virtual, inherited] |
Get the effective output filename of the rendered picture.
It should return an empty std::string if the standard output is used
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual struct ::poptOption* HGL::Common::IPluginPoptOptions::getPoptOptions | ( | ) | const [virtual, inherited] |
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 void HGL::ImageOutput::IPreRenderOutput::update | ( | const TextPrimitive *const | primitive | ) | throw (ImageOutputException) [pure virtual] |
Notification about a text to render.
| primitive | the text primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IPreRenderOutput::update | ( | const EllipsePrimitive *const | primitive | ) | throw (ImageOutputException) [pure virtual] |
Notification about an ellipse to render.
| primitive | the ellipse primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IPreRenderOutput::update | ( | const PolyPrimitive *const | primitive | ) | throw (ImageOutputException) [pure virtual] |
Notification about a poly to render.
| primitive | the poly primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IPreRenderOutput::update | ( | const CurvePrimitive *const | primitive | ) | throw (ImageOutputException) [pure virtual] |
Notification about a curve to render.
| primitive | the curve primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IPreRenderOutput::update | ( | const LinePrimitive *const | primitive | ) | throw (ImageOutputException) [pure virtual] |
Notification about a line to render.
| primitive | the line primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IPreRenderOutput::update | ( | const PointPrimitive *const | primitive | ) | throw (ImageOutputException) [pure virtual] |
Notification about a point to render.
| primitive | the point primitive |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IPreRenderOutput::update | ( | const ICanvas::TRANSFORMATIONINFO *const | ti | ) | throw (ImageOutputException) [pure virtual] |
Notification about transformation information available.
| ti | the transformation information |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IPreRenderOutput::update | ( | const RENDEREVENT | evt | ) | throw (ImageOutputException) [pure virtual] |
Notification about an general render event.
| evt | the event |
| HGL::ImageOutput::ImageOutputException | in case of an unrecoverable error |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
| virtual void HGL::ImageOutput::IOutput::writeImage | ( | const ICanvas & | canvas, | |
| const std::string & | filename = std::string() | |||
| ) | const throw (ImageOutputException) [pure virtual, inherited] |
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 |
Implemented in HGL::ImageOutput::DefaultPreRenderOutput.
1.6.1