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
|
// 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 _IGESSelect_SplineToBSpline_HeaderFile
#define _IGESSelect_SplineToBSpline_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESSelect_SplineToBSpline_HeaderFile
#include <Handle_IGESSelect_SplineToBSpline.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Interface_CopyControl_HeaderFile
#include <Handle_Interface_CopyControl.hxx>
#endif
#ifndef _IFSelect_Transformer_HeaderFile
#include <IFSelect_Transformer.hxx>
#endif
#ifndef _Handle_Interface_Protocol_HeaderFile
#include <Handle_Interface_Protocol.hxx>
#endif
#ifndef _Handle_Interface_InterfaceModel_HeaderFile
#include <Handle_Interface_InterfaceModel.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
class Interface_CopyControl;
class Interface_Graph;
class Interface_Protocol;
class Interface_CheckIterator;
class Interface_InterfaceModel;
class Standard_Transient;
class TCollection_AsciiString;
//! This type of Transformer allows to convert Spline Curves (IGES <br>
//! type 112) and Surfaces (IGES Type 126) to BSpline Curves (IGES <br>
//! type 114) and Surfac (IGES Type 128). All other entities are <br>
//! rebuilt as identical but on the basis of this conversion. <br>
//! <br>
//! It also gives an option to, either convert as such (i.e. each <br>
//! starting part of the spline becomes a segment of the bspline, <br>
//! with continuity C0 between segments), or try to increase <br>
//! continuity as far as possible to C1 or to C2. <br>
//! <br>
//! It does nothing if the starting model contains no Spline <br>
//! Curve (IGES Type 112) or Surface (IGES Type 126). Else, <br>
//! converting and rebuilding implies copying of entities. <br>
class IGESSelect_SplineToBSpline : public IFSelect_Transformer {
public:
//! Creates a Transformer SplineToBSpline. If <tryC2> is True, <br>
//! it will in addition try to upgrade continuity up to C2. <br>
Standard_EXPORT IGESSelect_SplineToBSpline(const Standard_Boolean tryC2);
//! Returns the option TryC2 given at creation time <br>
Standard_EXPORT Standard_Boolean OptionTryC2() const;
//! Performs the transformation, if there is at least one Spline <br>
//! Curve (112) or Surface (126). Does nothing if there is none. <br>
Standard_EXPORT Standard_Boolean Perform(const Interface_Graph& G,const Handle(Interface_Protocol)& protocol,Interface_CheckIterator& checks,Handle(Interface_InterfaceModel)& newmod) ;
//! Returns the transformed entities. <br>
//! If original data contained no Spline Curve or Surface, <br>
//! the result is identity : <entto> = <entfrom> <br>
//! Else, the copied counterpart is returned : for a Spline Curve <br>
//! or Surface, it is a converted BSpline Curve or Surface. Else, <br>
//! it is the result of general service Copy (rebuilt as necessary <br>
//! by BSPlines replacing Splines). <br>
Standard_EXPORT Standard_Boolean Updated(const Handle(Standard_Transient)& entfrom,Handle(Standard_Transient)& entto) const;
//! Returns a text which defines the way a Transformer works : <br>
//! "Conversion Spline to BSpline" and as opted, <br>
//! " trying to upgrade continuity" <br>
Standard_EXPORT TCollection_AsciiString Label() const;
DEFINE_STANDARD_RTTI(IGESSelect_SplineToBSpline)
protected:
private:
Standard_Boolean thetryc2;
Standard_Boolean thefound;
Handle_Interface_CopyControl themap;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|