Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
BinTools_ShapeReader Class Reference

Reads topology from IStream in binary format without grouping of objects by types and using relative positions in a file as references. More...

#include <BinTools_ShapeReader.hxx>

Inheritance diagram for BinTools_ShapeReader:
Inheritance graph
[legend]

Public Member Functions

 BinTools_ShapeReader ()
 Initializes a shape reader.
 
 ~BinTools_ShapeReader () override
 
void Clear () override
 Clears the content of the set.
 
void Read (Standard_IStream &theStream, TopoDS_Shape &theShape) override
 Reads the shape from stream using previously restored shapes and objects by references.
 
const TopLoc_LocationReadLocation (BinTools_IStream &theStream)
 Reads location from the stream.
 
- Public Member Functions inherited from BinTools_ShapeSetBase
 BinTools_ShapeSetBase ()
 A default constructor.
 
virtual ~BinTools_ShapeSetBase ()
 
bool IsWithTriangles () const
 Return true if shape should be stored with triangles.
 
bool IsWithNormals () const
 Return true if shape should be stored triangulation with normals.
 
void SetWithTriangles (const bool theWithTriangles)
 Define if shape will be stored with triangles. Ignored (always written) if face defines only triangulation (no surface).
 
void SetWithNormals (const bool theWithNormals)
 Define if shape will be stored triangulation with normals. Ignored (always written) if face defines only triangulation (no surface).
 
void SetFormatNb (const int theFormatNb)
 Sets the BinTools_FormatVersion.
 
int FormatNb () const
 Returns the BinTools_FormatVersion.
 
virtual void Write (Standard_OStream &, const Message_ProgressRange &=Message_ProgressRange())
 Writes the content of me on the stream <OS> in binary format that can be read back by Read.
 
virtual void Read (Standard_IStream &, const Message_ProgressRange &=Message_ProgressRange())
 Reads the content of me from the binary stream <IS>. me is first cleared.
 
virtual void Write (const TopoDS_Shape &, Standard_OStream &)
 Writes on <OS> the shape . Writes the orientation, the index of the TShape and the index of the Location.
 

Additional Inherited Members

- Static Public Attributes inherited from BinTools_ShapeSetBase
static const char *const THE_ASCII_VERSIONS [BinTools_FormatVersion_UPPER+1]
 

Detailed Description

Reads topology from IStream in binary format without grouping of objects by types and using relative positions in a file as references.

Constructor & Destructor Documentation

◆ BinTools_ShapeReader()

BinTools_ShapeReader::BinTools_ShapeReader ( )

Initializes a shape reader.

◆ ~BinTools_ShapeReader()

BinTools_ShapeReader::~BinTools_ShapeReader ( )
override

Member Function Documentation

◆ Clear()

void BinTools_ShapeReader::Clear ( )
overridevirtual

Clears the content of the set.

Reimplemented from BinTools_ShapeSetBase.

◆ Read()

void BinTools_ShapeReader::Read ( Standard_IStream & theStream,
TopoDS_Shape & theShape )
overridevirtual

Reads the shape from stream using previously restored shapes and objects by references.

Reimplemented from BinTools_ShapeSetBase.

◆ ReadLocation()

const TopLoc_Location * BinTools_ShapeReader::ReadLocation ( BinTools_IStream & theStream)

Reads location from the stream.


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