X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2FSMDS_Downward.hxx;h=56854fd1da7e00dfc8236684b898740517eaca9c;hp=173f463f423a54ceb49d825b77ba70fe38bb92ca;hb=d4a710ce52f6e76786a7b3845e2f7975dc9a00b1;hpb=1f7581fe436ed3182ec3708b5d561a5cf3820ace diff --git a/src/SMDS/SMDS_Downward.hxx b/src/SMDS/SMDS_Downward.hxx index 173f463f4..56854fd1d 100644 --- a/src/SMDS/SMDS_Downward.hxx +++ b/src/SMDS/SMDS_Downward.hxx @@ -1,9 +1,25 @@ -/* - * SMDS_Downward.hxx - * - * Created on: Jun 3, 2010 - * Author: prascle - */ +// Copyright (C) 2010-2012 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. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + +// File: SMDS_Downward.hxx +// Created: Jun 3, 2010 +// Author: prascle #ifndef SMDS_DOWNWARD_HXX_ #define SMDS_DOWNWARD_HXX_ @@ -61,6 +77,8 @@ public: virtual const int* getUpCells(int cellId) = 0; virtual const unsigned char* getUpTypes(int cellId) = 0; virtual void getNodeIds(int cellId, std::set& nodeSet) = 0; + virtual int getNodes(int cellId, int* nodevec) {return 0; } + virtual void getOrderedNodesOfFace(int cellId, std::vector& orderedNodes) {}; int getVtkCellId(int cellId) { return _vtkCellIds[cellId]; @@ -99,6 +117,7 @@ public: virtual const int* getUpCells(int cellId); virtual const unsigned char* getUpTypes(int cellId); virtual void getNodeIds(int cellId, std::set& nodeSet); + virtual int getNodes(int cellId, int* nodevec) { return getNodeSet(cellId, nodevec); } protected: SMDS_Down1D(SMDS_UnstructuredGrid *grid, int nbDownCells); ~SMDS_Down1D(); @@ -160,7 +179,6 @@ public: virtual const int* getUpCells(int cellId); virtual const unsigned char* getUpTypes(int cellId); virtual void getNodeIds(int cellId, std::set& nodeSet); - virtual void getOrderedNodesOfFace(int cellId, std::vector& orderedNodes) = 0; protected: SMDS_Down3D(SMDS_UnstructuredGrid *grid, int nbDownCells); ~SMDS_Down3D();