summaryrefslogtreecommitdiff
path: root/inc/STEPControl_ActorRead.hxx
blob: de472e26c8ad7da3f94acc58295e510dfbbec19f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _STEPControl_ActorRead_HeaderFile
#define _STEPControl_ActorRead_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_STEPControl_ActorRead_HeaderFile
#include <Handle_STEPControl_ActorRead.hxx>
#endif

#ifndef _StepToTopoDS_NMTool_HeaderFile
#include <StepToTopoDS_NMTool.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_StepRepr_Representation_HeaderFile
#include <Handle_StepRepr_Representation.hxx>
#endif
#ifndef _Transfer_ActorOfTransientProcess_HeaderFile
#include <Transfer_ActorOfTransientProcess.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
#ifndef _Handle_Transfer_Binder_HeaderFile
#include <Handle_Transfer_Binder.hxx>
#endif
#ifndef _Handle_Transfer_TransientProcess_HeaderFile
#include <Handle_Transfer_TransientProcess.hxx>
#endif
#ifndef _Handle_StepGeom_Axis2Placement3d_HeaderFile
#include <Handle_StepGeom_Axis2Placement3d.hxx>
#endif
#ifndef _Handle_StepRepr_RepresentationRelationship_HeaderFile
#include <Handle_StepRepr_RepresentationRelationship.hxx>
#endif
#ifndef _Handle_TransferBRep_ShapeBinder_HeaderFile
#include <Handle_TransferBRep_ShapeBinder.hxx>
#endif
#ifndef _Handle_StepBasic_ProductDefinition_HeaderFile
#include <Handle_StepBasic_ProductDefinition.hxx>
#endif
#ifndef _Handle_StepRepr_NextAssemblyUsageOccurrence_HeaderFile
#include <Handle_StepRepr_NextAssemblyUsageOccurrence.hxx>
#endif
#ifndef _Handle_StepShape_ShapeRepresentation_HeaderFile
#include <Handle_StepShape_ShapeRepresentation.hxx>
#endif
#ifndef _Handle_StepShape_ContextDependentShapeRepresentation_HeaderFile
#include <Handle_StepShape_ContextDependentShapeRepresentation.hxx>
#endif
#ifndef _Handle_StepRepr_ShapeRepresentationRelationship_HeaderFile
#include <Handle_StepRepr_ShapeRepresentationRelationship.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_StepGeom_GeometricRepresentationItem_HeaderFile
#include <Handle_StepGeom_GeometricRepresentationItem.hxx>
#endif
#ifndef _Handle_StepRepr_MappedItem_HeaderFile
#include <Handle_StepRepr_MappedItem.hxx>
#endif
#ifndef _Handle_StepShape_FaceSurface_HeaderFile
#include <Handle_StepShape_FaceSurface.hxx>
#endif
class StepRepr_Representation;
class Standard_Transient;
class Transfer_Binder;
class Transfer_TransientProcess;
class StepGeom_Axis2Placement3d;
class gp_Trsf;
class StepRepr_RepresentationRelationship;
class TransferBRep_ShapeBinder;
class StepBasic_ProductDefinition;
class StepRepr_NextAssemblyUsageOccurrence;
class StepShape_ShapeRepresentation;
class StepShape_ContextDependentShapeRepresentation;
class StepRepr_ShapeRepresentationRelationship;
class StepGeom_GeometricRepresentationItem;
class StepRepr_MappedItem;
class StepShape_FaceSurface;
class TopoDS_Shell;
class TopTools_ListOfShape;
class TopoDS_Compound;
class TopTools_IndexedDataMapOfShapeListOfShape;


//! This class performs the transfer of an Entity from <br>
//!           AP214 and AP203, either Geometric or Topologic. <br>
//! <br>
//!           I.E. for each type of Entity, it invokes the appropriate Tool <br>
//!           then returns the Binder which contains the Result <br>
class STEPControl_ActorRead : public Transfer_ActorOfTransientProcess {

public:

  
  Standard_EXPORT   STEPControl_ActorRead();
  
  Standard_EXPORT   virtual  Standard_Boolean Recognize(const Handle(Standard_Transient)& start) ;
  
  Standard_EXPORT   virtual  Handle_Transfer_Binder Transfer(const Handle(Standard_Transient)& start,const Handle(Transfer_TransientProcess)& TP) ;
  
  Standard_EXPORT     Handle_Transfer_Binder TransferShape(const Handle(Standard_Transient)& start,const Handle(Transfer_TransientProcess)& TP,const Standard_Boolean isManifold = Standard_True) ;
  //! set units and tolerances context by given ShapeRepresentation <br>
  Standard_EXPORT     void PrepareUnits(const Handle(StepRepr_Representation)& rep,const Handle(Transfer_TransientProcess)& TP) ;
  //! reset units and tolerances context to default <br>
//!         (mm, radians, read.precision.val, etc.) <br>
  Standard_EXPORT     void ResetUnits() ;
  //! Computes transformation defined by two axis placements (in MAPPED_ITEM <br>
//!          or ITEM_DEFINED_TRANSFORMATION) taking into account their <br>
//!          representation contexts (i.e. units, which may be different) <br>
//!          Returns True if transformation is computed and is not an identity. <br>
  Standard_EXPORT     Standard_Boolean ComputeTransformation(const Handle(StepGeom_Axis2Placement3d)& Origin,const Handle(StepGeom_Axis2Placement3d)& Target,const Handle(StepRepr_Representation)& OrigContext,const Handle(StepRepr_Representation)& TargContext,const Handle(Transfer_TransientProcess)& TP,gp_Trsf& Trsf) ;
  //! Computes transformation defined by given <br>
//!          REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION <br>
  Standard_EXPORT     Standard_Boolean ComputeSRRWT(const Handle(StepRepr_RepresentationRelationship)& SRR,const Handle(Transfer_TransientProcess)& TP,gp_Trsf& Trsf) ;




  DEFINE_STANDARD_RTTI(STEPControl_ActorRead)

protected:

  //!Transfers product definition entity <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepBasic_ProductDefinition)& PD,const Handle(Transfer_TransientProcess)& TP) ;
  //!Transfers next assembly usage occurence entity <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepRepr_NextAssemblyUsageOccurrence)& NAUO,const Handle(Transfer_TransientProcess)& TP) ;
  //!Transfers shape representation entity <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepShape_ShapeRepresentation)& sr,const Handle(Transfer_TransientProcess)& TP,Standard_Boolean& isBound) ;
  //!Transfers context dependent shape representation entity <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepShape_ContextDependentShapeRepresentation)& CDSR,const Handle(Transfer_TransientProcess)& TP) ;
  //!Transfers  shape representation relationship entity <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepRepr_ShapeRepresentationRelationship)& und,const Handle(Transfer_TransientProcess)& TP,const Standard_Integer nbrep = 0) ;
  //!Transfers  geometric representation item entity such as ManifoldSolidBRep ,...etc <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepGeom_GeometricRepresentationItem)& git,const Handle(Transfer_TransientProcess)& TP,const Standard_Boolean isManifold) ;
  //!Transfers  mapped item <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepRepr_MappedItem)& mapit,const Handle(Transfer_TransientProcess)& TP) ;
  //!Transfers  FaceSurface entity <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder TransferEntity(const Handle(StepShape_FaceSurface)& fs,const Handle(Transfer_TransientProcess)& TP) ;
  //!Tranlates file by old way when CDSR are roots . Acts only if "read.step.product_mode" is equal Off. <br>
  Standard_EXPORT     Handle_TransferBRep_ShapeBinder OldWay(const Handle(Standard_Transient)& start,const Handle(Transfer_TransientProcess)& TP) ;



private: 

  
  Standard_EXPORT     TopoDS_Shell closeIDEASShell(const TopoDS_Shell& shell,const TopTools_ListOfShape& closingShells) ;
  
  Standard_EXPORT     void computeIDEASClosings(const TopoDS_Compound& comp,TopTools_IndexedDataMapOfShapeListOfShape& shellClosingMap) ;

StepToTopoDS_NMTool myNMTool;
Standard_Real myPrecision;
Standard_Real myMaxTol;
Handle_StepRepr_Representation mySRContext;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif