Open CASCADE Technology  7.2.0
Public Member Functions
IGESToBRep_CurveAndSurface Class Reference

Provides methods to transfer CurveAndSurface from IGES to CASCADE. More...

#include <IGESToBRep_CurveAndSurface.hxx>

Inheritance diagram for IGESToBRep_CurveAndSurface:
Inheritance graph
[legend]

Public Member Functions

 IGESToBRep_CurveAndSurface ()
 Creates a tool CurveAndSurface ready to run, with epsilons set to 1.E-04, myModeTopo to True, the optimization of the continuity to False. More...
 
 IGESToBRep_CurveAndSurface (const IGESToBRep_CurveAndSurface &CS)
 Creates a tool CurveAndSurface ready to run and sets its fields as CS's. More...
 
 IGESToBRep_CurveAndSurface (const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized)
 Creates a tool CurveAndSurface ready to run. More...
 
void Init ()
 Initializes the field of the tool CurveAndSurface with default creating values. More...
 
void SetEpsilon (const Standard_Real eps)
 Changes the value of "myEps". More...
 
Standard_Real GetEpsilon () const
 Returns the value of "myEps". More...
 
void SetEpsCoeff (const Standard_Real eps)
 Changes the value of "myEpsCoeff". More...
 
Standard_Real GetEpsCoeff () const
 Returns the value of "myEpsCoeff". More...
 
void SetEpsGeom (const Standard_Real eps)
 Changes the value of "myEpsGeom". More...
 
Standard_Real GetEpsGeom () const
 Returns the value of "myEpsGeom". More...
 
void SetMinTol (const Standard_Real mintol)
 Changes the value of "myMinTol". More...
 
void SetMaxTol (const Standard_Real maxtol)
 Changes the value of "myMaxTol". More...
 
void UpdateMinMaxTol ()
 Sets values of "myMinTol" and "myMaxTol" as follows myMaxTol = Max ("read.maxprecision.val", myEpsGeom * myUnitFactor) myMinTol = Precision::Confusion() Remark: This method is automatically invoked each time the values of "myEpsGeom" or "myUnitFactor" are changed. More...
 
Standard_Real GetMinTol () const
 Returns the value of "myMinTol". More...
 
Standard_Real GetMaxTol () const
 Returns the value of "myMaxTol". More...
 
void SetModeApprox (const Standard_Boolean mode)
 Changes the value of "myModeApprox". More...
 
Standard_Boolean GetModeApprox () const
 Returns the value of "myModeApprox". More...
 
void SetModeTransfer (const Standard_Boolean mode)
 Changes the value of "myModeIsTopo". More...
 
Standard_Boolean GetModeTransfer () const
 Returns the value of "myModeIsTopo". More...
 
void SetOptimized (const Standard_Boolean optimized)
 Changes the value of "myContIsOpti". More...
 
Standard_Boolean GetOptimized () const
 Returns the value of "myContIsOpti". More...
 
Standard_Real GetUnitFactor () const
 Returns the value of " myUnitFactor". More...
 
void SetSurfaceCurve (const Standard_Integer ival)
 Changes the value of "mySurfaceCurve". More...
 
Standard_Integer GetSurfaceCurve () const
 Returns the value of " mySurfaceCurve" 0 = value in file , 2 = kepp 2d and compute 3d 3 = keep 3d and compute 2d. More...
 
void SetModel (const Handle< IGESData_IGESModel > &model)
 Set the value of "myModel". More...
 
Handle< IGESData_IGESModelGetModel () const
 Returns the value of "myModel". More...
 
void SetContinuity (const Standard_Integer continuity)
 Changes the value of "myContinuity" if continuity = 0 do nothing else if continuity = 1 try C1 if continuity = 2 try C2. More...
 
Standard_Integer GetContinuity () const
 Returns the value of "myContinuity". More...
 
void SetTransferProcess (const Handle< Transfer_TransientProcess > &TP)
 Set the value of "myMsgReg". More...
 
Handle< Transfer_TransientProcessGetTransferProcess () const
 Returns the value of "myMsgReg". More...
 
TopoDS_Shape TransferCurveAndSurface (const Handle< IGESData_IGESEntity > &start)
 Returns the result of the transfert of any IGES Curve or Surface Entity. If the transfer has failed, this member return a NullEntity. More...
 
TopoDS_Shape TransferGeometry (const Handle< IGESData_IGESEntity > &start)
 Returns the result of the transfert the geometry of any IGESEntity. If the transfer has failed, this member return a NullEntity. More...
 
void SendFail (const Handle< IGESData_IGESEntity > &start, const Message_Msg &amsg)
 Records a new Fail message. More...
 
void SendWarning (const Handle< IGESData_IGESEntity > &start, const Message_Msg &amsg)
 Records a new Warning message. More...
 
void SendMsg (const Handle< IGESData_IGESEntity > &start, const Message_Msg &amsg)
 Records a new Information message from the definition of a Msg (Original+Value) More...
 
Standard_Boolean HasShapeResult (const Handle< IGESData_IGESEntity > &start) const
 Returns True if start was already treated and has a result in "myMap" else returns False. More...
 
TopoDS_Shape GetShapeResult (const Handle< IGESData_IGESEntity > &start) const
 Returns the result of the transfer of the IGESEntity "start" contained in "myMap" . (if HasShapeResult is True). More...
 
void SetShapeResult (const Handle< IGESData_IGESEntity > &start, const TopoDS_Shape &result)
 set in "myMap" the result of the transfer of the IGESEntity "start". More...
 
Standard_Integer NbShapeResult (const Handle< IGESData_IGESEntity > &start) const
 Returns the number of shapes results contained in "myMap" for the IGESEntity start ( type VertexList or EdgeList). More...
 
TopoDS_Shape GetShapeResult (const Handle< IGESData_IGESEntity > &start, const Standard_Integer num) const
 Returns the numth result of the IGESEntity start (type VertexList or EdgeList) in "myMap". (if NbShapeResult is not null). More...
 
void AddShapeResult (const Handle< IGESData_IGESEntity > &start, const TopoDS_Shape &result)
 set in "myMap" the result of the transfer of the entity of the IGESEntity start ( type VertexList or EdgeList). More...
 
void SetSurface (const Handle< Geom_Surface > &theSurface)
 
Handle< Geom_SurfaceSurface () const
 
Standard_Real GetUVResolution ()
 

Detailed Description

Provides methods to transfer CurveAndSurface from IGES to CASCADE.

Constructor & Destructor Documentation

◆ IGESToBRep_CurveAndSurface() [1/3]

IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface ( )

Creates a tool CurveAndSurface ready to run, with epsilons set to 1.E-04, myModeTopo to True, the optimization of the continuity to False.

◆ IGESToBRep_CurveAndSurface() [2/3]

IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface ( const IGESToBRep_CurveAndSurface CS)

Creates a tool CurveAndSurface ready to run and sets its fields as CS's.

◆ IGESToBRep_CurveAndSurface() [3/3]

IGESToBRep_CurveAndSurface::IGESToBRep_CurveAndSurface ( const Standard_Real  eps,
const Standard_Real  epsGeom,
const Standard_Real  epsCoeff,
const Standard_Boolean  mode,
const Standard_Boolean  modeapprox,
const Standard_Boolean  optimized 
)

Creates a tool CurveAndSurface ready to run.

Member Function Documentation

◆ AddShapeResult()

void IGESToBRep_CurveAndSurface::AddShapeResult ( const Handle< IGESData_IGESEntity > &  start,
const TopoDS_Shape result 
)

set in "myMap" the result of the transfer of the entity of the IGESEntity start ( type VertexList or EdgeList).

◆ GetContinuity()

Standard_Integer IGESToBRep_CurveAndSurface::GetContinuity ( ) const

Returns the value of "myContinuity".

◆ GetEpsCoeff()

Standard_Real IGESToBRep_CurveAndSurface::GetEpsCoeff ( ) const

Returns the value of "myEpsCoeff".

◆ GetEpsGeom()

Standard_Real IGESToBRep_CurveAndSurface::GetEpsGeom ( ) const

Returns the value of "myEpsGeom".

◆ GetEpsilon()

Standard_Real IGESToBRep_CurveAndSurface::GetEpsilon ( ) const

Returns the value of "myEps".

◆ GetMaxTol()

Standard_Real IGESToBRep_CurveAndSurface::GetMaxTol ( ) const

Returns the value of "myMaxTol".

◆ GetMinTol()

Standard_Real IGESToBRep_CurveAndSurface::GetMinTol ( ) const

Returns the value of "myMinTol".

◆ GetModeApprox()

Standard_Boolean IGESToBRep_CurveAndSurface::GetModeApprox ( ) const

Returns the value of "myModeApprox".

◆ GetModel()

Handle< IGESData_IGESModel > IGESToBRep_CurveAndSurface::GetModel ( ) const

Returns the value of "myModel".

◆ GetModeTransfer()

Standard_Boolean IGESToBRep_CurveAndSurface::GetModeTransfer ( ) const

Returns the value of "myModeIsTopo".

◆ GetOptimized()

Standard_Boolean IGESToBRep_CurveAndSurface::GetOptimized ( ) const

Returns the value of "myContIsOpti".

◆ GetShapeResult() [1/2]

TopoDS_Shape IGESToBRep_CurveAndSurface::GetShapeResult ( const Handle< IGESData_IGESEntity > &  start) const

Returns the result of the transfer of the IGESEntity "start" contained in "myMap" . (if HasShapeResult is True).

◆ GetShapeResult() [2/2]

TopoDS_Shape IGESToBRep_CurveAndSurface::GetShapeResult ( const Handle< IGESData_IGESEntity > &  start,
const Standard_Integer  num 
) const

Returns the numth result of the IGESEntity start (type VertexList or EdgeList) in "myMap". (if NbShapeResult is not null).

◆ GetSurfaceCurve()

Standard_Integer IGESToBRep_CurveAndSurface::GetSurfaceCurve ( ) const

Returns the value of " mySurfaceCurve" 0 = value in file , 2 = kepp 2d and compute 3d 3 = keep 3d and compute 2d.

◆ GetTransferProcess()

Handle< Transfer_TransientProcess > IGESToBRep_CurveAndSurface::GetTransferProcess ( ) const

Returns the value of "myMsgReg".

◆ GetUnitFactor()

Standard_Real IGESToBRep_CurveAndSurface::GetUnitFactor ( ) const

Returns the value of " myUnitFactor".

◆ GetUVResolution()

Standard_Real IGESToBRep_CurveAndSurface::GetUVResolution ( )

◆ HasShapeResult()

Standard_Boolean IGESToBRep_CurveAndSurface::HasShapeResult ( const Handle< IGESData_IGESEntity > &  start) const

Returns True if start was already treated and has a result in "myMap" else returns False.

◆ Init()

void IGESToBRep_CurveAndSurface::Init ( )

Initializes the field of the tool CurveAndSurface with default creating values.

◆ NbShapeResult()

Standard_Integer IGESToBRep_CurveAndSurface::NbShapeResult ( const Handle< IGESData_IGESEntity > &  start) const

Returns the number of shapes results contained in "myMap" for the IGESEntity start ( type VertexList or EdgeList).

◆ SendFail()

void IGESToBRep_CurveAndSurface::SendFail ( const Handle< IGESData_IGESEntity > &  start,
const Message_Msg amsg 
)

Records a new Fail message.

◆ SendMsg()

void IGESToBRep_CurveAndSurface::SendMsg ( const Handle< IGESData_IGESEntity > &  start,
const Message_Msg amsg 
)

Records a new Information message from the definition of a Msg (Original+Value)

◆ SendWarning()

void IGESToBRep_CurveAndSurface::SendWarning ( const Handle< IGESData_IGESEntity > &  start,
const Message_Msg amsg 
)

Records a new Warning message.

◆ SetContinuity()

void IGESToBRep_CurveAndSurface::SetContinuity ( const Standard_Integer  continuity)

Changes the value of "myContinuity" if continuity = 0 do nothing else if continuity = 1 try C1 if continuity = 2 try C2.

◆ SetEpsCoeff()

void IGESToBRep_CurveAndSurface::SetEpsCoeff ( const Standard_Real  eps)

Changes the value of "myEpsCoeff".

◆ SetEpsGeom()

void IGESToBRep_CurveAndSurface::SetEpsGeom ( const Standard_Real  eps)

Changes the value of "myEpsGeom".

◆ SetEpsilon()

void IGESToBRep_CurveAndSurface::SetEpsilon ( const Standard_Real  eps)

Changes the value of "myEps".

◆ SetMaxTol()

void IGESToBRep_CurveAndSurface::SetMaxTol ( const Standard_Real  maxtol)

Changes the value of "myMaxTol".

◆ SetMinTol()

void IGESToBRep_CurveAndSurface::SetMinTol ( const Standard_Real  mintol)

Changes the value of "myMinTol".

◆ SetModeApprox()

void IGESToBRep_CurveAndSurface::SetModeApprox ( const Standard_Boolean  mode)

Changes the value of "myModeApprox".

◆ SetModel()

void IGESToBRep_CurveAndSurface::SetModel ( const Handle< IGESData_IGESModel > &  model)

Set the value of "myModel".

◆ SetModeTransfer()

void IGESToBRep_CurveAndSurface::SetModeTransfer ( const Standard_Boolean  mode)

Changes the value of "myModeIsTopo".

◆ SetOptimized()

void IGESToBRep_CurveAndSurface::SetOptimized ( const Standard_Boolean  optimized)

Changes the value of "myContIsOpti".

◆ SetShapeResult()

void IGESToBRep_CurveAndSurface::SetShapeResult ( const Handle< IGESData_IGESEntity > &  start,
const TopoDS_Shape result 
)

set in "myMap" the result of the transfer of the IGESEntity "start".

◆ SetSurface()

void IGESToBRep_CurveAndSurface::SetSurface ( const Handle< Geom_Surface > &  theSurface)

◆ SetSurfaceCurve()

void IGESToBRep_CurveAndSurface::SetSurfaceCurve ( const Standard_Integer  ival)

Changes the value of "mySurfaceCurve".

◆ SetTransferProcess()

void IGESToBRep_CurveAndSurface::SetTransferProcess ( const Handle< Transfer_TransientProcess > &  TP)

Set the value of "myMsgReg".

◆ Surface()

Handle< Geom_Surface > IGESToBRep_CurveAndSurface::Surface ( ) const

◆ TransferCurveAndSurface()

TopoDS_Shape IGESToBRep_CurveAndSurface::TransferCurveAndSurface ( const Handle< IGESData_IGESEntity > &  start)

Returns the result of the transfert of any IGES Curve or Surface Entity. If the transfer has failed, this member return a NullEntity.

◆ TransferGeometry()

TopoDS_Shape IGESToBRep_CurveAndSurface::TransferGeometry ( const Handle< IGESData_IGESEntity > &  start)

Returns the result of the transfert the geometry of any IGESEntity. If the transfer has failed, this member return a NullEntity.

◆ UpdateMinMaxTol()

void IGESToBRep_CurveAndSurface::UpdateMinMaxTol ( )

Sets values of "myMinTol" and "myMaxTol" as follows myMaxTol = Max ("read.maxprecision.val", myEpsGeom * myUnitFactor) myMinTol = Precision::Confusion() Remark: This method is automatically invoked each time the values of "myEpsGeom" or "myUnitFactor" are changed.


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