Open CASCADE Technology  7.3.0
Public Member Functions | Static Public Member Functions

BinTools_CurveSet Class Reference

Stores a set of Curves from Geom in binary format. More...

#include <BinTools_CurveSet.hxx>

Public Member Functions

 BinTools_CurveSet ()
 Returns an empty set of Curves. More...
 
void Clear ()
 Clears the content of the set. More...
 
Standard_Integer Add (const Handle< Geom_Curve > &C)
 Incorporate a new Curve in the set and returns its index. More...
 
Handle< Geom_CurveCurve (const Standard_Integer I) const
 Returns the Curve of index . More...
 
Standard_Integer Index (const Handle< Geom_Curve > &C) const
 Returns the index of <L>. More...
 
void Write (Standard_OStream &OS) const
 Writes the content of me on the stream <OS> in a format that can be read back by Read. More...
 
void Read (Standard_IStream &IS)
 Reads the content of me from the stream <IS>. me is first cleared. More...
 

Static Public Member Functions

static void WriteCurve (const Handle< Geom_Curve > &C, Standard_OStream &OS)
 Dumps the curve on the stream in binary format that can be read back. More...
 
static Standard_IStreamReadCurve (Standard_IStream &IS, Handle< Geom_Curve > &C)
 Reads the curve from the stream. The curve is assumed to have been written with the Write method. More...
 

Detailed Description

Stores a set of Curves from Geom in binary format.

Constructor & Destructor Documentation

◆ BinTools_CurveSet()

BinTools_CurveSet::BinTools_CurveSet ( )

Returns an empty set of Curves.

Member Function Documentation

◆ Add()

Standard_Integer BinTools_CurveSet::Add ( const Handle< Geom_Curve > &  C)

Incorporate a new Curve in the set and returns its index.

◆ Clear()

void BinTools_CurveSet::Clear ( )

Clears the content of the set.

◆ Curve()

Handle< Geom_Curve > BinTools_CurveSet::Curve ( const Standard_Integer  I) const

Returns the Curve of index .

◆ Index()

Standard_Integer BinTools_CurveSet::Index ( const Handle< Geom_Curve > &  C) const

Returns the index of <L>.

◆ Read()

void BinTools_CurveSet::Read ( Standard_IStream IS)

Reads the content of me from the stream <IS>. me is first cleared.

◆ ReadCurve()

static Standard_IStream& BinTools_CurveSet::ReadCurve ( Standard_IStream IS,
Handle< Geom_Curve > &  C 
)
static

Reads the curve from the stream. The curve is assumed to have been written with the Write method.

◆ Write()

void BinTools_CurveSet::Write ( Standard_OStream OS) const

Writes the content of me on the stream <OS> in a format that can be read back by Read.

◆ WriteCurve()

static void BinTools_CurveSet::WriteCurve ( const Handle< Geom_Curve > &  C,
Standard_OStream OS 
)
static

Dumps the curve on the stream in binary format that can be read back.


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