Open CASCADE Technology 7.8.2.dev
AppDef_MyLineTool Class Reference

Example of MultiLine tool corresponding to the tools of the packages AppParCurves and Approx. For Approx, the tool will not add points if the algorithms want some. More...

#include <AppDef_MyLineTool.hxx>

Static Public Member Functions

static Standard_Integer FirstPoint (const AppDef_MultiLine &ML)
 Returns the first index of multipoints of the MultiLine.
 
static Standard_Integer LastPoint (const AppDef_MultiLine &ML)
 Returns the last index of multipoints of the MultiLine.
 
static Standard_Integer NbP2d (const AppDef_MultiLine &ML)
 Returns the number of 2d points of a MultiLine.
 
static Standard_Integer NbP3d (const AppDef_MultiLine &ML)
 Returns the number of 3d points of a MultiLine.
 
static void Value (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfPnt &tabPt)
 returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
 
static void Value (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfPnt2d &tabPt2d)
 returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.
 
static void Value (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfPnt &tabPt, TColgp_Array1OfPnt2d &tabPt2d)
 returns the 3d and 2d points of the multipoint <MPointIndex>.
 
static Standard_Boolean Tangency (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfVec &tabV)
 returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
 
static Standard_Boolean Tangency (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfVec2d &tabV2d)
 returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.
 
static Standard_Boolean Tangency (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfVec &tabV, TColgp_Array1OfVec2d &tabV2d)
 returns the 3d and 2d points of the multipoint <MPointIndex>.
 
static Standard_Boolean Curvature (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfVec &tabV)
 returns the 3d curvatures of the multipoint <MPointIndex> when only 3d points exist.
 
static Standard_Boolean Curvature (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfVec2d &tabV2d)
 returns the 2d curvatures of the multipoint <MPointIndex> only when 2d points exist.
 
static Standard_Boolean Curvature (const AppDef_MultiLine &ML, const Standard_Integer MPointIndex, TColgp_Array1OfVec &tabV, TColgp_Array1OfVec2d &tabV2d)
 returns the 3d and 2d curvatures of the multipoint <MPointIndex>.
 
static Approx_Status WhatStatus (const AppDef_MultiLine &ML, const Standard_Integer I1, const Standard_Integer I2)
 returns NoPointsAdded
 
static AppDef_MultiLine MakeMLBetween (const AppDef_MultiLine &ML, const Standard_Integer I1, const Standard_Integer I2, const Standard_Integer NbPMin)
 Is never called in the algorithms. Nothing is done.
 
static Standard_Boolean MakeMLOneMorePoint (const AppDef_MultiLine &ML, const Standard_Integer I1, const Standard_Integer I2, const Standard_Integer indbad, AppDef_MultiLine &OtherLine)
 Is never called in the algorithms. Nothing is done.
 

Detailed Description

Example of MultiLine tool corresponding to the tools of the packages AppParCurves and Approx. For Approx, the tool will not add points if the algorithms want some.

Member Function Documentation

◆ Curvature() [1/3]

static Standard_Boolean AppDef_MyLineTool::Curvature ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfVec & tabV )
static

returns the 3d curvatures of the multipoint <MPointIndex> when only 3d points exist.

◆ Curvature() [2/3]

static Standard_Boolean AppDef_MyLineTool::Curvature ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfVec & tabV,
TColgp_Array1OfVec2d & tabV2d )
static

returns the 3d and 2d curvatures of the multipoint <MPointIndex>.

◆ Curvature() [3/3]

static Standard_Boolean AppDef_MyLineTool::Curvature ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfVec2d & tabV2d )
static

returns the 2d curvatures of the multipoint <MPointIndex> only when 2d points exist.

◆ FirstPoint()

static Standard_Integer AppDef_MyLineTool::FirstPoint ( const AppDef_MultiLine & ML)
static

Returns the first index of multipoints of the MultiLine.

◆ LastPoint()

static Standard_Integer AppDef_MyLineTool::LastPoint ( const AppDef_MultiLine & ML)
static

Returns the last index of multipoints of the MultiLine.

◆ MakeMLBetween()

static AppDef_MultiLine AppDef_MyLineTool::MakeMLBetween ( const AppDef_MultiLine & ML,
const Standard_Integer I1,
const Standard_Integer I2,
const Standard_Integer NbPMin )
static

Is never called in the algorithms. Nothing is done.

◆ MakeMLOneMorePoint()

static Standard_Boolean AppDef_MyLineTool::MakeMLOneMorePoint ( const AppDef_MultiLine & ML,
const Standard_Integer I1,
const Standard_Integer I2,
const Standard_Integer indbad,
AppDef_MultiLine & OtherLine )
static

Is never called in the algorithms. Nothing is done.

◆ NbP2d()

static Standard_Integer AppDef_MyLineTool::NbP2d ( const AppDef_MultiLine & ML)
static

Returns the number of 2d points of a MultiLine.

◆ NbP3d()

static Standard_Integer AppDef_MyLineTool::NbP3d ( const AppDef_MultiLine & ML)
static

Returns the number of 3d points of a MultiLine.

◆ Tangency() [1/3]

static Standard_Boolean AppDef_MyLineTool::Tangency ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfVec & tabV )
static

returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.

◆ Tangency() [2/3]

static Standard_Boolean AppDef_MyLineTool::Tangency ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfVec & tabV,
TColgp_Array1OfVec2d & tabV2d )
static

returns the 3d and 2d points of the multipoint <MPointIndex>.

◆ Tangency() [3/3]

static Standard_Boolean AppDef_MyLineTool::Tangency ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfVec2d & tabV2d )
static

returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.

◆ Value() [1/3]

static void AppDef_MyLineTool::Value ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfPnt & tabPt )
static

returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.

◆ Value() [2/3]

static void AppDef_MyLineTool::Value ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfPnt & tabPt,
TColgp_Array1OfPnt2d & tabPt2d )
static

returns the 3d and 2d points of the multipoint <MPointIndex>.

◆ Value() [3/3]

static void AppDef_MyLineTool::Value ( const AppDef_MultiLine & ML,
const Standard_Integer MPointIndex,
TColgp_Array1OfPnt2d & tabPt2d )
static

returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.

◆ WhatStatus()

static Approx_Status AppDef_MyLineTool::WhatStatus ( const AppDef_MultiLine & ML,
const Standard_Integer I1,
const Standard_Integer I2 )
static

returns NoPointsAdded


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