File indexing completed on 2025-01-18 10:05:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile
0017 #define _StepAP242_ItemIdentifiedRepresentationUsage_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <Standard_Transient.hxx>
0022 #include <StepAP242_ItemIdentifiedRepresentationUsageDefinition.hxx>
0023 #include <Standard_Integer.hxx>
0024 #include <StepRepr_HArray1OfRepresentationItem.hxx>
0025
0026 class TCollection_HAsciiString;
0027 class StepRepr_Representation;
0028 class StepRepr_RepresentationItem;
0029
0030 class StepAP242_ItemIdentifiedRepresentationUsage;
0031 DEFINE_STANDARD_HANDLE(StepAP242_ItemIdentifiedRepresentationUsage, Standard_Transient)
0032 class StepAP242_ItemIdentifiedRepresentationUsage : public Standard_Transient
0033 {
0034
0035 public:
0036
0037
0038 Standard_EXPORT StepAP242_ItemIdentifiedRepresentationUsage();
0039
0040
0041 Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
0042 const Handle(TCollection_HAsciiString)& theDescription,
0043 const StepAP242_ItemIdentifiedRepresentationUsageDefinition& theDefinition,
0044 const Handle(StepRepr_Representation)& theUsedRepresentation,
0045 const Handle(StepRepr_HArray1OfRepresentationItem)& theIdentifiedItem);
0046
0047
0048 inline void SetName(const Handle(TCollection_HAsciiString)& theName)
0049 {
0050 name = theName;
0051 }
0052
0053
0054 inline Handle(TCollection_HAsciiString) Name() const
0055 {
0056 return name;
0057 }
0058
0059
0060 inline void SetDescription(const Handle(TCollection_HAsciiString)& theDescription)
0061 {
0062 description = theDescription;
0063 }
0064
0065
0066 inline Handle(TCollection_HAsciiString) Description() const
0067 {
0068 return description;
0069 }
0070
0071
0072 inline void SetDefinition(const StepAP242_ItemIdentifiedRepresentationUsageDefinition& theDefinition)
0073 {
0074 definition = theDefinition;
0075 }
0076
0077
0078 inline StepAP242_ItemIdentifiedRepresentationUsageDefinition Definition() const
0079 {
0080 return definition;
0081 }
0082
0083
0084 inline void SetUsedRepresentation(const Handle(StepRepr_Representation)& theUsedRepresentation)
0085 {
0086 usedRepresentation = theUsedRepresentation;
0087 }
0088
0089
0090 inline Handle(StepRepr_Representation) UsedRepresentation() const
0091 {
0092 return usedRepresentation;
0093 }
0094
0095
0096 inline Handle(StepRepr_HArray1OfRepresentationItem) IdentifiedItem () const
0097 {
0098 return identifiedItem;
0099 }
0100
0101
0102 inline Standard_Integer NbIdentifiedItem () const
0103 {
0104 return (identifiedItem.IsNull() ? 0 : identifiedItem->Length());
0105 }
0106
0107
0108 inline void SetIdentifiedItem (const Handle(StepRepr_HArray1OfRepresentationItem)& theIdentifiedItem)
0109 {
0110 identifiedItem = theIdentifiedItem;
0111 }
0112
0113
0114 inline Handle(StepRepr_RepresentationItem) IdentifiedItemValue
0115 (const Standard_Integer num) const
0116 {
0117 return identifiedItem->Value(num);
0118 }
0119
0120
0121 inline void SetIdentifiedItemValue (const Standard_Integer num, const Handle(StepRepr_RepresentationItem)& theItem)
0122 {
0123 identifiedItem->SetValue (num, theItem);
0124 }
0125
0126 DEFINE_STANDARD_RTTIEXT(StepAP242_ItemIdentifiedRepresentationUsage,Standard_Transient)
0127
0128 private:
0129 Handle(TCollection_HAsciiString) name;
0130 Handle(TCollection_HAsciiString) description;
0131 StepAP242_ItemIdentifiedRepresentationUsageDefinition definition;
0132 Handle(StepRepr_Representation) usedRepresentation;
0133 Handle(StepRepr_HArray1OfRepresentationItem) identifiedItem;
0134 };
0135 #endif