AnyCAD Rapid SDK  2020
The Rapid CAD SDK
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
GAx22d Class Reference

Public Member Functions

synchronized void delete ()
 
 GAx22d ()
 
 GAx22d (GPnt2d P, GDir2d Vx, GDir2d Vy)
 
 GAx22d (GPnt2d P, GDir2d V, boolean Sense)
 
 GAx22d (GPnt2d P, GDir2d V)
 
 GAx22d (GAx2d A, boolean Sense)
 
 GAx22d (GAx2d A)
 
void SetAxis (GAx22d A1)
 
void SetXAxis (GAx2d A1)
 
void SetYAxis (GAx2d A1)
 
void SetLocation (GPnt2d P)
 
void SetXDirection (GDir2d Vx)
 
void SetYDirection (GDir2d Vy)
 
GAx2d XAxis ()
 
GAx2d YAxis ()
 
GPnt2d Location ()
 
GDir2d XDirection ()
 
GDir2d YDirection ()
 
void Mirror (GPnt2d P)
 
GAx22d Mirrored (GPnt2d P)
 
void Mirror (GAx2d A)
 
GAx22d Mirrored (GAx2d A)
 
void Rotate (GPnt2d P, double Ang)
 
GAx22d Rotated (GPnt2d P, double Ang)
 
void Scale (GPnt2d P, double S)
 
GAx22d Scaled (GPnt2d P, double S)
 
void Transform (GTrsf2d T)
 
GAx22d Transformed (GTrsf2d T)
 
void Translate (GVec2d V)
 
GAx22d Translated (GVec2d V)
 
void Translate (GPnt2d P1, GPnt2d P2)
 
GAx22d Translated (GPnt2d P1, GPnt2d P2)
 

Protected Member Functions

 GAx22d (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (GAx22d obj)
 

Protected Attributes

transient boolean swigCMemOwn
 

Detailed Description

Describes a coordinate system in a plane (2D space). A coordinate system is defined by: - its origin (also referred to as its "Location point"), and - two orthogonal unit vectors, respectively, called the "X Direction" and the "Y Direction". A gp_Ax22d may be right-handed ("direct sense") or left-handed ("inverse" or "indirect sense"). You use a gp_Ax22d to: - describe 2D geometric entities, in particular to position them. The local coordinate system of a geometric entity serves for the same purpose as the STEP function "axis placement two axes", or - define geometric transformations. Note: we refer to the "X Axis" and "Y Axis" as the axes having: - the origin of the coordinate system as their origin, and - the unit vectors "X Direction" and "Y Direction", respectively, as their unit vectors.

Constructor & Destructor Documentation

GAx22d.GAx22d ( )

Creates an object representing the reference co-ordinate system (OXY).

GAx22d.GAx22d ( GPnt2d  P,
GDir2d  Vx,
GDir2d  Vy 
)

Creates a coordinate system with origin P and where: - Vx is the "X Direction", and - the "Y Direction" is orthogonal to Vx and oriented so that the cross products Vx^"Y Direction" and Vx^Vy have the same sign. Raises ConstructionError if Vx and Vy are parallel (same or opposite orientation).

GAx22d.GAx22d ( GPnt2d  P,
GDir2d  V,
boolean  Sense 
)

Creates - a coordinate system with origin P and "X Direction" V, which is: - right-handed if Sense is true (default value), or - left-handed if Sense is false

GAx22d.GAx22d ( GPnt2d  P,
GDir2d  V 
)

Creates - a coordinate system with origin P and "X Direction" V, which is: - right-handed if Sense is true (default value), or - left-handed if Sense is false

GAx22d.GAx22d ( GAx2d  A,
boolean  Sense 
)

Creates - a coordinate system where its origin is the origin of A and its "X Direction" is the unit vector of A, which is: - right-handed if Sense is true (default value), or - left-handed if Sense is false.

GAx22d.GAx22d ( GAx2d  A)

Creates - a coordinate system where its origin is the origin of A and its "X Direction" is the unit vector of A, which is: - right-handed if Sense is true (default value), or - left-handed if Sense is false.

Member Function Documentation

GPnt2d GAx22d.Location ( )

Returns the "Location" point (origin) of <me>.

GAx22d GAx22d.Mirrored ( GPnt2d  P)

Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry. Warnings : The main direction of the axis placement is not changed. The "XDirection" and the "YDirection" are reversed. So the axis placement stay right handed.

GAx22d GAx22d.Mirrored ( GAx2d  A)

Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry. The transformation is performed on the "Location" point, on the "XDirection" and "YDirection". The resulting main "Direction" is the cross product between the "XDirection" and the "YDirection" after transformation.

GAx22d GAx22d.Rotated ( GPnt2d  P,
double  Ang 
)

Rotates an axis placement. <A1> is the axis of the rotation . Ang is the angular value of the rotation in radians.

GAx22d GAx22d.Scaled ( GPnt2d  P,
double  S 
)

Applies a scaling transformation on the axis placement. The "Location" point of the axisplacement is modified. Warnings : If the scale <S> is negative : . the main direction of the axis placement is not changed. . The "XDirection" and the "YDirection" are reversed. So the axis placement stay right handed.

void GAx22d.SetAxis ( GAx22d  A1)

Assigns the origin and the two unit vectors of the coordinate system A1 to this coordinate system.

void GAx22d.SetLocation ( GPnt2d  P)

Changes the "Location" point (origin) of <me>.

void GAx22d.SetXAxis ( GAx2d  A1)

Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "YDirection" is recomputed in the same sense as before.

void GAx22d.SetXDirection ( GDir2d  Vx)

Assigns Vx to the "X Direction" of this coordinate system. The other unit vector of this coordinate system is recomputed, normal to Vx , without modifying the orientation (right-handed or left-handed) of this coordinate system.

void GAx22d.SetYAxis ( GAx2d  A1)

Changes the XAxis and YAxis ("Location" point and "Direction") of <me>. The "XDirection" is recomputed in the same sense as before.

void GAx22d.SetYDirection ( GDir2d  Vy)

Assignsr Vy to the "Y Direction" of this coordinate system. The other unit vector of this coordinate system is recomputed, normal to Vy, without modifying the orientation (right-handed or left-handed) of this coordinate system.

GAx22d GAx22d.Transformed ( GTrsf2d  T)

Transforms an axis placement with a Trsf. The "Location" point, the "XDirection" and the "YDirection" are transformed with T. The resulting main "Direction" of <me> is the cross product between the "XDirection" and the "YDirection" after transformation.

GAx22d GAx22d.Translated ( GVec2d  V)

Translates an axis plaxement in the direction of the vector <V>. The magnitude of the translation is the vector's magnitude.

GAx22d GAx22d.Translated ( GPnt2d  P1,
GPnt2d  P2 
)

Translates an axis placement from the point <P1> to the point <P2>.

GAx2d GAx22d.XAxis ( )

Returns an axis, for which - the origin is that of this coordinate system, and - the unit vector is either the "X Direction" of this coordinate system. Note: the result is the "X Axis" of this coordinate system.

GDir2d GAx22d.XDirection ( )

Returns the "XDirection" of <me>.

GAx2d GAx22d.YAxis ( )

Returns an axis, for which - the origin is that of this coordinate system, and - the unit vector is either the "Y Direction" of this coordinate system. Note: the result is the "Y Axis" of this coordinate system.

GDir2d GAx22d.YDirection ( )

Returns the "YDirection" of <me>.