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