X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_PreviewActorsCollection.h;h=682e49231e04395e15f54ca018bd48586892172b;hb=b8ddb1330cad42ad5381912dd267d1e39182daae;hp=8fcd55449d74531d897fd89e231581106908e8cf;hpb=5d68554076bbca0e1e95fb0db215a6c2b84b6c54;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_PreviewActorsCollection.h b/src/OBJECT/SMESH_PreviewActorsCollection.h index 8fcd55449..682e49231 100644 --- a/src/OBJECT/SMESH_PreviewActorsCollection.h +++ b/src/OBJECT/SMESH_PreviewActorsCollection.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2019 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 @@ -19,9 +19,7 @@ // SMESH OBJECT : interactive object for SMESH visualization // File : SMESH_PreviewActorsCollection.h -// Author : OCN // Module : SMESH -// $Header: /home/server/cvs/SMESH/SMESH_SRC/src/OBJECT/SMESH_PreviewActorsCollection.h,v 1 // #ifndef SMESH_PREVIEW_ACTOR_COLLECTION_H #define SMESH_PREVIEW_ACTOR_COLLECTION_H @@ -43,12 +41,15 @@ class SMESHOBJECT_EXPORT SMESH_PreviewActorsCollection { public: SMESH_PreviewActorsCollection(); - ~SMESH_PreviewActorsCollection(); + virtual ~SMESH_PreviewActorsCollection(); - virtual void AddToRender(vtkRenderer* theRenderer); + virtual void AddToRender (vtkRenderer* theRenderer); virtual void RemoveFromRender(vtkRenderer* theRenderer); - bool Init( const TopoDS_Shape& theShape, TopAbs_ShapeEnum subShapeType = TopAbs_EDGE, const QString& = QString("") ); + bool Init( const TopoDS_Shape& theShape, + const TopoDS_Shape& theMainShape, + TopAbs_ShapeEnum subShapeType = TopAbs_EDGE, + const QString& = QString("") ); void SetSelector( SVTK_Selector* ); @@ -56,8 +57,14 @@ public: void HighlightID( int ); GEOM_Actor* GetActorByIndex( int ); + bool IsValidIndex( int ); int GetIndexByShape( const TopoDS_Shape& ); + TopoDS_Shape GetShapeByIndex( int i ); + int NbShapesOfType( TopAbs_ShapeEnum type ); + + void SetIndices( const QList& indices); + const QList& GetIndices() const { return myIndices; } void SetShown( bool );