From: jfa Date: Wed, 11 Jan 2006 13:13:37 +0000 (+0000) Subject: PAL11086: Poor quality of the saved pictures. X-Git-Tag: T_Before_Join_BR-D5-38-2003~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72d46ef62722986d2252f3857cda2c4ed6b901cb;p=modules%2Fvisu.git PAL11086: Poor quality of the saved pictures. --- diff --git a/idl/VISU_Gen.idl b/idl/VISU_Gen.idl index 0138653a..480ae6e3 100644 --- a/idl/VISU_Gen.idl +++ b/idl/VISU_Gen.idl @@ -1159,8 +1159,8 @@ module VISU { * This method allows to bound the range of generated frames. * If this method is not used, the animation will be generated * on the basis of all time stamps contained in the field. - * /param theMin The value of the first time stamp which will be used for generation of the animation. - * /param theMax The value of the last time stamp which will be used for generation of the animation. + * \param theMin The value of the first time stamp which will be used for generation of the animation. + * \param theMax The value of the last time stamp which will be used for generation of the animation. */ void setAnimationRange(in double theMin, in double theMax); @@ -1179,10 +1179,20 @@ module VISU { boolean isRangeDefined(); /*! Saves all the frames composing the animation into a definite directory. - * \param thePath The directory where all the frames will be saved. + * Pictures format is set with method setDumpFormat(). + * \param thePath The directory where all the frames will be saved. */ void dumpTo(in string thePath); + /*! Set format for saving all the frames composing the animation. + * \param theFormat The format for saving pictures. + * For available formats see QImageIO documentation (Qt). + * If specified format is not available, default format will be used. + * Default format is JPEG or first of supported, if JPEG is not available. + * \return Really set format. Differ from \a theFormat if \a theFormat is not available. + */ + string setDumpFormat(in string theFormat); + /*! Returns True, if the playback of the animation is cycling. */ boolean isCycling(); diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.h b/src/VISUGUI/VisuGUI_TimeAnimation.h index f9fd9743..daeb134e 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.h +++ b/src/VISUGUI/VisuGUI_TimeAnimation.h @@ -164,6 +164,7 @@ class VisuGUI_TimeAnimationDlg: public QDialog VISU_TimeAnimation* myAnimator; QCheckBox* mySaveCheck; + QComboBox* myPicsFormat; QLineEdit* myPathEdit; bool isClosing; QCloseEvent* myEvent; diff --git a/src/VISU_I/VISU_TimeAnimation.h b/src/VISU_I/VISU_TimeAnimation.h index 59bf57cb..f6496cc5 100644 --- a/src/VISU_I/VISU_TimeAnimation.h +++ b/src/VISU_I/VISU_TimeAnimation.h @@ -100,6 +100,7 @@ class VISU_TimeAnimation: public QObject, public QThread CORBA::Boolean isRangeDefined() { return !((myMaxVal==0) && (myMinVal == myMaxVal)); } void dumpTo(const char* thePath) { myDumpPath = thePath; } + std::string setDumpFormat(const char* theFormat); QString getLastErrorMsg() { return myLastError; } @@ -146,6 +147,7 @@ class VISU_TimeAnimation: public QObject, public QThread double myMaxVal, myMinVal; double myTimeMin, myTimeMax; QString myDumpPath; + QString myDumpFormat; SVTK_ViewWindow* myView; QString myAnimEntry; @@ -203,6 +205,7 @@ public: virtual CORBA::Boolean isRangeDefined(); virtual void dumpTo(const char* thePath); + virtual char* setDumpFormat(const char* theFormat); virtual CORBA::Boolean isCycling();