2 #ifndef HYDROData_Tool_HeaderFile
3 #define HYDROData_Tool_HeaderFile
5 #include <Precision.hxx>
11 class Handle_HYDROData_Document;
13 class HYDROData_Tool {
17 static void WriteStringsToFile( QFile& theFile,
18 const QStringList& theStrings,
19 const QString& theSep = "\n" );
22 * Enables "MustBeUpdated" flag for Images that are depended on "MustBeUpdated" images.
23 * \param theDoc document where this operation is performed
25 static void SetMustBeUpdatedImages( Handle_HYDROData_Document theDoc );
29 inline bool ValuesEquals( const double& theFirst, const double& theSecond )
31 return theFirst > ( theSecond - Precision::Confusion() ) &&
32 theFirst < ( theSecond + Precision::Confusion() );
35 inline bool ValuesMoreEquals( const double& theFirst, const double& theSecond )
37 return theFirst >= theSecond || ValuesEquals( theFirst, theSecond );
40 inline bool ValuesLessEquals( const double& theFirst, const double& theSecond )
42 return theFirst <= theSecond || ValuesEquals( theFirst, theSecond );