X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_FieldDriver.cxx;h=ae45b244ee215971a9a44953263fc49b54ee5cd1;hb=b6f0965afb72083a5234f9b4fb0b233adaaf8d9d;hp=213f325ce94e573b4a0fc889212507ced4c01615;hpb=7d880c6a8262b6d670ed70ee2b9ec25c199a46d4;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_FieldDriver.cxx b/src/GEOMImpl/GEOMImpl_FieldDriver.cxx index 213f325ce..ae45b244e 100644 --- a/src/GEOMImpl/GEOMImpl_FieldDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_FieldDriver.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -44,7 +44,7 @@ GEOMImpl_FieldDriver::GEOMImpl_FieldDriver() //function : Execute //purpose : //======================================================================= -Standard_Integer GEOMImpl_FieldDriver::Execute(TFunction_Logbook& log) const +Standard_Integer GEOMImpl_FieldDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const { return 0; } @@ -83,6 +83,20 @@ GetCreationInformation(std::string& theOperationName, AddParam( theParams, "Step", data.GetStepID() ); AddParam( theParams, "Stamp", data.GetStepStamp() ); } + else if ( funType == GEOM_Field::FUN_CHANGE_COMP_NAMES ) + { + theOperationName = "Change component names"; + } + else if ( funType == GEOM_Field::FUN_CHANGE_STEP_STAMP ) + { + theOperationName = "Change stamp"; + AddParam( theParams, "Stamp", data.GetStepStamp() ); + } + else if ( funType == GEOM_Field::FUN_CHANGE_VALUE ) + { + theOperationName = "FIELD_EDIT";//"Change values"; + AddParam( theParams, "Values", "..." ); + } else { return false; @@ -91,5 +105,4 @@ GetCreationInformation(std::string& theOperationName, return true; } -IMPLEMENT_STANDARD_HANDLE (GEOMImpl_FieldDriver,GEOM_BaseDriver); -IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FieldDriver,GEOM_BaseDriver); +IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FieldDriver,GEOM_BaseDriver)