|
Open CASCADE Technology 6.5.2
|
Writes topology in OStream in binary format
#include <BinTools_ShapeSet.hxx>
Public Member Functions | |
| void * | operator new (size_t, void *anAddress) |
| void * | operator new (size_t size) |
| void | operator delete (void *anAddress) |
| BinTools_ShapeSet (const Standard_Boolean isWithTriangles=Standard_False) | |
| Builds an empty ShapeSet. Parameter <isWithTriangles> is added for XML Persistence | |
| virtual void | Delete () |
| virtual | ~BinTools_ShapeSet () |
| void | SetFormatNb (const Standard_Integer theFormatNb) |
| Standard_Integer | FormatNb () const |
| two formats available for the moment: First: does not write CurveOnSurface UV Points into the file on reading calls Check() method. Second: stores CurveOnSurface UV Points. On reading format is recognized from Version string. | |
| virtual void | Clear () |
| Clears the content of the set. | |
| Standard_Integer | Add (const TopoDS_Shape &S) |
| Stores <S> and its sub-shape. Returns the index of <S>. The method AddGeometry is called on each sub-shape. | |
| const TopoDS_Shape & | Shape (const Standard_Integer I) const |
| Returns the sub-shape of index . | |
| Standard_Integer | Index (const TopoDS_Shape &S) const |
| Returns the index of <S>. | |
| const BinTools_LocationSet & | Locations () const |
| BinTools_LocationSet & | ChangeLocations () |
| Standard_Integer | NbShapes () const |
| Returns number of shapes read from file. | |
| virtual void | Write (Standard_OStream &OS) const |
| 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. | |
| virtual void | Read (Standard_IStream &IS) |
| 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. | |
| virtual void | Write (const TopoDS_Shape &S, Standard_OStream &OS) const |
| Writes on <OS> the shape <S>. Writes the orientation, the index of the TShape and the index of the Location. | |
| virtual void | WriteGeometry (Standard_OStream &OS) const |
| Writes the geometry of me on the stream <OS> in a binary format that can be read back by Read. | |
| virtual void | ReadGeometry (Standard_IStream &IS) |
| Reads the geometry of me from the stream <IS>. | |
| virtual void | Read (TopoDS_Shape &S, Standard_IStream &IS, const Standard_Integer NbShapes) const |
| Reads from <IS> a shape and returns it in S. <NbShapes> is the number of tshapes in the set. | |
| virtual void | WriteGeometry (const TopoDS_Shape &S, Standard_OStream &OS) const |
| Writes the geometry of <S> on the stream <OS> in a binary format that can be read back by Read. | |
| virtual void | ReadGeometry (const TopAbs_ShapeEnum T, Standard_IStream &IS, TopoDS_Shape &S) |
| Reads the geometry of a shape of type <T> from the stream <IS> and returns it in <S>. | |
| virtual void | AddGeometry (const TopoDS_Shape &S) |
| Stores the goemetry of <S>. | |
| virtual void | AddShapes (TopoDS_Shape &S1, const TopoDS_Shape &S2) |
| Inserts the shape <S2> in the shape <S1>. | |
| void | ReadPolygon3D (Standard_IStream &IS) |
| Reads the 3d polygons of me from the stream <IS>. | |
| void | WritePolygon3D (Standard_OStream &OS) const |
| Writes the 3d polygons on the stream <OS> in a format that can be read back by Read. | |
| void | ReadTriangulation (Standard_IStream &IS) |
| Reads the triangulation of me from the stream <IS>. | |
| void | WriteTriangulation (Standard_OStream &OS) const |
| Writes the triangulation on the stream <OS> in a format that can be read back by Read. | |
| void | ReadPolygonOnTriangulation (Standard_IStream &IS) |
| Reads the polygons on triangulation of me from the stream <IS>. | |
| void | WritePolygonOnTriangulation (Standard_OStream &OS) const |
| Writes the polygons on triangulation on the stream <OS> in a format that can be read back by Read. | |
| BinTools_ShapeSet::BinTools_ShapeSet | ( | const Standard_Boolean | isWithTriangles = Standard_False | ) |
| virtual BinTools_ShapeSet::~BinTools_ShapeSet | ( | ) | [inline, virtual] |
| Standard_Integer BinTools_ShapeSet::Add | ( | const TopoDS_Shape & | S | ) |
| virtual void BinTools_ShapeSet::AddGeometry | ( | const TopoDS_Shape & | S | ) | [virtual] |
| virtual void BinTools_ShapeSet::AddShapes | ( | TopoDS_Shape & | S1, |
| const TopoDS_Shape & | S2 | ||
| ) | [virtual] |
| BinTools_LocationSet& BinTools_ShapeSet::ChangeLocations | ( | ) |
| virtual void BinTools_ShapeSet::Clear | ( | ) | [virtual] |
| virtual void BinTools_ShapeSet::Delete | ( | ) | [virtual] |
| Standard_Integer BinTools_ShapeSet::FormatNb | ( | ) | const |
| Standard_Integer BinTools_ShapeSet::Index | ( | const TopoDS_Shape & | S | ) | const |
| const BinTools_LocationSet& BinTools_ShapeSet::Locations | ( | ) | const |
| Standard_Integer BinTools_ShapeSet::NbShapes | ( | ) | const |
| void BinTools_ShapeSet::operator delete | ( | void * | anAddress | ) | [inline] |
| void* BinTools_ShapeSet::operator new | ( | size_t | size | ) | [inline] |
| void* BinTools_ShapeSet::operator new | ( | size_t | , |
| void * | anAddress | ||
| ) | [inline] |
| virtual void BinTools_ShapeSet::Read | ( | TopoDS_Shape & | S, |
| Standard_IStream & | IS, | ||
| const Standard_Integer | NbShapes | ||
| ) | const [virtual] |
| virtual void BinTools_ShapeSet::Read | ( | Standard_IStream & | IS | ) | [virtual] |
| virtual void BinTools_ShapeSet::ReadGeometry | ( | Standard_IStream & | IS | ) | [virtual] |
| virtual void BinTools_ShapeSet::ReadGeometry | ( | const TopAbs_ShapeEnum | T, |
| Standard_IStream & | IS, | ||
| TopoDS_Shape & | S | ||
| ) | [virtual] |
| void BinTools_ShapeSet::ReadPolygon3D | ( | Standard_IStream & | IS | ) |
| void BinTools_ShapeSet::ReadPolygonOnTriangulation | ( | Standard_IStream & | IS | ) |
| void BinTools_ShapeSet::ReadTriangulation | ( | Standard_IStream & | IS | ) |
| void BinTools_ShapeSet::SetFormatNb | ( | const Standard_Integer | theFormatNb | ) |
| const TopoDS_Shape& BinTools_ShapeSet::Shape | ( | const Standard_Integer | I | ) | const |
| virtual void BinTools_ShapeSet::Write | ( | const TopoDS_Shape & | S, |
| Standard_OStream & | OS | ||
| ) | const [virtual] |
| virtual void BinTools_ShapeSet::Write | ( | Standard_OStream & | OS | ) | const [virtual] |
| virtual void BinTools_ShapeSet::WriteGeometry | ( | Standard_OStream & | OS | ) | const [virtual] |
| virtual void BinTools_ShapeSet::WriteGeometry | ( | const TopoDS_Shape & | S, |
| Standard_OStream & | OS | ||
| ) | const [virtual] |
| void BinTools_ShapeSet::WritePolygon3D | ( | Standard_OStream & | OS | ) | const |
| void BinTools_ShapeSet::WritePolygonOnTriangulation | ( | Standard_OStream & | OS | ) | const |
| void BinTools_ShapeSet::WriteTriangulation | ( | Standard_OStream & | OS | ) | const |
1.7.4