1 // Copyright (C) 2014-2015 EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #include <HYDROData_Document.h>
20 #include <HYDROData_Application.h>
21 #include <HYDROData_Iterator.h>
22 #include <HYDROData_Tool.h>
23 #include <HYDROData_InterpolatorsFactory.h>
25 #include <TDataStd_Integer.hxx>
26 #include <TDataXtd_Position.hxx>
28 #include <TDF_Delta.hxx>
33 #include <QStringList>
34 #include <QTextStream>
36 IMPLEMENT_STANDARD_HANDLE(HYDROData_Document,MMgt_TShared)
37 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Document,MMgt_TShared)
39 #define PYTHON_DOC_NAME "hydro_doc"
41 static const int UNDO_LIMIT = 10; // number of possible undo operations in the module
43 static const int TAG_PROPS = 1; // general properties tag
44 static const int TAG_PROPS_NEW_ID = 1; // general properties: tag for storage of the new object ID
45 static const int TAG_OBJECTS = 2; // tag of the objects sub-tree
46 static const int TAG_HISTORY = 3; // tag of the history sub-tree (Root for History)
47 static const int TAG_LOCAL_CS = 4; // tag of local coordinate system information
48 static const gp_Pnt2d DEFAULT_LOCAL_CS( 0, 0 );
52 typedef QMap<Standard_Integer,Handle_HYDROData_Entity> MapOfOrdered;
53 typedef QMap<QString,Handle_HYDROData_Entity> MapOfUnordered;
55 Handle(HYDROData_Document) HYDROData_Document::Document(const int theStudyID)
57 Handle(HYDROData_Document) aResult =
58 HYDROData_Application::GetApplication()->GetDocument(theStudyID);
59 if (aResult.IsNull()) {
60 aResult = new HYDROData_Document();
61 HYDROData_Application::GetApplication()->AddDocument(theStudyID, aResult);
66 Handle(HYDROData_Document) HYDROData_Document::Document(
67 const TDF_Label& theObjectLabel )
69 Handle(HYDROData_Document) aResDoc;
70 if ( theObjectLabel.IsNull() )
73 Handle(TDocStd_Document) anObjDoc;
76 anObjDoc = TDocStd_Document::Get( theObjectLabel );
82 if ( anObjDoc.IsNull() )
85 HYDROData_Application* anApp = HYDROData_Application::GetApplication();
87 DataMapOfStudyIDDocument::Iterator aMapIt( anApp->myDocuments );
88 for ( ; aMapIt.More(); aMapIt.Next() )
90 Handle(HYDROData_Document) anAppDoc = aMapIt.Value();
91 if ( anAppDoc.IsNull() || anAppDoc->myDoc != anObjDoc )
101 bool HYDROData_Document::HasDocument(const int theStudyID)
103 Handle(HYDROData_Document) aResult =
104 HYDROData_Application::GetApplication()->GetDocument(theStudyID);
105 return !aResult.IsNull();
108 bool HYDROData_Document::DocumentId(const Handle(HYDROData_Document)& theDocument,
111 return HYDROData_Application::GetApplication()->GetDocumentId(theDocument, theDocId);
114 Data_DocError HYDROData_Document::Load(const char* theFileName, const int theStudyID)
116 Handle(TDocStd_Document) aResult;
117 TCollection_ExtendedString aPath ((const Standard_CString)theFileName);
118 PCDM_ReaderStatus aStatus = (PCDM_ReaderStatus) -1;
121 aStatus = HYDROData_Application::GetApplication()->Open (aPath, aResult);
123 catch (Standard_Failure)
125 if (!aResult.IsNull()) {
126 aResult->SetUndoLimit(UNDO_LIMIT);
127 HYDROData_Application::GetApplication()->AddDocument(theStudyID, new HYDROData_Document(aResult));
130 Data_DocError anError;
133 anError = DocError_OK;
135 case PCDM_RS_NoDriver:
136 case PCDM_RS_UnknownFileDriver:
137 case PCDM_RS_NoSchema:
138 case PCDM_RS_DriverFailure:
139 case PCDM_RS_WrongResource:
140 anError = DocError_ResourcesProblem;
142 case PCDM_RS_OpenError:
143 case PCDM_RS_NoDocument:
144 case PCDM_RS_WrongStreamMode:
145 case PCDM_RS_PermissionDenied:
146 anError = DocError_CanNotOpen;
148 case PCDM_RS_NoVersion:
149 anError = DocError_InvalidVersion;
151 case PCDM_RS_ExtensionFailure:
152 case PCDM_RS_FormatFailure:
153 case PCDM_RS_TypeFailure:
154 case PCDM_RS_TypeNotFoundInSchema:
155 case PCDM_RS_UnrecognizedFileFormat:
156 anError = DocError_InvalidFormat;
158 case PCDM_RS_MakeFailure:
160 anError = DocError_UnknownProblem;
166 Data_DocError HYDROData_Document::Save(const char* theFileName)
168 TCollection_ExtendedString aPath ((const Standard_CString)theFileName);
169 PCDM_StoreStatus aStatus;
171 aStatus = HYDROData_Application::GetApplication()->SaveAs (myDoc, aPath);
173 catch (Standard_Failure) {}
174 myTransactionsAfterSave = 0;
175 Standard::Purge(); // Release free memory
178 Data_DocError anError;
181 anError = DocError_OK;
183 case PCDM_SS_DriverFailure:
184 anError = DocError_ResourcesProblem;
186 case PCDM_SS_WriteFailure:
187 //case PCDM_SS_DiskWritingFailure:
188 //case PCDM_SS_UserRightsFailure:
189 anError = DocError_CanNotOpen;
192 anError = DocError_UnknownProblem;
198 void HYDROData_Document::Close()
201 HYDROData_Application::GetApplication()->RemoveDocument(this);
204 bool HYDROData_Document::DumpToPython( const QString& theFileName,
205 const bool theIsMultiFile ) const
207 // Try to open the file
208 QFile aFile( theFileName );
209 if ( !aFile.open( QIODevice::WriteOnly ) )
212 MapOfTreatedObjects aTreatedObjects;
214 // Dump header for python script
215 QStringList aHeaderDump = DumpToPython( aTreatedObjects, theIsMultiFile );
216 if ( aHeaderDump.isEmpty() )
219 HYDROData_Tool::WriteStringsToFile( aFile, aHeaderDump );
223 // Dump the local CS data to Python
225 QString aLCS = QString( "%1.SetLocalCS( %2, %3 )" ).arg( GetDocPyName() ).arg( myLX ).arg( myLY );
228 HYDROData_Tool::WriteStringsToFile( aFile, QStringList() << aLCS );
230 // Dump all model objects to Python script
231 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_IMAGE );
232 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_POLYLINEXY );
233 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_BATHYMETRY );
234 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_PROFILE );
235 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_POLYLINE );
236 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_IMMERSIBLE_ZONE );
237 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_STREAM );
238 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_CHANNEL );
239 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_DIGUE );
240 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_OBSTACLE );
241 aRes = aRes && dumpPartitionToPython( aFile, theIsMultiFile, aTreatedObjects, KIND_CALCULATION );
243 // Dump code to close python fuction
244 if ( aRes && theIsMultiFile )
246 QStringList aFooterScript;
247 aFooterScript << QString( "" );
248 aFooterScript << QString( " pass" );
249 HYDROData_Tool::WriteStringsToFile( aFile, aFooterScript );
255 QString HYDROData_Document::GetDocPyName() const
257 QString aDocName = PYTHON_DOC_NAME;
261 if ( DocumentId( this, aDocId ) )
262 aDocName += "_" + QString::number( aDocId );
268 QStringList HYDROData_Document::DumpToPython( MapOfTreatedObjects& theTreatedObjects,
269 const bool theIsMultiFile ) const
271 QString aDocName = GetDocPyName();
273 // Append document in to the map of treated objects to prevent names overlaping
274 theTreatedObjects.insert( aDocName, this );
277 if ( !DocumentId( this, aDocId ) )
280 QStringList aResScript;
282 aResScript << QString( "from HYDROPy import *" );
283 aResScript << QString( "from PyQt4.QtCore import *" );
284 aResScript << QString( "from PyQt4.QtGui import *" );
286 if ( theIsMultiFile )
288 aResScript << QString( "import salome" );
289 aResScript << QString( "" );
290 aResScript << QString( "def RebuildData( theStudy ):" );
291 aResScript << QString( " %1 = HYDROData_Document.Document( theStudy._get_StudyId() );" ).arg( aDocName );
295 aResScript << QString( "" );
296 aResScript << QString( "%1 = HYDROData_Document.Document( theStudy._get_StudyId() );" ).arg( aDocName );
302 bool HYDROData_Document::dumpPartitionToPython( QFile& theFile,
303 const bool theIsMultiFile,
304 MapOfTreatedObjects& theTreatedObjects,
305 const ObjectKind& theObjectKind ) const
307 if ( !theFile.isOpen() )
310 QTextStream anOutStream( &theFile );
314 HYDROData_Iterator anIterator( this, theObjectKind );
315 for( ; anIterator.More(); anIterator.Next() )
317 Handle(HYDROData_Entity) anObject = anIterator.Current();
318 if ( anObject.IsNull() )
321 QString anObjName = anObject->GetName();
322 if ( theTreatedObjects.contains( anObjName ) )
325 theTreatedObjects.insert( anObjName, anObject );
327 QStringList anObjDump = anObject->DumpToPython( theTreatedObjects );
329 if ( theIsMultiFile )
331 // For multifile dump we use the function, see the document dump header
332 QStringList::iterator anIt = anObjDump.begin();
333 for ( ; anIt != anObjDump.end(); ++anIt )
334 anIt->prepend( " " );
337 HYDROData_Tool::WriteStringsToFile( theFile, anObjDump );
343 bool takeLastDigits( QString& theStr, int& aRes )
348 for ( int i = theStr.length() - 1; i >= 0; --i )
350 const QChar& aChar = theStr.at( i );
351 if ( !aChar.isDigit() )
354 anStrNum.prepend( aChar );
357 if ( anStrNum.isEmpty() )
360 theStr.remove( theStr.length() - anStrNum.length(), anStrNum.length() );
361 aRes = anStrNum.toInt();
366 bool isObjectNameLessThan( const QString& theStr1, const QString& theStr2 )
368 QString aStr1 = theStr1, aStr2 = theStr2;
370 int aNum1 = -1, aNum2 = -1;
371 if ( takeLastDigits( aStr1, aNum1 ) && takeLastDigits( aStr2, aNum2 ) )
373 if ( aStr1 == aStr2 )
374 return aNum1 < aNum2;
377 return theStr1 < theStr2;
380 HYDROData_SequenceOfObjects HYDROData_Document::GetObjectsLayerOrder(
381 const Standard_Boolean theIsAll ) const
383 HYDROData_SequenceOfObjects anOrder;
385 MapOfOrdered aMapOfOrdered;
386 MapOfUnordered aMapOfUnordered;
388 HYDROData_Iterator anIter( this );
389 for ( ; anIter.More(); anIter.Next() )
391 Handle(HYDROData_Entity) anObject = anIter.Current();
392 if ( anObject.IsNull() || !anObject->IsHas2dPrs() )
395 Standard_Integer anObjZLevel = -1;
396 if ( anObject->GetZLevel( anObjZLevel ) )
398 aMapOfOrdered.insert( anObjZLevel, anObject );
402 QString anObjName = anObject->GetName();
403 if ( anObjName.isEmpty() )
406 aMapOfUnordered.insert( anObjName, anObject );
410 MapOfOrdered::const_iterator anOrderedMapIt = aMapOfOrdered.constBegin();
411 for ( ; anOrderedMapIt != aMapOfOrdered.constEnd(); anOrderedMapIt++ )
413 const Handle(HYDROData_Entity)& anObject = anOrderedMapIt.value();
414 anOrder.Prepend( anObject );
419 QStringList aSortedNames = aMapOfUnordered.keys();
420 qSort( aSortedNames.begin(), aSortedNames.end(), isObjectNameLessThan );
422 for ( int i = 0; i < aSortedNames.length(); ++i )
424 QString anObjName = aSortedNames.value( i );
426 const Handle(HYDROData_Entity)& anObject = aMapOfUnordered.value( anObjName );
427 anOrder.Append( anObject );
434 void HYDROData_Document::SetObjectsLayerOrder( const HYDROData_SequenceOfObjects& theOrder )
436 // At first we remove previous model order
437 RemoveObjectsLayerOrder();
439 // Make new objects order
440 Standard_Integer aLevel = 0;
441 for ( int i = theOrder.Length(), n = 1; i >= n; --i )
443 const Handle(HYDROData_Entity)& anObject = theOrder.Value( i );
444 if ( anObject.IsNull() || !anObject->IsHas2dPrs() )
447 anObject->SetZLevel( aLevel++ );
451 void HYDROData_Document::Show( const Handle_HYDROData_Entity& theObject )
453 HYDROData_SequenceOfObjects anOrder;
454 anOrder.Append( theObject );
458 void HYDROData_Document::Show( const HYDROData_SequenceOfObjects& theObjects )
460 MapOfUnordered aMapOfUnordered;
462 for ( int i = 1, n = theObjects.Length(); i <= n; ++i )
464 const Handle(HYDROData_Entity)& anObject = theObjects.Value( i );
465 if ( anObject.IsNull() || !anObject->IsHas2dPrs() )
468 Standard_Integer anObjZLevel = -1;
469 if ( anObject->GetZLevel( anObjZLevel ) )
471 continue; // Skip objects that already have the z-level
475 QString anObjName = anObject->GetName();
476 if ( anObjName.isEmpty() )
479 aMapOfUnordered.insert( anObjName, anObject );
483 if ( aMapOfUnordered.isEmpty() )
484 return; // Nothing to show
486 Standard_Integer aTopId = 0;
488 HYDROData_SequenceOfObjects aModelOrder = GetObjectsLayerOrder( Standard_False );
489 if ( !aModelOrder.IsEmpty() )
491 const Handle(HYDROData_Entity)& anObject = aModelOrder.First();
492 anObject->GetZLevel( aTopId );
496 aTopId += aMapOfUnordered.size() - 1;
498 QStringList aSortedNames = aMapOfUnordered.keys();
499 qSort( aSortedNames.begin(), aSortedNames.end(), isObjectNameLessThan );
501 for ( int i = 0; i < aSortedNames.length(); ++i )
503 QString anObjName = aSortedNames.value( i );
505 const Handle(HYDROData_Entity)& anObject = aMapOfUnordered.value( anObjName );
506 anObject->SetZLevel( aTopId-- );
510 void HYDROData_Document::RemoveObjectsLayerOrder()
512 HYDROData_Iterator anIter( this );
513 for ( ; anIter.More(); anIter.Next() )
515 Handle(HYDROData_Entity) anObject = anIter.Current();
516 if ( anObject.IsNull() || !anObject->IsHas2dPrs() )
519 anObject->RemoveZLevel();
523 void HYDROData_Document::StartOperation()
528 void HYDROData_Document::CommitOperation(const TCollection_ExtendedString& theName)
530 if( !myDoc->CommitCommand() ) // it means that there were no modifications done
533 NewID(); // workaround: do something just to modify the document
534 myDoc->CommitCommand();
536 myTransactionsAfterSave++;
538 if( theName.Length() != 0 )
540 const TDF_DeltaList& aList = GetUndos();
541 if( !aList.IsEmpty() )
543 Handle(TDF_Delta) aDelta = aList.Last();
544 if( !aDelta.IsNull() )
545 aDelta->SetName( theName );
550 void HYDROData_Document::AbortOperation()
552 myDoc->AbortCommand();
555 bool HYDROData_Document::IsOperation()
557 return myDoc->HasOpenCommand() != 0;
560 bool HYDROData_Document::IsModified()
562 return myTransactionsAfterSave != 0;
565 bool HYDROData_Document::CanUndo()
567 return myDoc->GetAvailableUndos() > 0;
570 const TDF_DeltaList& HYDROData_Document::GetUndos()
572 return myDoc->GetUndos();
575 void HYDROData_Document::ClearUndos()
577 return myDoc->ClearUndos();
580 void HYDROData_Document::Undo()
583 myTransactionsAfterSave--;
586 bool HYDROData_Document::CanRedo()
588 return myDoc->GetAvailableRedos() > 0;
591 const TDF_DeltaList& HYDROData_Document::GetRedos()
593 return myDoc->GetRedos();
596 void HYDROData_Document::ClearRedos()
598 return myDoc->ClearRedos();
601 void HYDROData_Document::Redo()
604 myTransactionsAfterSave++;
607 Handle(HYDROData_Entity) HYDROData_Document::CreateObject( const ObjectKind theKind )
609 return HYDROData_Iterator::CreateObject( this, theKind );
612 Handle(HYDROData_Entity) HYDROData_Document::FindObjectByName(
613 const QString& theName,
614 const ObjectKind theObjectKind ) const
616 Handle(HYDROData_Entity) anObject;
617 if ( theName.isEmpty() )
620 QStringList aNamesList;
621 aNamesList << theName;
623 HYDROData_SequenceOfObjects aSeqOfObjs = FindObjectsByNames( aNamesList, theObjectKind );
624 if( aSeqOfObjs.IsEmpty() )
627 anObject = aSeqOfObjs.First();
631 HYDROData_SequenceOfObjects HYDROData_Document::FindObjectsByNames(
632 const QStringList& theNames,
633 const ObjectKind theObjectKind ) const
635 HYDROData_SequenceOfObjects aResSeq;
637 QStringList aNamesList = theNames;
639 HYDROData_Iterator anIter( this, theObjectKind );
640 for( ; anIter.More(); anIter.Next() )
642 Handle(HYDROData_Entity) anObject = anIter.Current();
643 if( anObject.IsNull() )
646 QString anObjName = anObject->GetName();
647 if ( anObjName.isEmpty() || !aNamesList.contains( anObjName ) )
650 aResSeq.Append( anObject );
652 aNamesList.removeAll( anObjName );
653 if ( aNamesList.isEmpty() )
660 HYDROData_Document::HYDROData_Document()
662 HYDROData_Application::GetApplication()->NewDocument("BinOcaf", myDoc);
663 myDoc->SetUndoLimit(UNDO_LIMIT);
664 NewID(); // needed to have at least one attribute in initial document to avoid errors
665 myTransactionsAfterSave = 0;
669 myInterpolatorsFactory = 0;
672 HYDROData_Document::HYDROData_Document(const Handle(TDocStd_Document)& theDoc)
675 myTransactionsAfterSave = 0;
679 myInterpolatorsFactory = 0;
682 HYDROData_Document::~HYDROData_Document()
686 int HYDROData_Document::NewID()
688 TDF_Label anIDLab = myDoc->Main().FindChild(TAG_PROPS).
689 FindChild(TAG_PROPS_NEW_ID);
690 Handle(TDataStd_Integer) anInt;
691 if (!anIDLab.FindAttribute(TDataStd_Integer::GetID(), anInt)) {
692 anInt = TDataStd_Integer::Set(anIDLab, 0);
694 // just increment value and return
695 anInt->Set(anInt->Get() + 1);
699 TDF_Label HYDROData_Document::LabelOfObjects()
701 return myDoc->Main().FindChild(TAG_OBJECTS);
704 TDF_Label HYDROData_Document::LabelOfLocalCS() const
706 return myDoc->Main().FindChild(TAG_LOCAL_CS);
709 void HYDROData_Document::GetLocalCS( double& theLX, double& theLY ) const
711 TDF_Label aLocalCSLab = LabelOfLocalCS();
713 Handle( TDataXtd_Position ) aLocalCS;
714 if( aLocalCSLab.FindAttribute( TDataXtd_Position::GetID(), aLocalCS ) )
716 gp_Pnt aLocalCS3d = aLocalCS->GetPosition();
717 theLX = aLocalCS3d.X();
718 theLY = aLocalCS3d.Y();
722 theLX = DEFAULT_LOCAL_CS.X();
723 theLY = DEFAULT_LOCAL_CS.Y();
727 void HYDROData_Document::SetLocalCS( double theLX, double theLY )
731 // update the local CS data in attribute
732 TDF_Label aLocalCSLab = LabelOfLocalCS();
733 Handle( TDataXtd_Position ) aLocalCS;
734 if( !aLocalCSLab.FindAttribute( TDataXtd_Position::GetID(), aLocalCS ) )
735 aLocalCS = TDataXtd_Position::Set( aLocalCSLab );
737 gp_Pnt aLocalCS3d( theLX, theLY, 0 );
738 aLocalCS->SetPosition( aLocalCS3d );
740 // calculate delta for coordinates
741 double aDX = myLX - theLX;
742 double aDY = myLY - theLY;
744 // update the local CS data in internal fields
748 //update all objects in the document
749 HYDROData_Iterator anIterator( this, KIND_UNKNOWN );
750 for( ; anIterator.More(); anIterator.Next() )
751 anIterator.Current()->UpdateLocalCS( aDX, aDY );
754 void HYDROData_Document::UpdateLCSFields() const
756 if( myLX >= 0 && myLY >= 0 )
760 GetLocalCS( aLX, aLY );
761 HYDROData_Document* aThat = const_cast<HYDROData_Document*>( this );
766 void HYDROData_Document::Transform( double& X, double& Y, bool IsToLocalCS ) const
781 void HYDROData_Document::Transform( gp_Pnt& thePnt, bool IsToLocalCS ) const
783 double X = thePnt.X();
784 double Y = thePnt.Y();
785 double Z = thePnt.Z();
786 Transform( X, Y, IsToLocalCS );
787 thePnt = gp_Pnt( X, Y, Z );
790 void HYDROData_Document::Transform( gp_XYZ& thePnt, bool IsToLocalCS ) const
792 double X = thePnt.X();
793 double Y = thePnt.Y();
794 double Z = thePnt.Z();
795 Transform( X, Y, IsToLocalCS );
796 thePnt = gp_XYZ( X, Y, Z );
799 void HYDROData_Document::Transform( gp_XY& thePnt, bool IsToLocalCS ) const
801 double X = thePnt.X();
802 double Y = thePnt.Y();
803 Transform( X, Y, IsToLocalCS );
804 thePnt = gp_XY( X, Y );
807 HYDROData_InterpolatorsFactory* HYDROData_Document::GetInterpolatorsFactory()
809 if ( !myInterpolatorsFactory ) {
810 myInterpolatorsFactory = new HYDROData_InterpolatorsFactory();
813 return myInterpolatorsFactory;
816 HYDROData_IProfilesInterpolator* HYDROData_Document::GetInterpolator( const TCollection_AsciiString& theName ) const
818 HYDROData_IProfilesInterpolator* anInterpolator = NULL;
820 HYDROData_Document* aThat = const_cast<HYDROData_Document*>( this );
821 HYDROData_InterpolatorsFactory* aFactory = aThat->GetInterpolatorsFactory();
823 anInterpolator = aFactory->GetInterpolator( theName );
826 return anInterpolator;
829 NCollection_Sequence<TCollection_AsciiString> HYDROData_Document::GetInterpolatorNames() const
831 NCollection_Sequence<TCollection_AsciiString> aNames;
833 HYDROData_Document* aThat = const_cast<HYDROData_Document*>( this );
834 HYDROData_InterpolatorsFactory* aFactory = aThat->GetInterpolatorsFactory();
836 aNames = aFactory->GetInterpolatorNames();