// Created on: 1993-01-11 // Created by: CKY / Contract Toubro-Larsen ( Arun MENON ) // Copyright (c) 1993-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _IGESAppli_FiniteElement_HeaderFile #define _IGESAppli_FiniteElement_HeaderFile #include "Standard.hxx" #include "Standard_Integer.hxx" #include "IGESAppli_Node.hxx" #include "NCollection_Array1.hxx" #include "NCollection_HArray1.hxx" #include "IGESData_IGESEntity.hxx" class TCollection_HAsciiString; class IGESAppli_Node; //! defines FiniteElement, Type <136> Form <0> //! in package IGESAppli //! Used to define a finite element with the help of an //! element topology. class IGESAppli_FiniteElement : public IGESData_IGESEntity { public: Standard_EXPORT IGESAppli_FiniteElement(); //! This method is used to set the fields of the class //! FiniteElement //! - aType : Indicates the topology type //! - allNodes : List of Nodes defining the element //! - aName : Element type name Standard_EXPORT void Init( const int aType, const occ::handle>>& allNodes, const occ::handle& aName); //! returns Topology type Standard_EXPORT int Topology() const; //! returns the number of nodes defining the element Standard_EXPORT int NbNodes() const; //! returns Node defining element entity //! raises exception if Index <= 0 or Index > NbNodes() Standard_EXPORT occ::handle Node(const int Index) const; //! returns Element Type Name Standard_EXPORT occ::handle Name() const; DEFINE_STANDARD_RTTIEXT(IGESAppli_FiniteElement, IGESData_IGESEntity) private: int theTopology; occ::handle>> theNodes; occ::handle theName; }; #endif // _IGESAppli_FiniteElement_HeaderFile