File indexing completed on 2025-01-18 10:05:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _STEPConstruct_ValidationProps_HeaderFile
0018 #define _STEPConstruct_ValidationProps_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <StepBasic_Unit.hxx>
0025 #include <STEPConstruct_Tool.hxx>
0026 #include <Standard_CString.hxx>
0027 #include <TColStd_SequenceOfTransient.hxx>
0028 class StepBasic_ProductDefinition;
0029 class StepData_Factors;
0030 class XSControl_WorkSession;
0031 class TopoDS_Shape;
0032 class StepRepr_RepresentationItem;
0033 class StepRepr_CharacterizedDefinition;
0034 class StepRepr_RepresentationContext;
0035 class gp_Pnt;
0036 class StepRepr_NextAssemblyUsageOccurrence;
0037 class StepRepr_PropertyDefinition;
0038
0039
0040
0041
0042
0043 class STEPConstruct_ValidationProps : public STEPConstruct_Tool
0044 {
0045 public:
0046
0047 DEFINE_STANDARD_ALLOC
0048
0049
0050
0051 Standard_EXPORT STEPConstruct_ValidationProps();
0052
0053
0054 Standard_EXPORT STEPConstruct_ValidationProps(const Handle(XSControl_WorkSession)& WS);
0055
0056
0057 Standard_EXPORT Standard_Boolean Init (const Handle(XSControl_WorkSession)& WS);
0058
0059
0060
0061
0062
0063
0064 Standard_EXPORT Standard_Boolean AddProp (const TopoDS_Shape& Shape, const Handle(StepRepr_RepresentationItem)& Prop, const Standard_CString Descr, const Standard_Boolean instance = Standard_False);
0065
0066
0067
0068
0069
0070 Standard_EXPORT Standard_Boolean AddProp (const StepRepr_CharacterizedDefinition& target, const Handle(StepRepr_RepresentationContext)& Context, const Handle(StepRepr_RepresentationItem)& Prop, const Standard_CString Descr);
0071
0072
0073
0074 Standard_EXPORT Standard_Boolean AddArea (const TopoDS_Shape& Shape, const Standard_Real Area);
0075
0076
0077
0078 Standard_EXPORT Standard_Boolean AddVolume (const TopoDS_Shape& Shape, const Standard_Real Vol);
0079
0080
0081
0082
0083
0084 Standard_EXPORT Standard_Boolean AddCentroid (const TopoDS_Shape& Shape, const gp_Pnt& Pnt, const Standard_Boolean instance = Standard_False);
0085
0086
0087
0088
0089 Standard_EXPORT Standard_Boolean FindTarget (const TopoDS_Shape& S, StepRepr_CharacterizedDefinition& target, Handle(StepRepr_RepresentationContext)& Context, const Standard_Boolean instance = Standard_False);
0090
0091
0092
0093 Standard_EXPORT Standard_Boolean LoadProps (TColStd_SequenceOfTransient& seq) const;
0094
0095
0096
0097 Standard_EXPORT Handle(StepRepr_NextAssemblyUsageOccurrence) GetPropNAUO (const Handle(StepRepr_PropertyDefinition)& PD) const;
0098
0099
0100
0101 Standard_EXPORT Handle(StepBasic_ProductDefinition) GetPropPD (const Handle(StepRepr_PropertyDefinition)& PD) const;
0102
0103
0104
0105 Standard_EXPORT TopoDS_Shape GetPropShape (const Handle(StepBasic_ProductDefinition)& ProdDef) const;
0106
0107
0108
0109 Standard_EXPORT TopoDS_Shape GetPropShape (const Handle(StepRepr_PropertyDefinition)& PD) const;
0110
0111
0112
0113
0114
0115 Standard_EXPORT Standard_Boolean GetPropReal (const Handle(StepRepr_RepresentationItem)& item,
0116 Standard_Real& Val,
0117 Standard_Boolean& isArea,
0118 const StepData_Factors& theLocalFactors) const;
0119
0120
0121 Standard_EXPORT Standard_Boolean GetPropPnt (const Handle(StepRepr_RepresentationItem)& item,
0122 const Handle(StepRepr_RepresentationContext)& Context,
0123 gp_Pnt& Pnt,
0124 const StepData_Factors& theLocalFactors) const;
0125
0126
0127 Standard_EXPORT void SetAssemblyShape (const TopoDS_Shape& shape);
0128
0129
0130
0131
0132 protected:
0133
0134
0135
0136
0137
0138 private:
0139
0140
0141
0142 StepBasic_Unit areaUnit;
0143 StepBasic_Unit volUnit;
0144 Handle(StepBasic_ProductDefinition) myAssemblyPD;
0145
0146
0147 };
0148
0149
0150
0151
0152
0153
0154
0155 #endif