2010-01-08 15:53:25 +00:00
|
|
|
#ifndef _SMDS_VTKVOLUME_HXX_
|
|
|
|
#define _SMDS_VTKVOLUME_HXX_
|
|
|
|
|
|
|
|
#include "SMESH_SMDS.hxx"
|
|
|
|
|
|
|
|
#include "SMDS_MeshVolume.hxx"
|
2010-09-10 14:58:23 +00:00
|
|
|
#include "SMDS_UnstructuredGrid.hxx"
|
2010-01-08 15:53:25 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2010-07-01 14:46:31 +00:00
|
|
|
class SMDS_EXPORT SMDS_VtkVolume: public SMDS_MeshVolume
|
2010-01-08 15:53:25 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
SMDS_VtkVolume();
|
|
|
|
SMDS_VtkVolume(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh);
|
|
|
|
~SMDS_VtkVolume();
|
|
|
|
void init(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh);
|
2010-09-10 14:58:23 +00:00
|
|
|
#ifdef VTK_HAVE_POLYHEDRON
|
|
|
|
void initPoly(std::vector<vtkIdType> nodeIds, std::vector<int> nbNodesPerFace, SMDS_Mesh* mesh);
|
|
|
|
#endif
|
2010-07-01 14:46:31 +00:00
|
|
|
bool ChangeNodes(const SMDS_MeshNode* nodes[], const int nbNodes);
|
2010-01-08 15:53:25 +00:00
|
|
|
|
|
|
|
void Print(std::ostream & OS) const;
|
|
|
|
int NbFaces() const;
|
|
|
|
int NbNodes() const;
|
|
|
|
int NbEdges() const;
|
2010-01-22 15:02:34 +00:00
|
|
|
virtual SMDSAbs_ElementType GetType() const;
|
|
|
|
virtual vtkIdType GetVtkType() const;
|
2010-01-08 15:53:25 +00:00
|
|
|
virtual SMDSAbs_EntityType GetEntityType() const;
|
|
|
|
virtual const SMDS_MeshNode* GetNode(const int ind) const;
|
2010-04-02 13:55:36 +00:00
|
|
|
virtual bool IsQuadratic() const;
|
2010-01-08 15:53:25 +00:00
|
|
|
|
|
|
|
protected:
|
2010-10-15 08:56:06 +00:00
|
|
|
virtual SMDS_ElemIteratorPtr elementsIterator(SMDSAbs_ElementType type) const;
|
|
|
|
virtual SMDS_ElemIteratorPtr nodesIteratorToUNV() const;
|
2010-01-08 15:53:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|