Public Member Functions | |
virtual QDialog * | getUI (QWidget *parent=0) |
Obtain QWidget with user interface for the operation. More... | |
Public Member Functions inherited from FotoSHOCKcore::RootLoadImage | |
RootLoadImage (const std::string fileName) | |
RootLoadImage (PixelData format, const std::string fileName) | |
void | prepare (const std::string fileName) |
void | prepare (PixelData format, const std::string fileName) |
virtual void | runOperation (const Inputs &sources, const Outputs &dest, vector< UpdateInfo > &ROI, const long int stamp) |
virtual bool | isPrepared () |
Tell whether the operations is prepared to process image data. More... | |
virtual void | serialize (XmlSerializer &serializer) |
Serialize the operation using the specified serializer. More... | |
virtual void | deserialize (XmlSerializer &serializer) |
Deserialize the operation using the specified serializer. More... | |
Public Member Functions inherited from FotoSHOCKcore::ImageOperation | |
ImageOperation () | |
A constructor. More... | |
virtual | ~ImageOperation () |
A destructor. | |
GraphNode * | getOwnerNode () const |
Get the node containing the operation. More... | |
virtual void | initialize () |
Set up the internal data which depends on the information from the GraphNode class. More... | |
virtual void | runOperation (const Inputs &sources, const Outputs &dest, vector< UpdateInfo > &ROI, const long stamp)=0 |
Apply the operation. More... | |
virtual bool | updateROI (UpdateInfo ¤tROI, UpdateInfo &parentROI) |
Update ROI in parent to fit the needs of a new ROI. More... | |
boost::shared_ptr< UpdateInfo > | requestROI (boost::shared_ptr< UpdateInfo > currentROI) |
Get the required ROI of an input. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from FotoSHOCKcore::ImageOperation | |
void | setOwnerNode (GraphNode *node) |
Sets the node, that contains the operation. More... | |
|
virtual |
Obtain QWidget with user interface for the operation.
The returned widget will be reparented. That means it will be automatically freed by Qt when closed. Trying to free the the returned QWidget memory manually in the FotoSHOCKOperation desctructor will most likely cause crashes.
parent | the parent for the dialog. If the parent is not set in this function the UI may not be shown correctly. The parent must be set in the dialog constructor, otherwise the dialog will not be shown when calling the show() function (Qt bug?). This is important especially for the preview. |
Implements IFotoSHOCKOperation.