myIsEdit( theIsEdit ),
myActiveViewManager( NULL ),
myPreviewViewManager( NULL ),
- myShowGeomObjects( true ),
myShowZones( false )
{
setName( myIsEdit ? tr( "EDIT_CALCULATION" ) : tr( "CREATE_CALCULATION" ) );
QApplication::setOverrideCursor( Qt::WaitCursor );
- setGeomObjectsVisible( false );
-
QString aNewCaseName = aPanel->getObjectName();
QString anOldCaseName = myEditedObject->GetName();
bool isNameChanged = anOldCaseName != aNewCaseName;
}
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 );
- }
-}
-
{
HYDROData_SequenceOfObjects aRegions = myEditedObject->GetRegions( theLandCover );
HYDROData_SequenceOfObjects::Iterator aRegionsIter( aRegions );
aSeq = myEditedObject->GetLandCovers();
else
aSeq = myEditedObject->GetGeometryObjects();
- }
+
Handle(HYDROData_Entity) anEntity;
if ( myShowZones )
void closePreview( bool theRemoveViewManager = true );
void setObjectVisibility( Handle(HYDROData_Entity) theEntity, const bool theIsVisible );
void setZonesVisible( bool theIsVisible, const bool theLandCover );
- void setGeomObjectsVisible( bool theIsVisible );
void getNamesAndEntries( const HYDROData_SequenceOfObjects& theSeq,
QStringList& theNames, QStringList& theEntries ) const;
private:
bool myIsEdit;
bool myShowZones;
- bool myShowGeomObjects;
Handle(HYDROData_CalculationCase) myEditedObject;
SUIT_ViewManager* myActiveViewManager;