blob: cd519c8aab0c803084cd1a72aaadcb4e68048bf8 (
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
|
// 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 _ShapeUpgrade_SplitCurve_HeaderFile
#define _ShapeUpgrade_SplitCurve_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_ShapeUpgrade_SplitCurve_HeaderFile
#include <Handle_ShapeUpgrade_SplitCurve.hxx>
#endif
#ifndef _Handle_TColStd_HSequenceOfReal_HeaderFile
#include <Handle_TColStd_HSequenceOfReal.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _ShapeExtend_Status_HeaderFile
#include <ShapeExtend_Status.hxx>
#endif
class TColStd_HSequenceOfReal;
//! Splits a curve with a criterion. <br>
class ShapeUpgrade_SplitCurve : public MMgt_TShared {
public:
//! Empty constructor. <br>
Standard_EXPORT ShapeUpgrade_SplitCurve();
//! Initializes with curve first and last parameters. <br>
Standard_EXPORT void Init(const Standard_Real First,const Standard_Real Last) ;
//! Sets the parameters where splitting has to be done. <br>
Standard_EXPORT void SetSplitValues(const Handle(TColStd_HSequenceOfReal)& SplitValues) ;
//! If Segment is True, the result is composed with <br>
//! segments of the curve bounded by the SplitValues. If <br>
//! Segment is False, the result is composed with trimmed <br>
//! Curves all based on the same complete curve. <br>
//! <br>
Standard_EXPORT virtual void Build(const Standard_Boolean Segment) ;
//! returns all the splitting values including the <br>
//! First and Last parameters of the input curve <br>//! Merges input split values and new ones into myGlobalKnots <br>
Standard_EXPORT const Handle_TColStd_HSequenceOfReal& SplitValues() const;
//! Calculates points for correction/splitting of the curve <br>
Standard_EXPORT virtual void Compute() ;
//! Performs correction/splitting of the curve. <br>
//! First defines splitting values by method Compute(), then calls method Build(). <br>
Standard_EXPORT void Perform(const Standard_Boolean Segment = Standard_True) ;
//! Returns the status <br>
//! OK - no splitting is needed <br>
//! DONE1 - splitting required and gives more than one segment <br>
//! DONE2 - splitting is required, but gives only one segment (initial) <br>
//! DONE3 - geometric form of the curve or parametrisation is modified <br>
Standard_EXPORT Standard_Boolean Status(const ShapeExtend_Status status) const;
DEFINE_STANDARD_RTTI(ShapeUpgrade_SplitCurve)
protected:
Handle_TColStd_HSequenceOfReal mySplitValues;
Standard_Integer myNbCurves;
Standard_Integer myStatus;
private:
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|