Open CASCADE Technology  7.0.0
Static Public Member Functions
TransferBRep Class Reference

This package gathers services to simply read files and convert them to Shapes from CasCade. IE. it can be used in conjunction with purely CasCade software. More...

#include <TransferBRep.hxx>

Static Public Member Functions

static TopoDS_Shape ShapeResult (const Handle< Transfer_Binder > &binder)
 Get the Shape recorded in a Binder If the Binder brings a multiple result, search for the Shape. More...
 
static TopoDS_Shape ShapeResult (const Handle< Transfer_TransientProcess > &TP, const Handle< Standard_Transient > &ent)
 Get the Shape recorded in a TransientProcess as result of the Transfer of an entity. I.E. in the binder bound to that Entity If no result or result not a single Shape, returns a Null Shape. More...
 
static void SetShapeResult (const Handle< Transfer_TransientProcess > &TP, const Handle< Standard_Transient > &ent, const TopoDS_Shape &result)
 Sets a Shape as a result for a starting entity <ent> (reverse of ShapeResult) It simply creates a ShapeBinder then binds it to the entity. More...
 
static Handle< TopTools_HSequenceOfShape > Shapes (const Handle< Transfer_TransientProcess > &TP, const Standard_Boolean rootsonly=Standard_True)
 Gets the Shapes recorded in a TransientProcess as result of a Transfer, considers roots only or all results according <rootsonly>, returns them as a HSequence. More...
 
static Handle< TopTools_HSequenceOfShape > Shapes (const Handle< Transfer_TransientProcess > &TP, const Handle< TColStd_HSequenceOfTransient > &list)
 Gets the Shapes recorded in a TransientProcess as result of a Transfer, for a given list of starting entities, returns the shapes as a HSequence. More...
 
static TopAbs_Orientation ShapeState (const Handle< Transfer_FinderProcess > &FP, const TopoDS_Shape &shape)
 Returns a Status regarding a Shape in a FinderProcess. More...
 
static Handle< Transfer_BinderResultFromShape (const Handle< Transfer_FinderProcess > &FP, const TopoDS_Shape &shape)
 Returns the result (as a Binder) attached to a given Shape Null if none. More...
 
static Handle< Standard_TransientTransientFromShape (const Handle< Transfer_FinderProcess > &FP, const TopoDS_Shape &shape)
 Returns the result as pure Transient attached to a Shape first one if multiple result. More...
 
static void SetTransientFromShape (const Handle< Transfer_FinderProcess > &FP, const TopoDS_Shape &shape, const Handle< Standard_Transient > &result)
 Binds a Transient Result to a Shape in a FinderProcess (as first result if multiple : does not add it to existing one) More...
 
static Handle< TransferBRep_ShapeMapperShapeMapper (const Handle< Transfer_FinderProcess > &FP, const TopoDS_Shape &shape)
 Returns a ShapeMapper for a given Shape (location included) Either <shape> is already mapped, then its Mapper is returned Or it is not, then a new one is created then returned, BUT it is not mapped here (use Bind or FindElseBind to do this) More...
 
static void TransferResultInfo (const Handle< Transfer_TransientProcess > &TP, const Handle< TColStd_HSequenceOfTransient > &EntityTypes, Handle< TransferBRep_HSequenceOfTransferResultInfo > &InfoSeq)
 Fills sequence of TransferResultInfo for each type of entity given in the EntityTypes (entity are given as objects). Method IsKind applied to the entities in TP is used to compare with entities in EntityTypes. TopAbs_ShapeEnum). More...
 
static void TransferResultInfo (const Handle< Transfer_FinderProcess > &FP, const Handle< TColStd_HSequenceOfInteger > &ShapeTypes, Handle< TransferBRep_HSequenceOfTransferResultInfo > &InfoSeq)
 Fills sequence of TransferResultInfo for each type of shape given in the ShapeTypes (which are in fact considered as TopAbs_ShapeEnum). The Finders in the FP are considered as ShapeMappers. More...
 
static void PrintResultInfo (const Handle< Message_Printer > &Printer, const Message_Msg &Header, const Handle< TransferBRep_TransferResultInfo > &ResultInfo, const Standard_Boolean printEmpty=Standard_True)
 Prints the results of transfer to given priner with given header. More...
 
static Interface_CheckIterator BRepCheck (const TopoDS_Shape &shape, const Standard_Integer lev=1)
 Performs a heavy check by calling the Analyser from BRepCheck This tool computes a lot of informations about integrity of a Shape. This method uses it and converts its internal result to a classic check-list. <lev> allows to get more informations : 0 : BRepCheck only 1(D) + Curves/Surfaces not C0 ; 2 + SameParameter on Edges Warning : entities to which checks are bound are the Shapes themselves, embedded in ShapeMapper. More...
 
static Interface_CheckIterator ResultCheckList (const Interface_CheckIterator &chl, const Handle< Transfer_FinderProcess > &FP, const Handle< Interface_InterfaceModel > &model)
 Takes a starting CheckIterator which brings checks bound with starting objects (Shapes, Transient from an Imagine appli ...) and converts it to a CheckIterator in which checks are bound with results in an InterfaceModel Mapping is recorded in the FinderProcess Starting objects for which no individual result is recorded remain in their state. More...
 
static Handle< TColStd_HSequenceOfTransient > Checked (const Interface_CheckIterator &chl, const Standard_Boolean alsoshapes=Standard_False)
 Returns the list of objects to which a non-empty Check is bound in a check-list. Objects are transients, they can then be either Imagine objects entities for an Interface Norm. <alsoshapes> commands Shapes to be returned too (as ShapeMapper), see also CheckedShapes. More...
 
static Handle< TopTools_HSequenceOfShape > CheckedShapes (const Interface_CheckIterator &chl)
 Returns the list of shapes to which a non-empty Check is bound in a check-list. More...
 
static Interface_CheckIterator CheckObject (const Interface_CheckIterator &chl, const Handle< Standard_Transient > &obj)
 Returns the check-list bound to a given object, generally none (if OK) or one check. <obj> can be, either a true Transient object or entity, or a ShapeMapper, in that case the Shape is considered. More...
 

Detailed Description

This package gathers services to simply read files and convert them to Shapes from CasCade. IE. it can be used in conjunction with purely CasCade software.

Member Function Documentation

static Interface_CheckIterator TransferBRep::BRepCheck ( const TopoDS_Shape shape,
const Standard_Integer  lev = 1 
)
static

Performs a heavy check by calling the Analyser from BRepCheck This tool computes a lot of informations about integrity of a Shape. This method uses it and converts its internal result to a classic check-list. <lev> allows to get more informations : 0 : BRepCheck only 1(D) + Curves/Surfaces not C0 ; 2 + SameParameter on Edges Warning : entities to which checks are bound are the Shapes themselves, embedded in ShapeMapper.

static Handle< TColStd_HSequenceOfTransient > TransferBRep::Checked ( const Interface_CheckIterator chl,
const Standard_Boolean  alsoshapes = Standard_False 
)
static

Returns the list of objects to which a non-empty Check is bound in a check-list. Objects are transients, they can then be either Imagine objects entities for an Interface Norm. <alsoshapes> commands Shapes to be returned too (as ShapeMapper), see also CheckedShapes.

static Handle< TopTools_HSequenceOfShape > TransferBRep::CheckedShapes ( const Interface_CheckIterator chl)
static

Returns the list of shapes to which a non-empty Check is bound in a check-list.

static Interface_CheckIterator TransferBRep::CheckObject ( const Interface_CheckIterator chl,
const Handle< Standard_Transient > &  obj 
)
static

Returns the check-list bound to a given object, generally none (if OK) or one check. <obj> can be, either a true Transient object or entity, or a ShapeMapper, in that case the Shape is considered.

static void TransferBRep::PrintResultInfo ( const Handle< Message_Printer > &  Printer,
const Message_Msg Header,
const Handle< TransferBRep_TransferResultInfo > &  ResultInfo,
const Standard_Boolean  printEmpty = Standard_True 
)
static

Prints the results of transfer to given priner with given header.

static Interface_CheckIterator TransferBRep::ResultCheckList ( const Interface_CheckIterator chl,
const Handle< Transfer_FinderProcess > &  FP,
const Handle< Interface_InterfaceModel > &  model 
)
static

Takes a starting CheckIterator which brings checks bound with starting objects (Shapes, Transient from an Imagine appli ...) and converts it to a CheckIterator in which checks are bound with results in an InterfaceModel Mapping is recorded in the FinderProcess Starting objects for which no individual result is recorded remain in their state.

static Handle< Transfer_Binder > TransferBRep::ResultFromShape ( const Handle< Transfer_FinderProcess > &  FP,
const TopoDS_Shape shape 
)
static

Returns the result (as a Binder) attached to a given Shape Null if none.

static void TransferBRep::SetShapeResult ( const Handle< Transfer_TransientProcess > &  TP,
const Handle< Standard_Transient > &  ent,
const TopoDS_Shape result 
)
static

Sets a Shape as a result for a starting entity <ent> (reverse of ShapeResult) It simply creates a ShapeBinder then binds it to the entity.

static void TransferBRep::SetTransientFromShape ( const Handle< Transfer_FinderProcess > &  FP,
const TopoDS_Shape shape,
const Handle< Standard_Transient > &  result 
)
static

Binds a Transient Result to a Shape in a FinderProcess (as first result if multiple : does not add it to existing one)

static Handle< TransferBRep_ShapeMapper > TransferBRep::ShapeMapper ( const Handle< Transfer_FinderProcess > &  FP,
const TopoDS_Shape shape 
)
static

Returns a ShapeMapper for a given Shape (location included) Either <shape> is already mapped, then its Mapper is returned Or it is not, then a new one is created then returned, BUT it is not mapped here (use Bind or FindElseBind to do this)

static TopoDS_Shape TransferBRep::ShapeResult ( const Handle< Transfer_Binder > &  binder)
static

Get the Shape recorded in a Binder If the Binder brings a multiple result, search for the Shape.

static TopoDS_Shape TransferBRep::ShapeResult ( const Handle< Transfer_TransientProcess > &  TP,
const Handle< Standard_Transient > &  ent 
)
static

Get the Shape recorded in a TransientProcess as result of the Transfer of an entity. I.E. in the binder bound to that Entity If no result or result not a single Shape, returns a Null Shape.

static Handle< TopTools_HSequenceOfShape > TransferBRep::Shapes ( const Handle< Transfer_TransientProcess > &  TP,
const Standard_Boolean  rootsonly = Standard_True 
)
static

Gets the Shapes recorded in a TransientProcess as result of a Transfer, considers roots only or all results according <rootsonly>, returns them as a HSequence.

static Handle< TopTools_HSequenceOfShape > TransferBRep::Shapes ( const Handle< Transfer_TransientProcess > &  TP,
const Handle< TColStd_HSequenceOfTransient > &  list 
)
static

Gets the Shapes recorded in a TransientProcess as result of a Transfer, for a given list of starting entities, returns the shapes as a HSequence.

static TopAbs_Orientation TransferBRep::ShapeState ( const Handle< Transfer_FinderProcess > &  FP,
const TopoDS_Shape shape 
)
static

Returns a Status regarding a Shape in a FinderProcess.

  • FORWARD means bound with SAME Orientation
  • REVERSED means bound with REVERSE Orientation
  • EXTERNAL means NOT BOUND
  • INTERNAL is not used
static void TransferBRep::TransferResultInfo ( const Handle< Transfer_TransientProcess > &  TP,
const Handle< TColStd_HSequenceOfTransient > &  EntityTypes,
Handle< TransferBRep_HSequenceOfTransferResultInfo > &  InfoSeq 
)
static

Fills sequence of TransferResultInfo for each type of entity given in the EntityTypes (entity are given as objects). Method IsKind applied to the entities in TP is used to compare with entities in EntityTypes. TopAbs_ShapeEnum).

static void TransferBRep::TransferResultInfo ( const Handle< Transfer_FinderProcess > &  FP,
const Handle< TColStd_HSequenceOfInteger > &  ShapeTypes,
Handle< TransferBRep_HSequenceOfTransferResultInfo > &  InfoSeq 
)
static

Fills sequence of TransferResultInfo for each type of shape given in the ShapeTypes (which are in fact considered as TopAbs_ShapeEnum). The Finders in the FP are considered as ShapeMappers.

static Handle< Standard_Transient > TransferBRep::TransientFromShape ( const Handle< Transfer_FinderProcess > &  FP,
const TopoDS_Shape shape 
)
static

Returns the result as pure Transient attached to a Shape first one if multiple result.


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