const TopTools_ListOfShape& theFaces,
const HYDROData_ShapesGroup::SeqOfGroupsDefs& theGroupsDefs,
QString& theGeomObjEntry ) const;
-
- /**
- * Publish the given shape in GEOM as a GEOM object.
- * \param theGeomEngine GEOM module engine
- * \param theStudy SALOMEDS study, used for publishing of the shape
- * \param theShape the shape to publish as a GEOM object
- * \param theName the name of the published object
- * \return the published GEOM object
- */
- GEOM::GEOM_Object_ptr publishShapeInGEOM( GEOM::GEOM_Gen_var theGeomEngine,
- SALOMEDS::Study_ptr theStudy,
- const TopoDS_Shape& theShape,
- const QString& theName,
- QString& theGeomObjEntry ) const;
-
+
void CreateRegionsDef( const Handle(HYDROData_Document)& theDoc,
- const HYDROData_SplitToZonesTool::SplitDataList& theZones );
+ const HYDROData_SplitToZonesTool::SplitDataList& theZones,
+ const bool theLandCover );
void CreateRegionsAuto( const Handle(HYDROData_Document)& theDoc,
- const HYDROData_SplitToZonesTool::SplitDataList& theZones );
+ const HYDROData_SplitToZonesTool::SplitDataList& theZones,
+ const bool theLandCover );
void CreateEdgeGroupsDef( const Handle(HYDROData_Document)& theDoc,
const HYDROData_SplitToZonesTool::SplitDataList& theEdges );
}
}
- void HYDROGUI_CalculationOp::setGeomObjectsVisible( bool theIsVisible )
+ void HYDROGUI_CalculationOp::AssignDefaultZonesColors( const bool theLandCover )
+{
+ myShowGeomObjects = theIsVisible;
+
+ HYDROData_SequenceOfObjects aSeq = myEditedObject->GetGeometryObjects();
+
+ HYDROData_SequenceOfObjects::Iterator anIter( aSeq );
+ for ( ; anIter.More(); anIter.Next() ) {
+ setObjectVisibility( anIter.Value(), theIsVisible );
+ }
+}
+
- void HYDROGUI_CalculationOp::AssignDefaultZonesColors()
{
- HYDROData_SequenceOfObjects aRegions = myEditedObject->GetRegions();
+ HYDROData_SequenceOfObjects aRegions = myEditedObject->GetRegions( theLandCover );
HYDROData_SequenceOfObjects::Iterator aRegionsIter( aRegions );
HYDROData_SequenceOfObjects aZones;
Handle(HYDROData_Region) aRegion;
{
LightApp_Application* anApp = module()->getApp();
HYDROData_SequenceOfObjects aSeq;
- if ( myShowGeomObjects )
- {
- HYDROData_SequenceOfObjects aGeomObj = myEditedObject->GetGeometryObjects();
- aSeq.Append( aGeomObj );
+ if ( theLandCover )
+ aSeq = myEditedObject->GetLandCovers();
+ else
+ aSeq = myEditedObject->GetGeometryObjects();
+ }
Handle(HYDROData_Entity) anEntity;
if ( myShowZones )
*/
void onClickedInZonesBrowser( SUIT_DataObject* theItem );
/**
- * Hide zones in the viewer.
+ * Slot called on back button click.
*/
- void onBack( const int );
+ void onHideZones( const int );
/**
* Geometry object is selected in the list on the first wizard page
*/
void onOrderLandCoverChanged( bool& isConfirmed );
private:
- void createPreview();
- void closePreview();
+ void createPreview( const bool theLandCover);
+ void closePreview( bool theRemoveViewManager = true );
void setObjectVisibility( Handle(HYDROData_Entity) theEntity, const bool theIsVisible );
- void setZonesVisible( bool theIsVisible );
+ void setZonesVisible( bool theIsVisible, const bool theLandCover );
+ void setGeomObjectsVisible( bool theIsVisible );
void getNamesAndEntries( const HYDROData_SequenceOfObjects& theSeq,
QStringList& theNames, QStringList& theEntries ) const;