Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
AppDef_MultiLine Class Reference

This class describes the organized set of points used in the approximations. A MultiLine is composed of n MultiPointConstraints. The approximation of the MultiLine will be done in the order of the given n MultiPointConstraints. More...

#include <AppDef_MultiLine.hxx>

Public Member Functions

 AppDef_MultiLine ()
 creates an undefined MultiLine.
 
 AppDef_MultiLine (const int NbMult)
 given the number NbMult of MultiPointConstraints of this MultiLine, it initializes all the fields.SetValue must be called in order for the values of the multipoint constraint to be taken into account. An exception is raised if NbMult < 0.
 
 AppDef_MultiLine (const NCollection_Array1< AppDef_MultiPointConstraint > &tabMultiP)
 Constructs a MultiLine with an array of MultiPointConstraints.
 
 AppDef_MultiLine (const NCollection_Array1< gp_Pnt > &tabP3d)
 The MultiLine constructed will have one line of 3d points without their tangencies.
 
 AppDef_MultiLine (const NCollection_Array1< gp_Pnt2d > &tabP2d)
 The MultiLine constructed will have one line of 2d points without their tangencies.
 
int NbMultiPoints () const
 returns the number of MultiPointConstraints of the MultiLine.
 
int NbPoints () const
 returns the number of Points from MultiPoints composing the MultiLine.
 
void SetParameter (const int Index, const double U)
 Sets the value of the parameter for the MultiPointConstraint at position Index. Exceptions.
 
void SetValue (const int Index, const AppDef_MultiPointConstraint &MPoint)
 It sets the MultiPointConstraint of range Index to the value MPoint. An exception is raised if Index < 0 or Index> MPoint. An exception is raised if the dimensions of the MultiPoints are different.
 
AppDef_MultiPointConstraint Value (const int Index) const
 returns the MultiPointConstraint of range Index An exception is raised if Index<0 or Index>MPoint.
 
void Dump (Standard_OStream &o) const
 Prints on the stream o information on the current state of the object. Is used to redefine the operator <<.
 

Protected Attributes

occ::handle< NCollection_HArray1< AppDef_MultiPointConstraint > > tabMult
 

Detailed Description

This class describes the organized set of points used in the approximations. A MultiLine is composed of n MultiPointConstraints. The approximation of the MultiLine will be done in the order of the given n MultiPointConstraints.

Example of a MultiLine composed of MultiPointConstraints:

P1______P2_____P3______P4________........_____PNbMult

Q1______Q2_____Q3______Q4________........_____QNbMult . . . . . . R1______R2_____R3______R4________........_____RNbMult

Pi, Qi, ..., Ri are points of dimension 2 or 3.

(P1, Q1, ...R1), ...(Pn, Qn, ...Rn) n= 1,...NbMult are MultiPointConstraints. There are NbPoints points in each MultiPointConstraint.

Constructor & Destructor Documentation

◆ AppDef_MultiLine() [1/5]

AppDef_MultiLine::AppDef_MultiLine ( )

creates an undefined MultiLine.

◆ AppDef_MultiLine() [2/5]

AppDef_MultiLine::AppDef_MultiLine ( const int NbMult)

given the number NbMult of MultiPointConstraints of this MultiLine, it initializes all the fields.SetValue must be called in order for the values of the multipoint constraint to be taken into account. An exception is raised if NbMult < 0.

◆ AppDef_MultiLine() [3/5]

AppDef_MultiLine::AppDef_MultiLine ( const NCollection_Array1< AppDef_MultiPointConstraint > & tabMultiP)

Constructs a MultiLine with an array of MultiPointConstraints.

◆ AppDef_MultiLine() [4/5]

AppDef_MultiLine::AppDef_MultiLine ( const NCollection_Array1< gp_Pnt > & tabP3d)

The MultiLine constructed will have one line of 3d points without their tangencies.

◆ AppDef_MultiLine() [5/5]

AppDef_MultiLine::AppDef_MultiLine ( const NCollection_Array1< gp_Pnt2d > & tabP2d)

The MultiLine constructed will have one line of 2d points without their tangencies.

Member Function Documentation

◆ Dump()

void AppDef_MultiLine::Dump ( Standard_OStream & o) const

Prints on the stream o information on the current state of the object. Is used to redefine the operator <<.

◆ NbMultiPoints()

int AppDef_MultiLine::NbMultiPoints ( ) const

returns the number of MultiPointConstraints of the MultiLine.

◆ NbPoints()

int AppDef_MultiLine::NbPoints ( ) const

returns the number of Points from MultiPoints composing the MultiLine.

◆ SetParameter()

void AppDef_MultiLine::SetParameter ( const int Index,
const double U )

Sets the value of the parameter for the MultiPointConstraint at position Index. Exceptions.

  • Standard_OutOfRange if Index is less than 0 or Index is greater than the number of Multipoint constraints in the MultiLine.

◆ SetValue()

void AppDef_MultiLine::SetValue ( const int Index,
const AppDef_MultiPointConstraint & MPoint )

It sets the MultiPointConstraint of range Index to the value MPoint. An exception is raised if Index < 0 or Index> MPoint. An exception is raised if the dimensions of the MultiPoints are different.

◆ Value()

AppDef_MultiPointConstraint AppDef_MultiLine::Value ( const int Index) const

returns the MultiPointConstraint of range Index An exception is raised if Index<0 or Index>MPoint.

Field Documentation

◆ tabMult

occ::handle<NCollection_HArray1<AppDef_MultiPointConstraint> > AppDef_MultiLine::tabMult
protected

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