if ( viewWindow->getViewManager()->getType() == SVTK_Viewer::Type() ) {
SVTK_View* aView = ((SVTK_ViewWindow*)viewWindow)->getView();
aView->SetDisplayMode( mode );
+ GeometryGUI::Modified();
}
else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
}
ic->SetDisplayMode( newmode, Standard_False );
+ GeometryGUI::Modified();
}
}
}
}
}
+ GeometryGUI::Modified();
}
else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
viewWindow->setCustomData( "VectorsMode", QVariant( mode ) );
}
ite.Next();
}
+ GeometryGUI::Modified();
}
}
}
}
aView->Repaint();
+ GeometryGUI::Modified();
}
else if ( viewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() ) {
OCCViewer_Viewer* v3d = ((OCCViewer_ViewManager*)(viewWindow->getViewManager()))->getOCCViewer();
}
}
ic->UpdateCurrentViewer();
+ GeometryGUI::Modified();
}
}
return aDSStudy._retn();
}
+void GeometryGUI::Modified( bool theIsUpdateActions )
+{
+ if( SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() ) ) {
+ if( SalomeApp_Study* appStudy = dynamic_cast<SalomeApp_Study*>( app->activeStudy() ) ) {
+ appStudy->Modified();
+ if( theIsUpdateActions )
+ app->updateActions();
+ }
+ }
+}
+
//=======================================================================
// function : GeometryGUI::GeometryGUI()
// purpose : Constructor
static CORBA::Object_var ClientSObjectToObject (_PTR(SObject) theSObject);
static SALOMEDS::Study_var ClientStudyToStudy (_PTR(Study) theStudy);
+ static void Modified( bool = true );
+
GEOM_Client& GetShapeReader() { return myShapeReader; }
// Get active dialog box
for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
aView->SetColor( It.Value(), c );
}
+ GeometryGUI::Modified();
}
} // if ( isVTK )
else if ( isOCC ) {
anObject->SetColor( aSColor );
anObject->SetAutoColor( false );
}
+ GeometryGUI::Modified();
}
} // if c.isValid()
} // first IO is not null
aView->SetTransparency( It.Value(), transp );
}
aView->Repaint();
+ GeometryGUI::Modified();
} // if ( isVTK )
else if ( isOCC ) {
}
} // for...
ic->UpdateCurrentViewer();
+ GeometryGUI::Modified();
} // if ( isOCC )
}
ic->Redisplay(CurObject);
}
}
+ GeometryGUI::Modified();
}
else if(isVTK){ // if is VTKViewer
//
anAct = aCollection->GetNextActor();
}
view->Repaint();
+ GeometryGUI::Modified();
} // end vtkviewer
}
}
}
}
+ GeometryGUI::Modified();
}
else if (isVTK) { // if is VTKViewer
SalomeApp_Application* app = dynamic_cast<SalomeApp_Application*>
anAct = aCollection->GetNextActor();
}
}
+ GeometryGUI::Modified();
} // end vtkviewer
}
for ( SALOME_ListIteratorOfListIO It( selected ); It.More(); It.Next() ) {
aView->SetTransparency( It.Value(), newValue );
}
+ GeometryGUI::Modified();
aView->Repaint();
} // if ( isVTK )
}
} // for...
ic->UpdateCurrentViewer();
+ GeometryGUI::Modified();
} // if ( isOCC )
ValueHasChanged();