Open CASCADE Technology 6.6.0
|
Splits a curve with a criterion.
#include <ShapeUpgrade_SplitCurve.hxx>
Public Member Functions | |
ShapeUpgrade_SplitCurve () | |
Empty constructor. | |
void | Init (const Standard_Real First, const Standard_Real Last) |
Initializes with curve first and last parameters. | |
void | SetSplitValues (const Handle< TColStd_HSequenceOfReal > &SplitValues) |
Sets the parameters where splitting has to be done. | |
virtual void | Build (const Standard_Boolean Segment) |
If Segment is True, the result is composed with segments of the curve bounded by the SplitValues. If Segment is False, the result is composed with trimmed Curves all based on the same complete curve. | |
const Handle_TColStd_HSequenceOfReal & | SplitValues () const |
returns all the splitting values including the First and Last parameters of the input curve //! Merges input split values and new ones into myGlobalKnots | |
virtual void | Compute () |
Calculates points for correction/splitting of the curve | |
void | Perform (const Standard_Boolean Segment=Standard_True) |
Performs correction/splitting of the curve. First defines splitting values by method Compute(), then calls method Build(). | |
Standard_Boolean | Status (const ShapeExtend_Status status) const |
Returns the status OK - no splitting is needed DONE1 - splitting required and gives more than one segment DONE2 - splitting is required, but gives only one segment (initial) DONE3 - geometric form of the curve or parametrisation is modified | |
Protected Attributes | |
Handle_TColStd_HSequenceOfReal | mySplitValues |
Standard_Integer | myNbCurves |
Standard_Integer | myStatus |
ShapeUpgrade_SplitCurve::ShapeUpgrade_SplitCurve | ( | ) |
virtual void ShapeUpgrade_SplitCurve::Build | ( | const Standard_Boolean | Segment | ) | [virtual] |
virtual void ShapeUpgrade_SplitCurve::Compute | ( | ) | [virtual] |
void ShapeUpgrade_SplitCurve::Init | ( | const Standard_Real | First, |
const Standard_Real | Last | ||
) |
void ShapeUpgrade_SplitCurve::Perform | ( | const Standard_Boolean | Segment = Standard_True | ) |
void ShapeUpgrade_SplitCurve::SetSplitValues | ( | const Handle< TColStd_HSequenceOfReal > & | SplitValues | ) |
const Handle_TColStd_HSequenceOfReal& ShapeUpgrade_SplitCurve::SplitValues | ( | ) | const |
Standard_Boolean ShapeUpgrade_SplitCurve::Status | ( | const ShapeExtend_Status | status | ) | const |
Standard_Integer ShapeUpgrade_SplitCurve::myNbCurves [protected] |
Handle_TColStd_HSequenceOfReal ShapeUpgrade_SplitCurve::mySplitValues [protected] |
Standard_Integer ShapeUpgrade_SplitCurve::myStatus [protected] |