X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMDS%2FSMDS_BallElement.hxx;h=4e7c6346e79b81895b00ee265d5ee665dc64c380;hp=6f6ad13c6738394fd0d3b2c03a085fd9f125728d;hb=ad3cb4c93852dbc834d7075c087bbc749197454b;hpb=a17b36970bc61da1d664453c615754997c925b18 diff --git a/src/SMDS/SMDS_BallElement.hxx b/src/SMDS/SMDS_BallElement.hxx index 6f6ad13c6..4e7c6346e 100644 --- a/src/SMDS/SMDS_BallElement.hxx +++ b/src/SMDS/SMDS_BallElement.hxx @@ -17,7 +17,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SMESH SMDS : implementaion of Salome mesh data structure +// SMESH SMDS : implementation of Salome mesh data structure // File : SMDS_BallElement.hxx // Module : SMESH // @@ -27,34 +27,23 @@ #include "SMESH_SMDS.hxx" #include "SMDS_MeshCell.hxx" -#include - +/*! + * \brief Ball element. This type is not allocated. + * It is only used as function argument type to provide more clear semantic + * and to provide API specific to ball element + */ class SMDS_EXPORT SMDS_BallElement: public SMDS_MeshCell { + void init(const SMDS_MeshNode * node, double diameter); + + friend class SMDS_Mesh; + public: - SMDS_BallElement(); - SMDS_BallElement (const SMDS_MeshNode * node, double diameter); - SMDS_BallElement(vtkIdType nodeId, double diameter, SMDS_Mesh* mesh); - void init(vtkIdType nodeId, double diameter, SMDS_Mesh* mesh); + double GetDiameter() const; - void SetDiameter(double diameter); - bool ChangeNode (const SMDS_MeshNode * node); - - virtual bool ChangeNodes(const SMDS_MeshNode* nodes[], - const int nbNodes) { return ChangeNode( nodes[0] ); } - virtual void Print (std::ostream & OS) const; - - virtual SMDSAbs_ElementType GetType() const { return SMDSAbs_Ball; } - virtual vtkIdType GetVtkType() const { return VTK_POLY_VERTEX; } - virtual SMDSAbs_EntityType GetEntityType() const { return SMDSEntity_Ball; } - virtual SMDSAbs_GeometryType GetGeomType() const { return SMDSGeom_BALL; } - virtual int NbNodes() const { return 1; } - virtual int NbEdges() const { return 0; } - virtual int NbFaces() const { return 0; } - virtual const SMDS_MeshNode* GetNode (const int ind) const; - - protected: - SMDS_ElemIteratorPtr elementsIterator (SMDSAbs_ElementType type) const; + void SetDiameter(double diameter); + + static SMDSAbs_ElementType Type() { return SMDSAbs_Ball; } }; #endif