13 #if QT_VERSION < 0x040000
16 #include <QtCore/QCustomEvent>
17 #include <QtCore/QEvent>
25 const std::string & filename )
27 m_filename ( filename )
34 m_filename ( event.m_filename )
46 void * pointer =
data();
48 return reinterpret_cast <
PlotterBase * > ( pointer );
A derived class of QCustomEvent to handle saving a PlotterBase object as image file events...
std::string m_filename
The filename for the image.
SaveAsImageEvent class interface.
The base class for the PlotterBase hierarchy.
SaveAsImageEvent(const PlotterBase *plotter, const std::string &filename)
The constructor taking the plotter object and image filename as arguments.
const std::string & filename() const
Returns the filename for the image.
PlotterBase * plotter() const
Returns the PlotterBase object that created the update event.
virtual ~SaveAsImageEvent()
The required virtual destructor.