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