X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_PreviewActorsCollection.h;h=f5d431335aee6a781c15e190a092859e95d0d2e5;hp=7c13ae39d936026b2c1840d229bdfa10381c7ab9;hb=d8bc11015235c68631ac85d7e8cf278edc9809d1;hpb=bd4e115a78b52e3fbc016e5e30bb0e19b2a9e7d6 diff --git a/src/OBJECT/SMESH_PreviewActorsCollection.h b/src/OBJECT/SMESH_PreviewActorsCollection.h index 7c13ae39d..f5d431335 100644 --- a/src/OBJECT/SMESH_PreviewActorsCollection.h +++ b/src/OBJECT/SMESH_PreviewActorsCollection.h @@ -1,9 +1,9 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 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 // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -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 );