X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOM%2FGEOM_BaseDriver.cxx;h=e5696e47b81d475a8cf1827232f045ee3e3e878a;hb=14e1a694c4cf249fe205a39c099482bc5b28a6e5;hp=2f834dd50843efdb8e556dbbcb4c701614aaf872;hpb=ff7fc4d6c2f5e6de741fd7f0b9ebf01de04d0e10;p=modules%2Fgeom.git diff --git a/src/GEOM/GEOM_BaseDriver.cxx b/src/GEOM/GEOM_BaseDriver.cxx index 2f834dd50..e5696e47b 100644 --- a/src/GEOM/GEOM_BaseDriver.cxx +++ b/src/GEOM/GEOM_BaseDriver.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -30,27 +30,10 @@ #include "GEOM_Object.hxx" #include "GEOM_Engine.hxx" -#include #include #include -IMPLEMENT_STANDARD_HANDLE (GEOM_BaseDriver,TFunction_Driver); -IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver); - -//================================================================================ -/*! - * Returns document id - */ -//================================================================================ -int GEOM_BaseDriver::GetDocID() const -{ - int docId = 0; - if (!Label().IsNull()) { - Handle(TDocStd_Document) aDoc = TDocStd_Owner::GetDocument(Label().Data()); - docId = GEOM_Engine::GetEngine()->GetDocID(aDoc); - } - return docId; -} +IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver) //================================================================================ /*! @@ -136,7 +119,8 @@ GEOM_Param & GEOM_Param::operator<<( const Handle(TColStd_HSequenceOfTransient)& { if ( funs->Length() > 1 ) (*this) << funs->Length() << " objects: "; - for ( int i = 1; i <= funs->Length(); ++i ) + int nb = Min( 100, funs->Length() ); // don't show huge lists + for ( int i = 1; i <= nb; ++i ) (*this) << funs->Value( i ) << " "; } return *this;