// Created on: 1993-01-11 // Created by: CKY / Contract Toubro-Larsen ( Anand NATRAJAN ) // 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_NodalConstraint_HeaderFile #define _IGESAppli_NodalConstraint_HeaderFile #include "Standard.hxx" #include "Standard_Integer.hxx" #include "IGESDefs_TabularData.hxx" #include "NCollection_Array1.hxx" #include "NCollection_HArray1.hxx" #include "IGESData_IGESEntity.hxx" class IGESAppli_Node; class IGESDefs_TabularData; //! defines NodalConstraint, Type <418> Form <0> //! in package IGESAppli //! Relates loads and/or constraints to specific nodes in //! the Finite Element Model by creating a relation between //! Node entities and Tabular Data Property that contains //! the load or constraint data class IGESAppli_NodalConstraint : public IGESData_IGESEntity { public: Standard_EXPORT IGESAppli_NodalConstraint(); //! This method is used to set the fields of the class //! NodalConstraint //! - aType : Loads / Constraints //! - aNode : the Node //! - allTabData : Tabular Data Property carrying the load //! or constraint vector Standard_EXPORT void Init( const int aType, const occ::handle& aNode, const occ::handle>>& allTabData); //! returns total number of cases Standard_EXPORT int NbCases() const; //! returns whether Loads (1) or Constraints (2) Standard_EXPORT int Type() const; //! returns the Node Standard_EXPORT occ::handle NodeEntity() const; //! returns Tabular Data Property carrying load or constraint vector //! raises exception if Index <= 0 or Index > NbCases Standard_EXPORT occ::handle TabularData(const int Index) const; DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalConstraint, IGESData_IGESEntity) private: int theType; occ::handle theNode; occ::handle>> theTabularDataProps; }; #endif // _IGESAppli_NodalConstraint_HeaderFile