All Frameworks  Object Hierarchy  This Framework  Indexes   

Factory2D (Object)

Interface to the factory for 2D objects.

Method Index

CreateCircle
Creates and returns a 2D circle arc.
CreateClosedCircle
Creates and returns a closed 2D circle.
CreateClosedEllipse
Creates and returns a closed 2D ellipse.
CreateControlPoint
Creates and returns a 2D spline control point.
CreateEllipse
Creates and returns a 2D ellipse arc.
CreateHyperbola
Creates and returns a hyperbola.
CreateIntersection
Creates and returns the intersection of an object with the sketch.
CreateIntersections
Creates and returns the possible intersections of an object with the sketch.
CreateLineFromVector
Creates and returns a 2D line.
CreateLine
Creates and returns a 2D line.
CreateParabola
Creates and returns a parabola.
CreatePoint
Creates and returns a 2D point.
CreateProjection
Creates and returns the projection of an object on the sketch.
CreateProjections
Creates and returns the possible projections of an object on the sketch.
CreateSpline
Creates and returns a 2D b-spline.

Methods


o Func CreateCircle( iCenterX,
iCenterY,
iRadius,
iStartParam,
iEndParam) As
Creates and returns a 2D circle arc.
Parameters:
iCenterX
The X coordinate of the circle center
iCenterY
The Y coordinate of the circle center
iRadius
The radius of the circle
iStartParam
The beginning parameter of the circle.
This parameter is an angle value between 0 included and 2PI excluded. Parameter values are computed from the axis horizontal direction in the trigonometrical direction.
iEndParam
The end parameter of the circle.
This parameter may take any value between iStartParam excluded and 4PI included.
o Func CreateClosedCircle( iCenterX,
iCenterY,
iRadius) As
Creates and returns a closed 2D circle.
Parameters:
iCenterX
The X coordinate of the circle center
iCenterY
The Y coordinate of the circle center
iRadius
The radius of the circle
o Func CreateClosedEllipse( iCenterX,
iCenterY,
iMajorX,
iMajorY,
iMajorRadius,
iMinorRadius) As
Creates and returns a closed 2D ellipse.
Parameters:
iCenterX
The X coordinate of the ellipse center
iCenterY
The Y coordinate of the ellipse center
iMajorX
The X component of the major axis direction
iMajorY
The Y component of the Major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
o Func CreateControlPoint( iX,
iY) As
Creates and returns a 2D spline control point.
Parameters:
iX
The X coordinate of point to create
iY
The Y coordinate of point to create
o Func CreateEllipse( iCenterX,
iCenterY,
iMajorX,
iMajorY,
iMajorRadius,
iMinorRadius,
iStartParam,
iEndParam) As
Creates and returns a 2D ellipse arc.
Parameters:
iCenterX
The X coordinate of the ellipse center
iCenterY
The Y coordinate of the ellipse center
iMajorX
The X component of the major axis direction
iMajorY
The Y component of the major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
iStartParam
The beginning parameter of the ellipse.
This parameter is an angle value between 0 included and 2PI excluded. Parameter values are computed from the major axis direction in the trigonometrical direction.
iEndParam
The end parameter of the ellipse.
This parameter may take any value between iStartParam excluded and 4PI included.
o Func CreateHyperbola( iCenterX,
iCenterY,
iAxisX,
iAxisY,
iMajorRadius,
iMinorRadius) As
Creates and returns a hyperbola.
Parameters:
iCenterX
The X coordinate of the hyperbola center
iCenterY
The Y coordinate of the hyperbola center
iAxisX
The X coordinate of the major axis direction
iAxisY
The Y coordinate of the major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
o Func CreateIntersection( iGeometry) As
Creates and returns the intersection of an object with the sketch.
Parameters:
iGeometry
The object to intersect with the sketch
o Func CreateIntersections( iGeometry) As
Creates and returns the possible intersections of an object with the sketch.
Parameters:
iGeometry
The object to intersect with the sketch
o Func CreateLineFromVector( iX1,
iY1,
iUX,
iUY) As
Creates and returns a 2D line.
Parameters:
iX1
The X coordinate of the line origin
iY1
The Y coordinate of the line origin
iUX
The X component of the line vector
iUY
The Y component of the line vector
o Func CreateLine( iX1,
iY1,
iX2,
iY2) As
Creates and returns a 2D line.
Parameters:
iX1
The X coordinate of line first extremity
iY1
The Y coordinate of line first extremity
iX2
The X coordinate of line second extremity
iY2
The Y coordinate of line second extremity
o Func CreateParabola( iCenterX,
iCenterY,
iAxisX,
iAxisY,
iFocalDistance) As
Creates and returns a parabola.
Parameters:
iCenterX
The X coordinate of the parabola center
iCenterY
The Y coordinate of the parabola center
iAxisX
The X coordinate of the major axis direction
iAxisY
The Y coordinate of the major axis direction
iFocalDistance
The parabola focal distance
o Func CreatePoint( iX,
iY) As
Creates and returns a 2D point.
Parameters:
iX
The X coordinate of point to create
iY
The Y coordinate of point to create
o Func CreateProjection( iGeometry) As
Creates and returns the projection of an object on the sketch.
Parameters:
iGeometry
The object to project on the sketch
o Func CreateProjections( iGeometry) As
Creates and returns the possible projections of an object on the sketch.
Parameters:
iGeometry
The object to project on the sketch
o Func CreateSpline( iPoles) As
Creates and returns a 2D b-spline.
Parameters:
iPoles
An array of CATIAPoint2D forming the poles of the b-spline.

Copyright © 2003, Dassault Systèmes. All rights reserved.