mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-15 21:21:21 +05:00
40 lines
996 B
C++
40 lines
996 B
C++
![]() |
#ifndef _SMDS_VTKVOLUME_HXX_
|
||
|
#define _SMDS_VTKVOLUME_HXX_
|
||
|
|
||
|
#include "SMESH_SMDS.hxx"
|
||
|
|
||
|
#include "SMDS_MeshVolume.hxx"
|
||
|
#include <vtkUnstructuredGrid.h>
|
||
|
#include <vector>
|
||
|
|
||
|
class SMDS_EXPORT SMDS_VtkVolume:public SMDS_MeshVolume
|
||
|
{
|
||
|
public:
|
||
|
SMDS_VtkVolume();
|
||
|
SMDS_VtkVolume(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh);
|
||
|
~SMDS_VtkVolume();
|
||
|
void init(std::vector<vtkIdType> nodeIds, SMDS_Mesh* mesh);
|
||
|
bool ChangeNodes(const SMDS_MeshNode* nodes[],
|
||
|
const int nbNodes);
|
||
|
|
||
|
void Print(std::ostream & OS) const;
|
||
|
int NbFaces() const;
|
||
|
int NbNodes() const;
|
||
|
int NbEdges() const;
|
||
|
virtual SMDSAbs_ElementType GetType() const;
|
||
|
virtual SMDSAbs_EntityType GetEntityType() const;
|
||
|
|
||
|
/*!
|
||
|
* \brief Return node by its index
|
||
|
* \param ind - node index
|
||
|
* \retval const SMDS_MeshNode* - the node
|
||
|
*/
|
||
|
virtual const SMDS_MeshNode* GetNode(const int ind) const;
|
||
|
|
||
|
protected:
|
||
|
SMDS_ElemIteratorPtr
|
||
|
elementsIterator(SMDSAbs_ElementType type) const;
|
||
|
};
|
||
|
|
||
|
#endif
|