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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESAppli_NodalDisplAndRot_HeaderFile
18 #define _IGESAppli_NodalDisplAndRot_HeaderFile
20 #include <Standard.hxx>
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;
33 class IGESAppli_NodalDisplAndRot;
34 DEFINE_STANDARD_HANDLE(IGESAppli_NodalDisplAndRot, IGESData_IGESEntity)
36 //! defines NodalDisplAndRot, Type <138> Form <0>
37 //! in package IGESAppli
38 //! Used to communicate finite element post processing
40 class IGESAppli_NodalDisplAndRot : public IGESData_IGESEntity
46 Standard_EXPORT IGESAppli_NodalDisplAndRot();
48 //! This method is used to set the fields of the class
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);
64 //! returns the number of analysis cases
65 Standard_EXPORT Standard_Integer NbCases() const;
67 //! returns the number of nodes
68 Standard_EXPORT Standard_Integer NbNodes() const;
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;
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;
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;
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;
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;
95 DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalDisplAndRot,IGESData_IGESEntity)
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;
120 #endif // _IGESAppli_NodalDisplAndRot_HeaderFile