![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
A base class for all readers/writers of TopoDS_Shape into/from stream. More...
#include <BinTools_ShapeSetBase.hxx>

Public Member Functions | |
| 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 | Clear () |
| Clears the content of the set. | |
| 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 | |
| virtual void | Read (Standard_IStream &, TopoDS_Shape &) |
| An empty virtual method for redefinition in shape-reader. | |
Static Public Attributes | |
| static const char *const | THE_ASCII_VERSIONS [BinTools_FormatVersion_UPPER+1] |
A base class for all readers/writers of TopoDS_Shape into/from stream.
| BinTools_ShapeSetBase::BinTools_ShapeSetBase | ( | ) |
A default constructor.
|
virtual |
Clears the content of the set.
Reimplemented in BinTools_ShapeReader, BinTools_ShapeSet, and BinTools_ShapeWriter.
|
inline |
Returns the BinTools_FormatVersion.
|
inline |
Return true if shape should be stored triangulation with normals.
|
inline |
Return true if shape should be stored with triangles.
|
inlinevirtual |
Reads the content of me from the binary stream <IS>. me is first cleared.
Reads the locations.
Reads the geometry calling ReadGeometry.
Reads the shapes. For each shape Reads the type. calls ReadGeometry(T,S). Reads the flag, the subshapes.
Reimplemented in BinTools_ShapeSet.
|
inlinevirtual |
An empty virtual method for redefinition in shape-reader.
Reimplemented in BinTools_ShapeSet, and BinTools_ShapeReader.
Define if shape will be stored triangulation with normals. Ignored (always written) if face defines only triangulation (no surface).
Define if shape will be stored with triangles. Ignored (always written) if face defines only triangulation (no surface).
|
inlinevirtual |
Writes on <OS> the shape . Writes the orientation, the index of the TShape and the index of the Location.
Reimplemented in BinTools_ShapeSet, and BinTools_ShapeWriter.
|
inlinevirtual |
Writes the content of me on the stream <OS> in binary format that can be read back by Read.
Writes the locations.
Writes the geometry calling WriteGeometry.
Dumps the shapes from last to first. For each shape: Write the type. calls WriteGeometry(S). Write the flags, the subshapes.
Reimplemented in BinTools_ShapeSet.
|
static |