}
HYDROData_SequenceOfObjects HYDROGUI_Tool::GetGeometryObjects(
- const Handle(HYDROData_Document)& theDoc )
+ HYDROGUI_Module* theModule )
{
+ Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( theModule->getStudyId() );
+
HYDROData_SequenceOfObjects aResSeq;
- HYDROData_Iterator anIter( theDoc );
+ HYDROData_Iterator anIter( aDocument );
for ( ; anIter.More(); anIter.Next() )
{
Handle(HYDROData_Entity) anObj = anIter.Current();
/**
* \brief Get the geometry data objects from document.
- * \param theDoc document
+ * \param theModule module
* \return sequence of data objects
*/
- static HYDROData_SequenceOfObjects GetGeometryObjects( const Handle(HYDROData_Document)& theDoc );
+ static HYDROData_SequenceOfObjects GetGeometryObjects( HYDROGUI_Module* theModule );
/**
* \brief Get kind of objects the selected partition contains.