1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027562: Coding - avoid exporting of inline methods

This commit is contained in:
kgv
2016-06-03 15:35:52 +03:00
committed by bugmaster
parent 83b0f13a58
commit be5c360207
48 changed files with 195 additions and 195 deletions

View File

@@ -94,7 +94,7 @@ public:
//! Exceptions
//! Standard_ConstructionError if A1 is parallel to the "X
//! Direction" of this coordinate system.
Standard_EXPORT void SetAxis (const gp_Ax1& A1);
void SetAxis (const gp_Ax1& A1);
//! Changes the "main Direction" of this coordinate system,
@@ -104,11 +104,11 @@ public:
//! Exceptions
//! Standard_ConstructionError if V is parallel to the "X
//! Direction" of this coordinate system.
Standard_EXPORT void SetDirection (const gp_Dir& V);
void SetDirection (const gp_Dir& V);
//! Changes the "Location" point (origin) of <me>.
Standard_EXPORT void SetLocation (const gp_Pnt& P);
void SetLocation (const gp_Pnt& P);
//! Changes the "Xdirection" of <me>. The main direction
@@ -118,7 +118,7 @@ public:
//! Exceptions
//! Standard_ConstructionError if Vx or Vy is parallel to
//! the "main Direction" of this coordinate system.
Standard_EXPORT void SetXDirection (const gp_Dir& Vx);
void SetXDirection (const gp_Dir& Vx);
//! Changes the "Ydirection" of <me>. The main direction is not
@@ -129,13 +129,13 @@ public:
//! Exceptions
//! Standard_ConstructionError if Vx or Vy is parallel to
//! the "main Direction" of this coordinate system.
Standard_EXPORT void SetYDirection (const gp_Dir& Vy);
void SetYDirection (const gp_Dir& Vy);
//! Computes the angular value, in radians, between the main direction of
//! <me> and the main direction of <Other>. Returns the angle
//! between 0 and PI in radians.
Standard_EXPORT Standard_Real Angle (const gp_Ax2& Other) const;
Standard_Real Angle (const gp_Ax2& Other) const;
//! Returns the main axis of <me>. It is the "Location" point
@@ -158,7 +158,7 @@ public:
//! Returns the "YDirection" of <me>.
const gp_Dir& YDirection() const;
Standard_EXPORT Standard_Boolean IsCoplanar (const gp_Ax2& Other, const Standard_Real LinearTolerance, const Standard_Real AngularTolerance) const;
Standard_Boolean IsCoplanar (const gp_Ax2& Other, const Standard_Real LinearTolerance, const Standard_Real AngularTolerance) const;
//! Returns True if

View File

@@ -77,17 +77,17 @@ public:
//! Creates an object corresponding to the reference
//! coordinate system (OXYZ).
Standard_EXPORT gp_Ax3();
gp_Ax3();
//! Creates a coordinate system from a right-handed
//! coordinate system.
Standard_EXPORT gp_Ax3(const gp_Ax2& A);
gp_Ax3(const gp_Ax2& A);
//! Creates a right handed axis placement with the
//! "Location" point P and two directions, N gives the
//! "Direction" and Vx gives the "XDirection".
//! Raises ConstructionError if N and Vx are parallel (same or opposite orientation).
Standard_EXPORT gp_Ax3(const gp_Pnt& P, const gp_Dir& N, const gp_Dir& Vx);
gp_Ax3(const gp_Pnt& P, const gp_Dir& N, const gp_Dir& Vx);
//! Creates an axis placement with the "Location" point <P>
@@ -95,13 +95,13 @@ public:
Standard_EXPORT gp_Ax3(const gp_Pnt& P, const gp_Dir& V);
//! Reverses the X direction of <me>.
Standard_EXPORT void XReverse();
void XReverse();
//! Reverses the Y direction of <me>.
Standard_EXPORT void YReverse();
void YReverse();
//! Reverses the Z direction of <me>.
Standard_EXPORT void ZReverse();
void ZReverse();
//! Assigns the origin and "main Direction" of the axis A1 to
//! this coordinate system, then recomputes its "X Direction" and "Y Direction".
@@ -115,7 +115,7 @@ public:
//! are parallel (same or opposite orientation) because it is
//! impossible to calculate the new "XDirection" and the new
//! "YDirection".
Standard_EXPORT void SetAxis (const gp_Ax1& A1);
void SetAxis (const gp_Ax1& A1);
//! Changes the main direction of this coordinate system,
@@ -127,11 +127,11 @@ public:
//! Raises ConstructionError if <V< and the previous "XDirection" are parallel
//! because it is impossible to calculate the new "XDirection"
//! and the new "YDirection".
Standard_EXPORT void SetDirection (const gp_Dir& V);
void SetDirection (const gp_Dir& V);
//! Changes the "Location" point (origin) of <me>.
Standard_EXPORT void SetLocation (const gp_Pnt& P);
void SetLocation (const gp_Pnt& P);
//! Changes the "Xdirection" of <me>. The main direction
@@ -140,7 +140,7 @@ public:
//! is computed as follows XDirection = Direction ^ (Vx ^ Direction).
//! Raises ConstructionError if <Vx> is parallel (same or opposite
//! orientation) to the main direction of <me>
Standard_EXPORT void SetXDirection (const gp_Dir& Vx);
void SetXDirection (const gp_Dir& Vx);
//! Changes the "Ydirection" of <me>. The main direction is not
@@ -168,7 +168,7 @@ public:
//! If this coordinate system is right-handed, the result
//! returned is the same coordinate system. If this
//! coordinate system is left-handed, the result is reversed.
Standard_EXPORT gp_Ax2 Ax2() const;
gp_Ax2 Ax2() const;
//! Returns the main direction of <me>.
@@ -245,15 +245,15 @@ public:
//! the "XDirection" and the "YDirection" after transformation.
Standard_EXPORT gp_Ax3 Mirrored (const gp_Ax2& A2) const;
Standard_EXPORT void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
void Rotate (const gp_Ax1& A1, const Standard_Real Ang);
//! Rotates an axis placement. <A1> is the axis of the
//! rotation . Ang is the angular value of the rotation
//! in radians.
Standard_EXPORT gp_Ax3 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
gp_Ax3 Rotated (const gp_Ax1& A1, const Standard_Real Ang) const;
Standard_EXPORT void Scale (const gp_Pnt& P, const Standard_Real S);
void Scale (const gp_Pnt& P, const Standard_Real S);
//! Applies a scaling transformation on the axis placement.
@@ -263,9 +263,9 @@ public:
//! . the main direction of the axis placement is not changed.
//! . The "XDirection" and the "YDirection" are reversed.
//! So the axis placement stay right handed.
Standard_EXPORT gp_Ax3 Scaled (const gp_Pnt& P, const Standard_Real S) const;
gp_Ax3 Scaled (const gp_Pnt& P, const Standard_Real S) const;
Standard_EXPORT void Transform (const gp_Trsf& T);
void Transform (const gp_Trsf& T);
//! Transforms an axis placement with a Trsf.
@@ -273,21 +273,21 @@ public:
//! "YDirection" are transformed with T. The resulting
//! main "Direction" of <me> is the cross product between
//! the "XDirection" and the "YDirection" after transformation.
Standard_EXPORT gp_Ax3 Transformed (const gp_Trsf& T) const;
gp_Ax3 Transformed (const gp_Trsf& T) const;
Standard_EXPORT void Translate (const gp_Vec& V);
void Translate (const gp_Vec& V);
//! Translates an axis plaxement in the direction of the vector
//! <V>. The magnitude of the translation is the vector's magnitude.
Standard_EXPORT gp_Ax3 Translated (const gp_Vec& V) const;
gp_Ax3 Translated (const gp_Vec& V) const;
Standard_EXPORT void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
void Translate (const gp_Pnt& P1, const gp_Pnt& P2);
//! Translates an axis placement from the point <P1> to the
//! point <P2>.
Standard_EXPORT gp_Ax3 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;
gp_Ax3 Translated (const gp_Pnt& P1, const gp_Pnt& P2) const;

View File

@@ -82,7 +82,7 @@ public:
gp_Circ2d(const gp_Ax22d& Axis, const Standard_Real Radius);
//! Changes the location point (center) of the circle.
Standard_EXPORT void SetLocation (const gp_Pnt2d& P);
void SetLocation (const gp_Pnt2d& P);
//! Changes the X axis of the circle.
void SetXAxis (const gp_Ax2d& A);

View File

@@ -87,37 +87,37 @@ public:
//! It is possible to create an ellipse with
//! MajorRadius = MinorRadius.
//! Raises ConstructionError if MajorRadius < MinorRadius or MinorRadius < 0.0
Standard_EXPORT gp_Elips2d(const gp_Ax22d& A, const Standard_Real MajorRadius, const Standard_Real MinorRadius);
gp_Elips2d(const gp_Ax22d& A, const Standard_Real MajorRadius, const Standard_Real MinorRadius);
//! Modifies this ellipse, by redefining its local coordinate system so that
//! - its origin becomes P.
Standard_EXPORT void SetLocation (const gp_Pnt2d& P);
void SetLocation (const gp_Pnt2d& P);
//! Changes the value of the major radius.
//! Raises ConstructionError if MajorRadius < MinorRadius.
Standard_EXPORT void SetMajorRadius (const Standard_Real MajorRadius);
void SetMajorRadius (const Standard_Real MajorRadius);
//! Changes the value of the minor radius.
//! Raises ConstructionError if MajorRadius < MinorRadius or MinorRadius < 0.0
Standard_EXPORT void SetMinorRadius (const Standard_Real MinorRadius);
void SetMinorRadius (const Standard_Real MinorRadius);
//! Modifies this ellipse, by redefining its local coordinate system so that
//! it becomes A.
Standard_EXPORT void SetAxis (const gp_Ax22d& A);
void SetAxis (const gp_Ax22d& A);
//! Modifies this ellipse, by redefining its local coordinate system so that
//! its origin and its "X Direction" become those
//! of the axis A. The "Y Direction" is then
//! recomputed. The orientation of the local coordinate
//! system is not modified.
Standard_EXPORT void SetXAxis (const gp_Ax2d& A);
void SetXAxis (const gp_Ax2d& A);
//! Modifies this ellipse, by redefining its local coordinate system so that
//! its origin and its "Y Direction" become those
//! of the axis A. The "X Direction" is then
//! recomputed. The orientation of the local coordinate
//! system is not modified.
Standard_EXPORT void SetYAxis (const gp_Ax2d& A);
void SetYAxis (const gp_Ax2d& A);
//! Computes the area of the ellipse.
Standard_Real Area() const;
@@ -217,34 +217,34 @@ public:
//! to an axis placement which is the axis of the symmetry.
Standard_EXPORT gp_Elips2d Mirrored (const gp_Ax2d& A) const;
Standard_EXPORT void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
void Rotate (const gp_Pnt2d& P, const Standard_Real Ang);
Standard_EXPORT gp_Elips2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
gp_Elips2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
Standard_EXPORT void Scale (const gp_Pnt2d& P, const Standard_Real S);
void Scale (const gp_Pnt2d& P, const Standard_Real S);
//! Scales a ellipse. S is the scaling value.
Standard_EXPORT gp_Elips2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
gp_Elips2d Scaled (const gp_Pnt2d& P, const Standard_Real S) const;
Standard_EXPORT void Transform (const gp_Trsf2d& T);
void Transform (const gp_Trsf2d& T);
//! Transforms an ellipse with the transformation T from class Trsf2d.
Standard_EXPORT gp_Elips2d Transformed (const gp_Trsf2d& T) const;
gp_Elips2d Transformed (const gp_Trsf2d& T) const;
Standard_EXPORT void Translate (const gp_Vec2d& V);
void Translate (const gp_Vec2d& V);
//! Translates a ellipse in the direction of the vector V.
//! The magnitude of the translation is the vector's magnitude.
Standard_EXPORT gp_Elips2d Translated (const gp_Vec2d& V) const;
gp_Elips2d Translated (const gp_Vec2d& V) const;
Standard_EXPORT void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
void Translate (const gp_Pnt2d& P1, const gp_Pnt2d& P2);
//! Translates a ellipse from the point P1 to the point P2.
Standard_EXPORT gp_Elips2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
gp_Elips2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;

View File

@@ -145,7 +145,7 @@ public:
//! transformation (relative to a point, an axis or a plane), a
//! scaling transformation, a compound transformation or
//! some other type of transformation.
Standard_EXPORT gp_TrsfForm Form() const;
gp_TrsfForm Form() const;
//! verify and set the shape of the GTrsf Other or CompoundTrsf

View File

@@ -94,7 +94,7 @@ public:
//! It is yet possible to create an Hyperbola with
//! MajorRadius <= MinorRadius.
//! Raises ConstructionError if MajorRadius < 0.0 or MinorRadius < 0.0
Standard_EXPORT gp_Hypr2d(const gp_Ax2d& MajorAxis, const Standard_Real MajorRadius, const Standard_Real MinorRadius, const Standard_Boolean Sense = Standard_True);
gp_Hypr2d(const gp_Ax2d& MajorAxis, const Standard_Real MajorRadius, const Standard_Real MinorRadius, const Standard_Boolean Sense = Standard_True);
//! a hyperbola with radii MajorRadius and
@@ -251,7 +251,7 @@ public:
//! - the unit vector is the "X Direction" or "Y Direction"
//! respectively of the local coordinate system of this hyperbola
//! Returns the major axis of the hyperbola.
Standard_EXPORT gp_Ax2d XAxis() const;
gp_Ax2d XAxis() const;
//! Computes an axis whose
//! - the origin is the center of this hyperbola, and

View File

@@ -63,8 +63,8 @@ public:
//! Creates a line passing through point P and parallel to
//! vector V (P and V are, respectively, the origin and
//! the unit vector of the positioning axis of the line).
Standard_EXPORT gp_Lin(const gp_Pnt& P, const gp_Dir& V);
gp_Lin(const gp_Pnt& P, const gp_Dir& V);
void Reverse();
//! Reverses the direction of the line.

View File

@@ -160,7 +160,7 @@ public:
//! Ang is the angular value of the rotation in radians.
gp_Lin2d Rotated (const gp_Pnt2d& P, const Standard_Real Ang) const;
Standard_EXPORT void Scale (const gp_Pnt2d& P, const Standard_Real S);
void Scale (const gp_Pnt2d& P, const Standard_Real S);
//! Scales a line. S is the scaling value. Only the

View File

@@ -107,7 +107,7 @@ public:
void SetLocation (const gp_Pnt& P);
//! Changes the local coordinate system of the parabola.
Standard_EXPORT void SetPosition (const gp_Ax2& A2);
void SetPosition (const gp_Ax2& A2);
//! Returns the main axis of the parabola.

View File

@@ -72,7 +72,7 @@ public:
//! Index = 1 => X is returned
//! Index = 2 => Y is returned
//! Raises OutOfRange if Index != {1, 2}.
Standard_EXPORT Standard_Real Coord (const Standard_Integer Index) const;
Standard_Real Coord (const Standard_Integer Index) const;
//! For this point returns its two coordinates as a number pair.
void Coord (Standard_Real& Xp, Standard_Real& Yp) const;

View File

@@ -43,32 +43,32 @@ public:
//! Creates an identity quaternion
gp_Quaternion();
gp_Quaternion();
//! Creates quaternion directly from component values
Standard_EXPORT gp_Quaternion(const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w);
gp_Quaternion(const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w);
//! Creates copy of another quaternion
Standard_EXPORT gp_Quaternion(const gp_Quaternion& theToCopy);
gp_Quaternion(const gp_Quaternion& theToCopy);
//! Creates quaternion representing shortest-arc rotation
//! operator producing vector theVecTo from vector theVecFrom.
Standard_EXPORT gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo);
gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo);
//! Creates quaternion representing shortest-arc rotation
//! operator producing vector theVecTo from vector theVecFrom.
//! Additional vector theHelpCrossVec defines preferred direction for
//! rotation and is used when theVecTo and theVecFrom are directed
//! oppositely.
Standard_EXPORT gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo, const gp_Vec& theHelpCrossVec);
gp_Quaternion(const gp_Vec& theVecFrom, const gp_Vec& theVecTo, const gp_Vec& theHelpCrossVec);
//! Creates quaternion representing rotation on angle
//! theAngle around vector theAxis
Standard_EXPORT gp_Quaternion(const gp_Vec& theAxis, const Standard_Real theAngle);
gp_Quaternion(const gp_Vec& theAxis, const Standard_Real theAngle);
//! Creates quaternion from rotation matrix 3*3
//! (which should be orthonormal skew-symmetric matrix)
Standard_EXPORT gp_Quaternion(const gp_Mat& theMat);
gp_Quaternion(const gp_Mat& theMat);
//! Simple equal test without precision
Standard_EXPORT Standard_Boolean IsEqual (const gp_Quaternion& theOther) const;
@@ -109,49 +109,49 @@ public:
//! Returns Euler angles describing current rotation
Standard_EXPORT void GetEulerAngles (const gp_EulerSequence theOrder, Standard_Real& theAlpha, Standard_Real& theBeta, Standard_Real& theGamma) const;
Standard_EXPORT void Set (const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w);
void Set (const Standard_Real x, const Standard_Real y, const Standard_Real z, const Standard_Real w);
Standard_EXPORT void Set (const gp_Quaternion& theQuaternion);
void Set (const gp_Quaternion& theQuaternion);
Standard_EXPORT Standard_Real X() const;
Standard_Real X() const;
Standard_EXPORT Standard_Real Y() const;
Standard_Real Y() const;
Standard_EXPORT Standard_Real Z() const;
Standard_Real Z() const;
Standard_EXPORT Standard_Real W() const;
Standard_Real W() const;
//! Make identity quaternion (zero-rotation)
Standard_EXPORT void SetIdent();
void SetIdent();
//! Reverse direction of rotation (conjugate quaternion)
Standard_EXPORT void Reverse();
void Reverse();
//! Return rotation with reversed direction (conjugated quaternion)
Standard_EXPORT gp_Quaternion Reversed() const;
gp_Quaternion Reversed() const;
//! Inverts quaternion (both rotation direction and norm)
Standard_EXPORT void Invert();
void Invert();
//! Return inversed quaternion q^-1
Standard_EXPORT gp_Quaternion Inverted() const;
gp_Quaternion Inverted() const;
//! Returns square norm of quaternion
Standard_EXPORT Standard_Real SquareNorm() const;
Standard_Real SquareNorm() const;
//! Returns norm of quaternion
Standard_EXPORT Standard_Real Norm() const;
Standard_Real Norm() const;
//! Scale all components by quaternion by theScale; note that
//! rotation is not changed by this operation (except 0-scaling)
Standard_EXPORT void Scale (const Standard_Real theScale);
void Scale (const Standard_Real theScale);
void operator *= (const Standard_Real theScale)
{
Scale(theScale);
}
//! Returns scaled quaternion
Standard_EXPORT gp_Quaternion Scaled (const Standard_Real theScale) const;
gp_Quaternion Scaled (const Standard_Real theScale) const;
gp_Quaternion operator * (const Standard_Real theScale) const
{
return Scaled(theScale);
@@ -168,26 +168,26 @@ gp_Quaternion operator * (const Standard_Real theScale) const
Standard_EXPORT void Normalize();
//! Returns quaternion scaled so that its norm goes to 1.
Standard_EXPORT gp_Quaternion Normalized() const;
gp_Quaternion Normalized() const;
//! Returns quaternion with all components negated.
//! Note that this operation does not affect neither
//! rotation operator defined by quaternion nor its norm.
Standard_EXPORT gp_Quaternion Negated() const;
gp_Quaternion Negated() const;
gp_Quaternion operator -() const
{
return Negated();
}
//! Makes sum of quaternion components; result is "rotations mix"
Standard_EXPORT gp_Quaternion Added (const gp_Quaternion& theOther) const;
gp_Quaternion Added (const gp_Quaternion& theOther) const;
gp_Quaternion operator + (const gp_Quaternion& theOther) const
{
return Added(theOther);
}
//! Makes difference of quaternion components; result is "rotations mix"
Standard_EXPORT gp_Quaternion Subtracted (const gp_Quaternion& theOther) const;
gp_Quaternion Subtracted (const gp_Quaternion& theOther) const;
gp_Quaternion operator - (const gp_Quaternion& theOther) const
{
return Subtracted(theOther);
@@ -199,35 +199,35 @@ gp_Quaternion operator - (const gp_Quaternion& theOther) const
//! Notices than:
//! qq' != q'q;
//! qq^-1 = q;
Standard_EXPORT gp_Quaternion Multiplied (const gp_Quaternion& theOther) const;
gp_Quaternion Multiplied (const gp_Quaternion& theOther) const;
gp_Quaternion operator * (const gp_Quaternion& theOther) const
{
return Multiplied(theOther);
}
//! Adds componnets of other quaternion; result is "rotations mix"
Standard_EXPORT void Add (const gp_Quaternion& theOther);
void Add (const gp_Quaternion& theOther);
void operator += (const gp_Quaternion& theOther)
{
Add(theOther);
}
//! Subtracts componnets of other quaternion; result is "rotations mix"
Standard_EXPORT void Subtract (const gp_Quaternion& theOther);
void Subtract (const gp_Quaternion& theOther);
void operator -= (const gp_Quaternion& theOther)
{
Subtract(theOther);
}
//! Adds rotation by multiplication
Standard_EXPORT void Multiply (const gp_Quaternion& theOther);
void Multiply (const gp_Quaternion& theOther);
void operator *= (const gp_Quaternion& theOther)
{
Multiply(theOther);
}
//! Computes inner product / scalar product / Dot
Standard_EXPORT Standard_Real Dot (const gp_Quaternion& theOther) const;
Standard_Real Dot (const gp_Quaternion& theOther) const;
//! Return rotation angle from -PI to PI
Standard_EXPORT Standard_Real GetRotationAngle() const;

View File

@@ -120,7 +120,7 @@ public:
//! Reverses the V parametrization of the torus
//! reversing the ZAxis.
Standard_EXPORT void VReverse();
void VReverse();
//! returns true if the Ax3, the local coordinate system of this torus, is right handed.
Standard_Boolean Direct() const;

View File

@@ -197,7 +197,7 @@ public:
//! Raises ConstructionError If S is null.
Standard_EXPORT void SetScaleFactor (const Standard_Real S);
Standard_EXPORT void SetForm (const gp_TrsfForm P);
void SetForm (const gp_TrsfForm P);
//! Sets the coefficients of the transformation. The
//! transformation of the point x,y,z is the point