Back to index

salome-smesh  6.5.0
SMDS_VtkEdge.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2010-2012  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_VTKEDGE_HXX_
00021 #define _SMDS_VTKEDGE_HXX_
00022 
00023 #include "SMESH_SMDS.hxx"
00024 
00025 #include "SMDS_MeshEdge.hxx"
00026 #include <vtkUnstructuredGrid.h>
00027 #include <vector>
00028 
00029 class SMDS_EXPORT SMDS_VtkEdge: public SMDS_MeshEdge
00030 {
00031 
00032 public:
00033   SMDS_VtkEdge();
00034   SMDS_VtkEdge(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh);
00035   ~SMDS_VtkEdge();
00036   void init(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh);
00037   bool ChangeNodes(const SMDS_MeshNode * node1, const SMDS_MeshNode * node2);
00038   virtual bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes);
00039   virtual bool IsMediumNode(const SMDS_MeshNode* node) const;
00040 
00041   void Print(std::ostream & OS) const;
00042   int NbNodes() const;
00043   int NbEdges() const;
00044 
00045   virtual vtkIdType GetVtkType() const;
00046   virtual SMDSAbs_EntityType GetEntityType() const;
00047   virtual const SMDS_MeshNode* GetNode(const int ind) const;
00048   virtual bool IsQuadratic() const;
00049 
00050   virtual SMDS_ElemIteratorPtr elementsIterator(SMDSAbs_ElementType type) const;
00051   virtual SMDS_ElemIteratorPtr nodesIteratorToUNV() const;
00052   virtual SMDS_ElemIteratorPtr interlacedNodesElemIterator() const;
00053 protected:
00054 };
00055 #endif