Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
HLRBRep_Curve Class Reference

Defines a 2d curve by projection of a 3D curve on
a plane with an optional perspective
transformation.

#include <HLRBRep_Curve.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC HLRBRep_Curve ()
 Creates an undefined Curve.

void Projector (const Standard_Address Proj)
BRepAdaptor_CurveCurve ()
 Returns the 3D curve.

void Curve (const TopoDS_Edge &E)
 Sets the 3D curve to be projected.

Standard_Real Parameter2d (const Standard_Real P3d) const
 Returns the parameter on the 2d curve from the
parameter on the 3d curve.

Standard_Real Parameter3d (const Standard_Real P2d) const
 Returns the parameter on the 3d curve from the
parameter on the 2d curve.

Standard_Real Update (const Standard_Address TotMin, const Standard_Address TotMax)
 Update the minmax and the internal data

Standard_Real UpdateMinMax (const Standard_Address TotMin, const Standard_Address TotMax)
 Update the minmax returns tol for enlarge;

Standard_Real Z (const Standard_Real U) const
 Computes the Z coordinate of the point of
parameter U on the curve in the viewing coordinate system

gp_Pnt Value3D (const Standard_Real U) const
 Computes the 3D point of parameter U on the
curve.


void D0 (const Standard_Real U, gp_Pnt &P) const
 Computes the 3D point of parameter U on the
curve.


void D1 (const Standard_Real U, gp_Pnt &P, gp_Vec &V) const
 Computes the point of parameter U on the curve
with its first derivative.


void Tangent (const Standard_Boolean AtStart, gp_Pnt2d &P, gp_Dir2d &D) const
 Depending on <AtStart> computes the 2D point and
tangent on the curve at sart (or at end). If the first
derivative is null look after at start (or before at end)
with the second derivative.


Standard_Real FirstParameter () const
Standard_Real LastParameter () const
GeomAbs_Shape Continuity () const
Standard_Integer NbIntervals (const GeomAbs_Shape S)
 If necessary, breaks the curve in intervals of
continuity <S>. And returns the number of
intervals.

void Intervals (TColStd_Array1OfReal &T, const GeomAbs_Shape S)
 Stores in <T> the parameters bounding the intervals
of continuity <S>.

The array must provide enough room to accomodate
for the parameters. i.e. T.Length() > NbIntervals()

Standard_Boolean IsClosed () const
Standard_Boolean IsPeriodic () const
Standard_Real Period () const
gp_Pnt2d Value (const Standard_Real U) const
 Computes the point of parameter U on the curve.


void D0 (const Standard_Real U, gp_Pnt2d &P) const
 Computes the point of parameter U on the curve.

void D1 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V) const
 Computes the point of parameter U on the curve
with its first derivative.
//! Raised if the continuity of the current interval
is not C1.

void D2 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2) const
 Raised if the continuity of the current interval
is not C2.

void D3 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2, gp_Vec2d &V3) const
 Returns the point P of parameter U, the first, the second
and the third derivative.
//! Raised if the continuity of the current interval
is not C3.

gp_Vec2d DN (const Standard_Real U, const Standard_Integer N) const
 The returned vector gives the value of the derivative for the
order of derivation N.
//! Raised if the continuity of the current interval
is not CN.
//! Raised if N < 1.

Standard_Real Resolution (const Standard_Real R3d) const
 Returns the parametric resolution corresponding
to the real space resolution <R3d>.

GeomAbs_CurveType GetType () const
 Returns the type of the curve in the current
interval : Line, Circle, Ellipse, Hyperbola,
Parabola, BezierCurve, BSplineCurve, OtherCurve.

gp_Lin2d Line () const
gp_Circ2d Circle () const
gp_Elips2d Ellipse () const
gp_Hypr2d Hyperbola () const
gp_Parab2d Parabola () const
Standard_Boolean IsRational () const
Standard_Integer Degree () const
Standard_Integer NbPoles () const
void Poles (TColgp_Array1OfPnt2d &TP) const
void PolesAndWeights (TColgp_Array1OfPnt2d &TP, TColStd_Array1OfReal &TW) const
Standard_Integer NbKnots () const
void Knots (TColStd_Array1OfReal &kn) const
void Multiplicities (TColStd_Array1OfInteger &mu) const

Constructor & Destructor Documentation


Member Function Documentation

void HLRBRep_Curve::D1 ( const Standard_Real  U,
gp_Pnt P,
gp_Vec V 
) const
void HLRBRep_Curve::D1 ( const Standard_Real  U,
gp_Pnt2d P,
gp_Vec2d V 
) const
void HLRBRep_Curve::D2 ( const Standard_Real  U,
gp_Pnt2d P,
gp_Vec2d V1,
gp_Vec2d V2 
) const
void HLRBRep_Curve::D3 ( const Standard_Real  U,
gp_Pnt2d P,
gp_Vec2d V1,
gp_Vec2d V2,
gp_Vec2d V3 
) const
void HLRBRep_Curve::Tangent ( const Standard_Boolean  AtStart,
gp_Pnt2d P,
gp_Dir2d D 
) const

The documentation for this class was generated from the following file: