All Frameworks Class Hierarchy This Framework Previous Next Indexes
GeometricOperators Class CATIntersectionCrvCrv
Mathematics.CATCGMVirtual
|
+---GeometricObjects.CATCGMOperator
|
+---CATIntersectionCrvCrv
Usage: you must use this class as is. You should never derive it.
public class CATIntersectionCrvCrv
Class defining the operator of the intersection of two curves.
The operator outputs the isolated solutions (points) and the
overlapping solutions (curves).
- The CATIntersectionCrvCrv operator is created with the CreateIntersection method and
directly deleted with the usual C++ delete operator.
It is is not streamable.
- In case of BASIC
mode, the operation is automatically performed at the operator creation.
In case of ADVANCED
mode, options can be precised with the SetXxx methods, before
asking for the computation with the Run method. The advanced mode also allows you to
run the same operator with different curves.
- In both cases, the result is accessed with two specific interators, one for the solution points,
the other for the solution curves.
Constructor and Destructor Index
- o
~CATIntersectionCrvCrv()
- Destructor.
Method Index
- o
BeginningCurve()
- Initializes the iterator of the solution curves.
- o
BeginningPoint()
- Initializes the iterator of the resulting points.
- o
GetCartesianPoint()
- Creates the next solution point of this CATIntersectionCrvCrv operator.
- o
GetCurveLimits(CATCurve*,CATCrvLimits&)
- Returns the domain of the next solution curve of this CATIntersectionCrvCrv operator.
- o
GetCurveParam(CATCurve*,CATCrvParam&,CATLONG32)
- Retrieves the parameter of the next solution point of this CATIntersectionCrvCrv operator.
- o
GetEdgeCurve(CATPointOnEdgeCurve*&,CATPointOnEdgeCurve*&)
- Creates the next solution curve of this CATIntersectionCrvCrv operator as an edge curve.
- o
GetNumberOfCurves()
- Returns the number of solution curves of this CATIntersectionCrvCrv operator.
- o
GetNumberOfPoints()
- Returns the number of isolated resulting points of this CATIntersectionCrvCrv operator.
- o
GetPointOnCurve(CATCurve*,CATLONG32)
- Creates the next solution point on curve of this CATIntersectionCrvCrv operator.
- o
NextCurve()
- Skips to the next solution curve of this CATIntersectionCrvCrv operator.
- o
NextPoint()
- Skips to the next solution point of this CATIntersectionCrvCrv operator.
- o
SetCurve(CATCurve*)
- Defines the intersection with another second curve (ADVANCED mode).
- o
UseLimits(CATCrvLimits*,CATCrvLimits*)
- Modifies the curve domain to take into account for this
CATIntersectionCrvCrv operator (ADVANCED mode).
Constructor and Destructor
o ~CATIntersectionCrvCrv
public virtual ~CATIntersectionCrvCrv( | ) |
-
Destructor.
Methods
o BeginningCurve
public virtual void BeginningCurve( | )= 0 |
-
Initializes the iterator of the solution curves.
By default, the initialization is performed once the operator runs,
and this is therefore only used to read the solutions again.
o BeginningPoint
public virtual void BeginningPoint( | )= 0 |
-
Initializes the iterator of the resulting points.
By default, the initialization is performed once the operator runs,
and this is therefore only used to read the solutions again.
o GetCartesianPoint
-
Creates the next solution point of this CATIntersectionCrvCrv operator.
- Returns:
- The pointer to the created point. A new point is created each time this method is called.
If you do not want to keep the created point, use the
CATICGMContainer.Remove method.
o GetCurveLimits
-
Returns the domain of the next solution curve of this CATIntersectionCrvCrv operator.
- Parameters:
-
- iCurve
- The first or the second operand of the operator, on which the domain is output.
- ioLimits
- The domain of the solution curve.
o GetCurveParam
-
Retrieves the parameter of the next solution point of this CATIntersectionCrvCrv operator.
- Parameters:
-
- iCurve
- The pointer to the first or second curve which are intersected.
- ioCrvParam
- The parameter.
- iIndex
- Internal use.
o GetEdgeCurve
-
Creates the next solution curve of this CATIntersectionCrvCrv operator as an edge curve.
The edge curve is composed of parts of each inital curve.
- Parameters:
-
- oStart
- The pointer to the created point representing the first extremity of the solution curve.
A new point is created each time this method is called.
If you do not want to keep the created point, use the
CATICGMContainer.Remove method.
- oEnd
- The pointer to the created point representing the last extremity of the solution curve.
A new point is created each time this method is called.
If you do not want to keep the created point, use the
CATICGMContainer.Remove method.
- Returns:
- The pointer to the created edge curve, NULL if it cannot be created.
A new curve is created each time this method is called.
If you do not want to keep the created curve, use the
CATICGMContainer.Remove method. and the POEC extremities oStart and oEnd on this edgecurve.
o GetNumberOfCurves
public virtual CATLONG32 GetNumberOfCurves( | )const = 0 |
-
Returns the number of solution curves of this CATIntersectionCrvCrv operator.
- Returns:
- The number of resulting curves.
o GetNumberOfPoints
public virtual CATLONG32 GetNumberOfPoints( | )const = 0 |
-
Returns the number of isolated resulting points of this CATIntersectionCrvCrv operator.
- Returns:
- The number of isolated points.
o GetPointOnCurve
-
Creates the next solution point on curve of this CATIntersectionCrvCrv operator.
- Parameters:
-
- iCurve
- The pointer to the first or second curve which are intersected.
- iIndex
- Internal use.
- Returns:
- The pointer to the created point on curve. A new point is created each time this method is called.
If you do not want to keep the created point, use the
CATICGMContainer.Remove method.
o NextCurve
-
Skips to the next solution curve of this CATIntersectionCrvCrv operator.
After BeginningCurve, it skips to the first curve.
- Returns:
- The existence of the next solution.
Legal values:
- TRUE
- if there is a solution curve
- FALSE
- no more solution curve.
o NextPoint
-
Skips to the next solution point of this CATIntersectionCrvCrv operator.
After BeginningPoint, it skips to the first point.
- Returns:
- The existence of the next solution.
Legal values:
- TRUE
- if there is a solution point
- FALSE
- no more solution point.
o SetCurve
public virtual void SetCurve( | CATCurve* | iNewSecondCurve)= 0 |
-
Defines the intersection with another second curve (ADVANCED mode).
- Parameters:
-
- iNewSecondCurve
- The pointer to the new second curve.
o UseLimits
-
Modifies the curve domain to take into account for this
CATIntersectionCrvCrv operator (ADVANCED mode).
It does not change the current curve limitations.
- Parameters:
-
- iLimitsForCurve1
- The pointer to the new domain of the first curve. If NULL, the current limitation of the first
curve is used.
- iLimitsForCurve2
- The pointer to the new domain of the second curve. If NULL, the current limitation of the second
curve is used.
This object is included in the file: CATIntersectionCrvCrv.h
If needed, your Imakefile.mk should include the module: CATGeometricOperators