X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Document.h;h=009eda2f5e9794b4a5e054ee88d3df7e01d6e266;hb=f7c005b67e48ec7bac99c566fb4f34215ec1a4b1;hp=2a53899df0faef5699bf49ab57e937771703ee01;hpb=474c2cd65280d793f1c81ca528bc92e1cff988e6;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Document.h b/src/HYDROData/HYDROData_Document.h index 2a53899d..009eda2f 100644 --- a/src/HYDROData/HYDROData_Document.h +++ b/src/HYDROData/HYDROData_Document.h @@ -28,6 +28,9 @@ #include +class HYDROData_InterpolatorsFactory; +class HYDROData_IProfilesInterpolator; + class QFile; class gp_Pnt2d; class gp_Pnt; @@ -208,6 +211,17 @@ public: const QStringList& theNames, const ObjectKind theObjectKind = KIND_UNKNOWN ) const; +public: + + //! Returns interpolator factory instance + HYDRODATA_EXPORT HYDROData_InterpolatorsFactory* GetInterpolatorsFactory(); + + //! Get the appropriate interpolator by the name. + HYDRODATA_EXPORT HYDROData_IProfilesInterpolator* GetInterpolator( const TCollection_AsciiString& theName ) const; + + //! Get list of registered interpolator names. + HYDRODATA_EXPORT NCollection_Sequence GetInterpolatorNames() const; + protected: friend class HYDROData_Iterator; @@ -245,6 +259,8 @@ private: Handle(TDocStd_Document) myDoc; ///< OCAF document instance corresponding for keeping all persistent data int myTransactionsAfterSave; ///< number of transactions after the last "save" call, used for "IsModified" method double myLX, myLY; + + HYDROData_InterpolatorsFactory* myInterpolatorsFactory; ///< iterpolators factory }; #endif