OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKTopAlgo
Bisector


Bisector_BisecPC Class Reference

Provides the bisector between a point and a curve.
the curvature on the curve has to be monoton.
the point can't be on the curve exept at the extremitys.

.

#include <Bisector_BisecPC.hxx>

Inheritance diagram for Bisector_BisecPC:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT Bisector_BisecPC ()
Standard_EXPORT Bisector_BisecPC (const Handle(Geom2d_Curve)&Cu, const gp_Pnt2d &P, const Standard_Real Side, const Standard_Real DistMax=500)
 Constructs the bisector between the point

and
the curve <cu>.
<side> = 1. if the bisector curve is on the Left of <cu>
else <side> = -1.
<distmax> is used to trim the bisector.The distance
between the points of the bisector and <cu> is smaller
than <distmax>.

.

Standard_EXPORT Bisector_BisecPC (const Handle(Geom2d_Curve)&Cu, const gp_Pnt2d &P, const Standard_Real Side, const Standard_Real UMin, const Standard_Real UMax)
 Constructs the bisector between the point

and
the curve <cu> Trimmed by <umin> and <umax>
<side> = 1. if the bisector curve is on the Left of <cu>
else <side> = -1.
Warning: the bisector is supposed all over defined between
<umin> and <umax>.
.

Standard_EXPORT void Perform (const Handle(Geom2d_Curve)&Cu, const gp_Pnt2d &P, const Standard_Real Side, const Standard_Real DistMax=500)
 Construct the bisector between the point

and
the curve <cu>.
<side> = 1. if the bisector curve is on the Left of <cu>
else <side> = -1.
<distmax> is used to trim the bisector.The distance
between the points of the bisector and <cu> is smaller
than <distmax>.
.

Standard_EXPORT Standard_Boolean IsExtendAtStart () const
 Returns True if the bisector is extended at start.
.
Standard_EXPORT Standard_Boolean IsExtendAtEnd () const
 Returns True if the bisector is extended at end.
.
Standard_EXPORT void Reverse ()
 Changes the direction of parametrization of <me>.
The orientation of the curve is modified. If the curve
is bounded the StartPoint of the initial curve becomes the
EndPoint of the reversed curve and the EndPoint of the initial
curve becomes the StartPoint of the reversed curve.
.
Standard_EXPORT Standard_Real ReversedParameter (const Standard_Real U) const
 Returns the parameter on the reversed curve for
the point of parameter U on <me>.
.
Standard_EXPORT Handle_Geom2d_Geometry Copy () const
Standard_EXPORT void Transform (const gp_Trsf2d &T)
 Transformation of a geometric object. This tansformation
can be a translation, a rotation, a symmetry, a scaling
or a complex transformation obtained by combination of
the previous elementaries transformations.
.
Standard_EXPORT Standard_Boolean IsCN (const Standard_Integer N) const
 Returns the order of continuity of the curve.
//! Raised if N < 0.
.
Standard_EXPORT Standard_Real FirstParameter () const
 Value of the first parameter.
.
Standard_EXPORT Standard_Real LastParameter () const
 Value of the last parameter.
.
Standard_EXPORT GeomAbs_Shape Continuity () const
Standard_EXPORT Standard_Integer NbIntervals () const
 If necessary, breaks the curve in intervals of
continuity <c1>. And returns the number of
intervals.
.
Standard_EXPORT Standard_Real IntervalFirst (const Standard_Integer Index) const
 Returns the first parameter of the current
interval.
.
Standard_EXPORT Standard_Real IntervalLast (const Standard_Integer Index) const
 Returns the last parameter of the current
interval.
.
Standard_EXPORT GeomAbs_Shape IntervalContinuity () const
Standard_EXPORT Standard_Boolean IsClosed () const
Standard_EXPORT Standard_Boolean IsPeriodic () const
Standard_EXPORT Standard_Real Distance (const Standard_Real U) const
 Returns the distance between the point of
parameter U on <me> and my point or my curve.
.
Standard_EXPORT void D0 (const Standard_Real U, gp_Pnt2d &P) const
Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V) const
Standard_EXPORT void D2 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2) const
Standard_EXPORT void D3 (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2, gp_Vec2d &V3) const
Standard_EXPORT gp_Vec2d DN (const Standard_Real U, const Standard_Integer N) const
Standard_EXPORT void Dump (const Standard_Integer Deep=0, const Standard_Integer Offset=0) const
Standard_EXPORT Standard_Real LinkBisCurve (const Standard_Real U) const
 Returns the parameter on the curve1 of the projection
of the point of parameter U on <me>.
.
Standard_EXPORT Standard_Real LinkCurveBis (const Standard_Real U) const
 Returns the reciproque of LinkBisCurve.
.
Standard_EXPORT Standard_Real Parameter (const gp_Pnt2d &P) const
 Returns the parameter on <me> corresponding to

.
.

Standard_EXPORT Standard_Boolean IsEmpty () const
 Returns <true> if the bisector is empty.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Member Functions

Standard_EXPORT void Values (const Standard_Real U, const Standard_Integer N, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2, gp_Vec2d &V3) const
Standard_EXPORT void Extension (const Standard_Real U, gp_Pnt2d &P, gp_Vec2d &V1, gp_Vec2d &V2, gp_Vec2d &V3) const
Standard_EXPORT void ComputeIntervals ()
 Computes the interval where the bisector is defined.
.
Standard_EXPORT void CuspFilter ()
Standard_EXPORT Standard_Real SearchBound (const Standard_Real U1, const Standard_Real U2) const
Standard_EXPORT void Init (const Handle(Geom2d_Curve)&Curve, const gp_Pnt2d &Point, const Standard_Real Sign, const TColStd_SequenceOfReal &StartIntervals, const TColStd_SequenceOfReal &EndIntervals, const Standard_Integer BisInterval, const Standard_Integer CurrentInterval, const Standard_Real ShiftParameter, const Standard_Real DistMax, const Standard_Boolean IsEmpty, const Standard_Boolean IsConvex, const Standard_Boolean ExtensionStart, const Standard_Boolean ExtensionEnd, const gp_Pnt2d &PointStartBis, const gp_Pnt2d &PointEndBis)

Private Attributes

Handle_Geom2d_Curve curve
gp_Pnt2d point
Standard_Real sign
TColStd_SequenceOfReal startIntervals
TColStd_SequenceOfReal endIntervals
Standard_Integer bisInterval
Standard_Integer currentInterval
Standard_Real shiftParameter
Standard_Real distMax
Standard_Boolean isEmpty
Standard_Boolean isConvex
Standard_Boolean extensionStart
Standard_Boolean extensionEnd
gp_Pnt2d pointStartBis
gp_Pnt2d pointEndBis

Constructor & Destructor Documentation

Standard_EXPORT Bisector_BisecPC::Bisector_BisecPC  ) 
 

Standard_EXPORT Bisector_BisecPC::Bisector_BisecPC const Handle(Geom2d_Curve)&  Cu,
const gp_Pnt2d &  P,
const Standard_Real  Side,
const Standard_Real  DistMax = 500
 

Standard_EXPORT Bisector_BisecPC::Bisector_BisecPC const Handle(Geom2d_Curve)&  Cu,
const gp_Pnt2d &  P,
const Standard_Real  Side,
const Standard_Real  UMin,
const Standard_Real  UMax
 


Member Function Documentation

Standard_EXPORT void Bisector_BisecPC::ComputeIntervals  )  [private]
 

Standard_EXPORT GeomAbs_Shape Bisector_BisecPC::Continuity  )  const
 

Standard_EXPORT Handle_Geom2d_Geometry Bisector_BisecPC::Copy  )  const
 

Standard_EXPORT void Bisector_BisecPC::CuspFilter  )  [private]
 

Standard_EXPORT void Bisector_BisecPC::D0 const Standard_Real  U,
gp_Pnt2d &  P
const
 

Standard_EXPORT void Bisector_BisecPC::D1 const Standard_Real  U,
gp_Pnt2d &  P,
gp_Vec2d &  V
const
 

Standard_EXPORT void Bisector_BisecPC::D2 const Standard_Real  U,
gp_Pnt2d &  P,
gp_Vec2d &  V1,
gp_Vec2d &  V2
const
 

Standard_EXPORT void Bisector_BisecPC::D3 const Standard_Real  U,
gp_Pnt2d &  P,
gp_Vec2d &  V1,
gp_Vec2d &  V2,
gp_Vec2d &  V3
const
 

Standard_EXPORT Standard_Real Bisector_BisecPC::Distance const Standard_Real  U  )  const
 

Standard_EXPORT gp_Vec2d Bisector_BisecPC::DN const Standard_Real  U,
const Standard_Integer  N
const
 

Standard_EXPORT void Bisector_BisecPC::Dump const Standard_Integer  Deep = 0,
const Standard_Integer  Offset = 0
const
 

Standard_EXPORT void Bisector_BisecPC::Extension const Standard_Real  U,
gp_Pnt2d &  P,
gp_Vec2d &  V1,
gp_Vec2d &  V2,
gp_Vec2d &  V3
const [private]
 

Standard_EXPORT Standard_Real Bisector_BisecPC::FirstParameter  )  const
 

Standard_EXPORT const Bisector_BisecPC::Handle Standard_Type   )  const
 

Reimplemented from Bisector_Curve.

Standard_EXPORT void Bisector_BisecPC::Init const Handle(Geom2d_Curve)&  Curve,
const gp_Pnt2d &  Point,
const Standard_Real  Sign,
const TColStd_SequenceOfReal &  StartIntervals,
const TColStd_SequenceOfReal &  EndIntervals,
const Standard_Integer  BisInterval,
const Standard_Integer  CurrentInterval,
const Standard_Real  ShiftParameter,
const Standard_Real  DistMax,
const Standard_Boolean  IsEmpty,
const Standard_Boolean  IsConvex,
const Standard_Boolean  ExtensionStart,
const Standard_Boolean  ExtensionEnd,
const gp_Pnt2d &  PointStartBis,
const gp_Pnt2d &  PointEndBis
[private]
 

Standard_EXPORT GeomAbs_Shape Bisector_BisecPC::IntervalContinuity  )  const
 

Standard_EXPORT Standard_Real Bisector_BisecPC::IntervalFirst const Standard_Integer  Index  )  const [virtual]
 

Implements Bisector_Curve.

Standard_EXPORT Standard_Real Bisector_BisecPC::IntervalLast const Standard_Integer  Index  )  const [virtual]
 

Implements Bisector_Curve.

Standard_EXPORT Standard_Boolean Bisector_BisecPC::IsClosed  )  const
 

Standard_EXPORT Standard_Boolean Bisector_BisecPC::IsCN const Standard_Integer  N  )  const
 

Standard_EXPORT Standard_Boolean Bisector_BisecPC::IsEmpty  )  const
 

Standard_EXPORT Standard_Boolean Bisector_BisecPC::IsExtendAtEnd  )  const [virtual]
 

Implements Bisector_Curve.

Standard_EXPORT Standard_Boolean Bisector_BisecPC::IsExtendAtStart  )  const [virtual]
 

Implements Bisector_Curve.

Standard_EXPORT Standard_Boolean Bisector_BisecPC::IsPeriodic  )  const
 

Standard_EXPORT Standard_Real Bisector_BisecPC::LastParameter  )  const
 

Standard_EXPORT Standard_Real Bisector_BisecPC::LinkBisCurve const Standard_Real  U  )  const
 

Standard_EXPORT Standard_Real Bisector_BisecPC::LinkCurveBis const Standard_Real  U  )  const
 

Standard_EXPORT Standard_Integer Bisector_BisecPC::NbIntervals  )  const [virtual]
 

Implements Bisector_Curve.

Standard_EXPORT Standard_Real Bisector_BisecPC::Parameter const gp_Pnt2d &  P  )  const [virtual]
 

Implements Bisector_Curve.

Standard_EXPORT void Bisector_BisecPC::Perform const Handle(Geom2d_Curve)&  Cu,
const gp_Pnt2d &  P,
const Standard_Real  Side,
const Standard_Real  DistMax = 500
 

Standard_EXPORT void Bisector_BisecPC::Reverse  ) 
 

Standard_EXPORT Standard_Real Bisector_BisecPC::ReversedParameter const Standard_Real  U  )  const
 

Standard_EXPORT Standard_Real Bisector_BisecPC::SearchBound const Standard_Real  U1,
const Standard_Real  U2
const [private]
 

Standard_EXPORT void Bisector_BisecPC::Transform const gp_Trsf2d &  T  ) 
 

Standard_EXPORT void Bisector_BisecPC::Values const Standard_Real  U,
const Standard_Integer  N,
gp_Pnt2d &  P,
gp_Vec2d &  V1,
gp_Vec2d &  V2,
gp_Vec2d &  V3
const [private]
 


Field Documentation

Standard_Integer Bisector_BisecPC::bisInterval [private]
 

Standard_Integer Bisector_BisecPC::currentInterval [private]
 

Handle_Geom2d_Curve Bisector_BisecPC::curve [private]
 

Standard_Real Bisector_BisecPC::distMax [private]
 

TColStd_SequenceOfReal Bisector_BisecPC::endIntervals [private]
 

Standard_Boolean Bisector_BisecPC::extensionEnd [private]
 

Standard_Boolean Bisector_BisecPC::extensionStart [private]
 

Standard_Boolean Bisector_BisecPC::isConvex [private]
 

Standard_Boolean Bisector_BisecPC::isEmpty [private]
 

gp_Pnt2d Bisector_BisecPC::point [private]
 

gp_Pnt2d Bisector_BisecPC::pointEndBis [private]
 

gp_Pnt2d Bisector_BisecPC::pointStartBis [private]
 

Standard_Real Bisector_BisecPC::shiftParameter [private]
 

Standard_Real Bisector_BisecPC::sign [private]
 

TColStd_SequenceOfReal Bisector_BisecPC::startIntervals [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:40:33 2008 for OpenCASCADE by  doxygen 1.4.1