Open CASCADE Technology  6.9.0
Public Member Functions

IntPatch_WLine Class Reference

Definition of set of points as a result of the intersection between 2 parametrised patches. More...

#include <IntPatch_WLine.hxx>

Inheritance diagram for IntPatch_WLine:
Inheritance graph
[legend]

Public Member Functions

 IntPatch_WLine (const Handle< IntSurf_LineOn2S > &Line, const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2)
 Creates a WLine as an intersection when the transitions are In or Out. More...
 
 IntPatch_WLine (const Handle< IntSurf_LineOn2S > &Line, const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 Creates a WLine as an intersection when the transitions are Touch. More...
 
 IntPatch_WLine (const Handle< IntSurf_LineOn2S > &Line, const Standard_Boolean Tang)
 Creates a WLine as an intersection when the transitions are Undecided. More...
 
void AddVertex (const IntPatch_Point &Pnt)
 Adds a vertex in the list. More...
 
void SetPoint (const Standard_Integer Index, const IntPatch_Point &Pnt)
 Set the Point of index <Index> in the LineOn2S. More...
 
void Replace (const Standard_Integer Index, const IntPatch_Point &Pnt)
 Replaces the element of range Index in the list of points. The exception OutOfRange is raised when Index <= 0 or Index > NbVertex. More...
 
void SetFirstPoint (const Standard_Integer IndFirst)
 
void SetLastPoint (const Standard_Integer IndLast)
 
Standard_Integer NbPnts () const
 Returns the number of intersection points. More...
 
const IntSurf_PntOn2SPoint (const Standard_Integer Index) const
 Returns the intersection point of range Index. More...
 
Standard_Boolean HasFirstPoint () const
 Returns True if the line has a known First point. This point is given by the method FirstPoint(). More...
 
Standard_Boolean HasLastPoint () const
 Returns True if the line has a known Last point. This point is given by the method LastPoint(). More...
 
const IntPatch_PointFirstPoint () const
 Returns the Point corresponding to the FirstPoint. More...
 
const IntPatch_PointLastPoint () const
 Returns the Point corresponding to the LastPoint. More...
 
const IntPatch_PointFirstPoint (Standard_Integer &Indfirst) const
 Returns the Point corresponding to the FirstPoint. Indfirst is the index of the first in the list of vertices. More...
 
const IntPatch_PointLastPoint (Standard_Integer &Indlast) const
 Returns the Point corresponding to the LastPoint. Indlast is the index of the last in the list of vertices. More...
 
Standard_Integer NbVertex () const
 
const IntPatch_PointVertex (const Standard_Integer Index) const
 Returns the vertex of range Index on the line. More...
 
void ComputeVertexParameters (const Standard_Real Tol, const Standard_Boolean hasBeenAdded=Standard_False)
 Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted. More...
 
Handle< IntSurf_LineOn2SCurve () const
 
Standard_Boolean IsOutSurf1Box (const gp_Pnt2d &P1)
 
Standard_Boolean IsOutSurf2Box (const gp_Pnt2d &P1)
 
Standard_Boolean IsOutBox (const gp_Pnt &P)
 
void SetPeriod (const Standard_Real pu1, const Standard_Real pv1, const Standard_Real pu2, const Standard_Real pv2)
 
Standard_Real U1Period () const
 
Standard_Real V1Period () const
 
Standard_Real U2Period () const
 
Standard_Real V2Period () const
 
void SetArcOnS1 (const Handle< Adaptor2d_HCurve2d > &A)
 
Standard_Boolean HasArcOnS1 () const
 
const Handle
< Adaptor2d_HCurve2d > & 
GetArcOnS1 () const
 
void SetArcOnS2 (const Handle< Adaptor2d_HCurve2d > &A)
 
Standard_Boolean HasArcOnS2 () const
 
const Handle
< Adaptor2d_HCurve2d > & 
GetArcOnS2 () const
 
void ClearVertexes ()
 
void RemoveVertex (const Standard_Integer theIndex)
 
void InsertVertexBefore (const Standard_Integer theIndex, const IntPatch_Point &thePnt)
 
void Dump () const
 
- Public Member Functions inherited from IntPatch_Line
void SetValue (const Standard_Boolean Uiso1, const Standard_Boolean Viso1, const Standard_Boolean Uiso2, const Standard_Boolean Viso2)
 To set the values returned by IsUIsoS1,.... The default values are False. More...
 
IntPatch_IType ArcType () const
 Returns the type of geometry 3d (Line, Circle, Parabola, Hyperbola, Ellipse, Analytic, Walking, Restriction) More...
 
Standard_Boolean IsTangent () const
 Returns TRUE if the intersection is a line of tangency between the 2 patches. More...
 
IntSurf_TypeTrans TransitionOnS1 () const
 Returns the type of the transition of the line for the first surface. The transition is "constant" along the line. The transition is IN if the line is oriented in such a way that the system of vector (N1,N2,T) is right-handed, where N1 is the normal to the first surface at a point P, N2 is the normal to the second surface at a point P, T is the tangent to the intersection line at P. If the system of vector is left-handed, the transition is OUT. When N1 and N2 are colinear all along the intersection line, the transition will be. More...
 
IntSurf_TypeTrans TransitionOnS2 () const
 Returns the type of the transition of the line for the second surface. The transition is "constant" along the line. More...
 
IntSurf_Situation SituationS1 () const
 Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of the first patch compared to the second one, when TransitionOnS1 or TransitionOnS2 returns TOUCH. Otherwise, an exception is raised. More...
 
IntSurf_Situation SituationS2 () const
 Returns the situation (INSIDE/OUTSIDE/UNKNOWN) of the second patch compared to the first one, when TransitionOnS1 or TransitionOnS2 returns TOUCH. Otherwise, an exception is raised. More...
 
Standard_Boolean IsUIsoOnS1 () const
 Returns TRUE if the intersection is a U isoparametric curve on the first patch. More...
 
Standard_Boolean IsVIsoOnS1 () const
 Returns TRUE if the intersection is a V isoparametric curve on the first patch. More...
 
Standard_Boolean IsUIsoOnS2 () const
 Returns TRUE if the intersection is a U isoparametric curve on the second patch. More...
 
Standard_Boolean IsVIsoOnS2 () const
 Returns TRUE if the intersection is a V isoparametric curve on the second patch. More...
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from IntPatch_PointLine
 IntPatch_PointLine (const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2)
 To initialize the fields, when the transitions are In or Out. More...
 
 IntPatch_PointLine (const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 To initialize the fields, when the transitions are Touch. More...
 
 IntPatch_PointLine (const Standard_Boolean Tang)
 To initialize the fields, when the transitions are Undecided. More...
 
- Protected Member Functions inherited from IntPatch_Line
 IntPatch_Line (const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2)
 To initialize the fields, when the transitions are In or Out. More...
 
 IntPatch_Line (const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2)
 To initialize the fields, when the transitions are Touch. More...
 
 IntPatch_Line (const Standard_Boolean Tang)
 To initialize the fields, when the transitions are Undecided. More...
 
- Protected Attributes inherited from IntPatch_Line
IntPatch_IType typ
 

Detailed Description

Definition of set of points as a result of the intersection between 2 parametrised patches.

Constructor & Destructor Documentation

IntPatch_WLine::IntPatch_WLine ( const Handle< IntSurf_LineOn2S > &  Line,
const Standard_Boolean  Tang,
const IntSurf_TypeTrans  Trans1,
const IntSurf_TypeTrans  Trans2 
)

Creates a WLine as an intersection when the transitions are In or Out.

IntPatch_WLine::IntPatch_WLine ( const Handle< IntSurf_LineOn2S > &  Line,
const Standard_Boolean  Tang,
const IntSurf_Situation  Situ1,
const IntSurf_Situation  Situ2 
)

Creates a WLine as an intersection when the transitions are Touch.

IntPatch_WLine::IntPatch_WLine ( const Handle< IntSurf_LineOn2S > &  Line,
const Standard_Boolean  Tang 
)

Creates a WLine as an intersection when the transitions are Undecided.

Member Function Documentation

void IntPatch_WLine::AddVertex ( const IntPatch_Point Pnt)

Adds a vertex in the list.

void IntPatch_WLine::ClearVertexes ( )
void IntPatch_WLine::ComputeVertexParameters ( const Standard_Real  Tol,
const Standard_Boolean  hasBeenAdded = Standard_False 
)

Set the parameters of all the vertex on the line. if a vertex is already in the line, its parameter is modified else a new point in the line is inserted.

Handle< IntSurf_LineOn2S > IntPatch_WLine::Curve ( ) const
void IntPatch_WLine::Dump ( ) const
const IntPatch_Point& IntPatch_WLine::FirstPoint ( ) const

Returns the Point corresponding to the FirstPoint.

const IntPatch_Point& IntPatch_WLine::FirstPoint ( Standard_Integer Indfirst) const

Returns the Point corresponding to the FirstPoint. Indfirst is the index of the first in the list of vertices.

const Handle< Adaptor2d_HCurve2d >& IntPatch_WLine::GetArcOnS1 ( ) const
const Handle< Adaptor2d_HCurve2d >& IntPatch_WLine::GetArcOnS2 ( ) const
Standard_Boolean IntPatch_WLine::HasArcOnS1 ( ) const
Standard_Boolean IntPatch_WLine::HasArcOnS2 ( ) const
Standard_Boolean IntPatch_WLine::HasFirstPoint ( ) const

Returns True if the line has a known First point. This point is given by the method FirstPoint().

Standard_Boolean IntPatch_WLine::HasLastPoint ( ) const

Returns True if the line has a known Last point. This point is given by the method LastPoint().

void IntPatch_WLine::InsertVertexBefore ( const Standard_Integer  theIndex,
const IntPatch_Point thePnt 
)
Standard_Boolean IntPatch_WLine::IsOutBox ( const gp_Pnt P)
Standard_Boolean IntPatch_WLine::IsOutSurf1Box ( const gp_Pnt2d P1)
Standard_Boolean IntPatch_WLine::IsOutSurf2Box ( const gp_Pnt2d P1)
const IntPatch_Point& IntPatch_WLine::LastPoint ( ) const

Returns the Point corresponding to the LastPoint.

const IntPatch_Point& IntPatch_WLine::LastPoint ( Standard_Integer Indlast) const

Returns the Point corresponding to the LastPoint. Indlast is the index of the last in the list of vertices.

Standard_Integer IntPatch_WLine::NbPnts ( ) const
virtual

Returns the number of intersection points.

Implements IntPatch_PointLine.

Standard_Integer IntPatch_WLine::NbVertex ( ) const
const IntSurf_PntOn2S& IntPatch_WLine::Point ( const Standard_Integer  Index) const
virtual

Returns the intersection point of range Index.

Implements IntPatch_PointLine.

void IntPatch_WLine::RemoveVertex ( const Standard_Integer  theIndex)
void IntPatch_WLine::Replace ( const Standard_Integer  Index,
const IntPatch_Point Pnt 
)

Replaces the element of range Index in the list of points. The exception OutOfRange is raised when Index <= 0 or Index > NbVertex.

void IntPatch_WLine::SetArcOnS1 ( const Handle< Adaptor2d_HCurve2d > &  A)
void IntPatch_WLine::SetArcOnS2 ( const Handle< Adaptor2d_HCurve2d > &  A)
void IntPatch_WLine::SetFirstPoint ( const Standard_Integer  IndFirst)
void IntPatch_WLine::SetLastPoint ( const Standard_Integer  IndLast)
void IntPatch_WLine::SetPeriod ( const Standard_Real  pu1,
const Standard_Real  pv1,
const Standard_Real  pu2,
const Standard_Real  pv2 
)
void IntPatch_WLine::SetPoint ( const Standard_Integer  Index,
const IntPatch_Point Pnt 
)

Set the Point of index <Index> in the LineOn2S.

Standard_Real IntPatch_WLine::U1Period ( ) const
Standard_Real IntPatch_WLine::U2Period ( ) const
Standard_Real IntPatch_WLine::V1Period ( ) const
Standard_Real IntPatch_WLine::V2Period ( ) const
const IntPatch_Point& IntPatch_WLine::Vertex ( const Standard_Integer  Index) const

Returns the vertex of range Index on the line.


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