00001 // Copyright (C) 2010-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 #ifndef _SMDS_VTKFACE_HXX_ 00021 #define _SMDS_VTKFACE_HXX_ 00022 00023 #include "SMESH_SMDS.hxx" 00024 00025 #include "SMDS_MeshFace.hxx" 00026 #include <vtkUnstructuredGrid.h> 00027 #include <vector> 00028 00029 class SMDS_EXPORT SMDS_VtkFace: public SMDS_MeshFace 00030 { 00031 public: 00032 SMDS_VtkFace(); 00033 SMDS_VtkFace(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh); 00034 ~SMDS_VtkFace(); 00035 void init(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh); 00036 void initPoly(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh); 00037 bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes); 00038 void ChangeApex(SMDS_MeshNode* node); // to use only for tmp triangles 00039 void Print(std::ostream & OS) const; 00040 int NbEdges() const; 00041 int NbFaces() const; 00042 int NbNodes() const; 00043 00044 virtual vtkIdType GetVtkType() const; 00045 virtual SMDSAbs_EntityType GetEntityType() const; 00046 virtual const SMDS_MeshNode* GetNode(const int ind) const; 00047 virtual bool IsQuadratic() const; 00048 virtual bool IsPoly() const; 00049 virtual bool IsMediumNode(const SMDS_MeshNode* node) const; 00050 00051 virtual SMDS_ElemIteratorPtr elementsIterator(SMDSAbs_ElementType type) const; 00052 virtual SMDS_ElemIteratorPtr nodesIteratorToUNV() const; 00053 virtual SMDS_ElemIteratorPtr interlacedNodesElemIterator() const; 00054 protected: 00055 }; 00056 00057 #endif