0032951: Coding - get rid of unused headers [GeomConvert to IGESBasic]
[occt.git] / src / IGESAppli / IGESAppli_NodalDisplAndRot.hxx
1 // Created on: 1993-01-11
2 // Created by: CKY / Contract Toubro-Larsen ( Arun MENON )
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_NodalDisplAndRot_HeaderFile
18 #define _IGESAppli_NodalDisplAndRot_HeaderFile
19
20 #include <Standard.hxx>
21
22 #include <IGESDimen_HArray1OfGeneralNote.hxx>
23 #include <TColStd_HArray1OfInteger.hxx>
24 #include <IGESAppli_HArray1OfNode.hxx>
25 #include <IGESData_IGESEntity.hxx>
26 #include <Standard_Integer.hxx>
27 class IGESBasic_HArray1OfHArray1OfXYZ;
28 class IGESDimen_GeneralNote;
29 class IGESAppli_Node;
30 class gp_XYZ;
31
32
33 class IGESAppli_NodalDisplAndRot;
34 DEFINE_STANDARD_HANDLE(IGESAppli_NodalDisplAndRot, IGESData_IGESEntity)
35
36 //! defines NodalDisplAndRot, Type <138> Form <0>
37 //! in package IGESAppli
38 //! Used to communicate finite element post processing
39 //! data.
40 class IGESAppli_NodalDisplAndRot : public IGESData_IGESEntity
41 {
42
43 public:
44
45   
46   Standard_EXPORT IGESAppli_NodalDisplAndRot();
47   
48   //! This method is used to set the fields of the class
49   //! NodalDisplAndRot
50   //! - allNotes       : Used to store the general note describing
51   //! the analysis cases
52   //! - allIdentifiers : Used to store the node number
53   //! identifier for the nodes
54   //! - allNodes       : Used to store the nodes
55   //! - allRotParams   : Used to store the rotation for the nodes
56   //! - allTransParams : Used to store the incremental
57   //! displacements for the nodes
58   //! raises exception if Lengths of allIdentifiers, allNodes,
59   //! allRotParams, and allTransParams are not same
60   //! or if length of allNotes and size of each element of allRotParams
61   //! and allTransParam are not same
62   Standard_EXPORT void Init (const Handle(IGESDimen_HArray1OfGeneralNote)& allNotes, const Handle(TColStd_HArray1OfInteger)& allIdentifiers, const Handle(IGESAppli_HArray1OfNode)& allNodes, const Handle(IGESBasic_HArray1OfHArray1OfXYZ)& allRotParams, const Handle(IGESBasic_HArray1OfHArray1OfXYZ)& allTransParams);
63   
64   //! returns the number of analysis cases
65   Standard_EXPORT Standard_Integer NbCases() const;
66   
67   //! returns the number of nodes
68   Standard_EXPORT Standard_Integer NbNodes() const;
69   
70   //! returns the General Note that describes the Index analysis case
71   //! raises exception if Index <= 0 or Index > NbCases
72   Standard_EXPORT Handle(IGESDimen_GeneralNote) Note (const Standard_Integer Index) const;
73   
74   //! returns the node identifier as specified by the Index
75   //! raises exception if Index <= 0 or Index > NbNodes
76   Standard_EXPORT Standard_Integer NodeIdentifier (const Standard_Integer Index) const;
77   
78   //! returns the node as specified by the Index
79   //! raises exception if Index <= 0 or Index > NbNodes
80   Standard_EXPORT Handle(IGESAppli_Node) Node (const Standard_Integer Index) const;
81   
82   //! returns the Translational Parameters for the particular Index
83   //! Exception raised if NodeNum <= 0 or NodeNum > NbNodes()
84   //! or CaseNum <= 0 or CaseNum > NbCases()
85   Standard_EXPORT gp_XYZ TranslationParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
86   
87   //! returns the Rotational Parameters for Index
88   //! Exception raised if NodeNum <= 0 or NodeNum > NbNodes()
89   //! or CaseNum <= 0 or CaseNum > NbCases()
90   Standard_EXPORT gp_XYZ RotationalParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
91
92
93
94
95   DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalDisplAndRot,IGESData_IGESEntity)
96
97 protected:
98
99
100
101
102 private:
103
104
105   Handle(IGESDimen_HArray1OfGeneralNote) theNotes;
106   Handle(TColStd_HArray1OfInteger) theNodeIdentifiers;
107   Handle(IGESAppli_HArray1OfNode) theNodes;
108   Handle(IGESBasic_HArray1OfHArray1OfXYZ) theTransParam;
109   Handle(IGESBasic_HArray1OfHArray1OfXYZ) theRotParam;
110
111
112 };
113
114
115
116
117
118
119
120 #endif // _IGESAppli_NodalDisplAndRot_HeaderFile