42cf5bc1 |
1 | // Created on: 1993-01-11 |
2 | // Created by: CKY / Contract Toubro-Larsen ( Anand NATRAJAN ) |
3 | // Copyright (c) 1993-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _IGESAppli_NodalConstraint_HeaderFile |
18 | #define _IGESAppli_NodalConstraint_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Integer.hxx> |
24 | #include <IGESDefs_HArray1OfTabularData.hxx> |
25 | #include <IGESData_IGESEntity.hxx> |
26 | class IGESAppli_Node; |
27 | class Standard_OutOfRange; |
28 | class IGESDefs_TabularData; |
29 | |
30 | |
31 | class IGESAppli_NodalConstraint; |
32 | DEFINE_STANDARD_HANDLE(IGESAppli_NodalConstraint, IGESData_IGESEntity) |
33 | |
34 | //! defines NodalConstraint, Type <418> Form <0> |
35 | //! in package IGESAppli |
36 | //! Relates loads and/or constraints to specific nodes in |
37 | //! the Finite Element Model by creating a relation between |
38 | //! Node entities and Tabular Data Property that contains |
39 | //! the load or constraint data |
40 | class IGESAppli_NodalConstraint : public IGESData_IGESEntity |
41 | { |
42 | |
43 | public: |
44 | |
45 | |
46 | Standard_EXPORT IGESAppli_NodalConstraint(); |
47 | |
48 | //! This method is used to set the fields of the class |
49 | //! NodalConstraint |
50 | //! - aType : Loads / Constraints |
51 | //! - aNode : the Node |
52 | //! - allTabData : Tabular Data Property carrying the load |
53 | //! or constraint vector |
54 | Standard_EXPORT void Init (const Standard_Integer aType, const Handle(IGESAppli_Node)& aNode, const Handle(IGESDefs_HArray1OfTabularData)& allTabData); |
55 | |
56 | //! returns total number of cases |
57 | Standard_EXPORT Standard_Integer NbCases() const; |
58 | |
59 | //! returns whether Loads (1) or Constraints (2) |
60 | Standard_EXPORT Standard_Integer Type() const; |
61 | |
62 | //! returns the Node |
63 | Standard_EXPORT Handle(IGESAppli_Node) NodeEntity() const; |
64 | |
65 | //! returns Tabular Data Property carrying load or constraint vector |
66 | //! raises exception if Index <= 0 or Index > NbCases |
67 | Standard_EXPORT Handle(IGESDefs_TabularData) TabularData (const Standard_Integer Index) const; |
68 | |
69 | |
70 | |
71 | |
92efcf78 |
72 | DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalConstraint,IGESData_IGESEntity) |
42cf5bc1 |
73 | |
74 | protected: |
75 | |
76 | |
77 | |
78 | |
79 | private: |
80 | |
81 | |
82 | Standard_Integer theType; |
83 | Handle(IGESAppli_Node) theNode; |
84 | Handle(IGESDefs_HArray1OfTabularData) theTabularDataProps; |
85 | |
86 | |
87 | }; |
88 | |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | #endif // _IGESAppli_NodalConstraint_HeaderFile |