Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
BRepTools_ShapeSet Class Reference

Contains a Shape and all its subshapes, locations
and geometries.

The topology is inherited from TopTools.
More...

#include <BRepTools_ShapeSet.hxx>

Inheritance diagram for BRepTools_ShapeSet:
Inheritance graph
[legend]

Public Member Functions

 BRepTools_ShapeSet (const Standard_Boolean isWithTriangles=Standard_True)
 Builds an empty ShapeSet.
Parameter <isWithTriangles> is added for XML Persistence
More...
 
 BRepTools_ShapeSet (const BRep_Builder &B, const Standard_Boolean isWithTriangles=Standard_True)
 Builds an empty ShapeSet.
Parameter <isWithTriangles> is added for XML Persistence
More...
 
virtual void Clear ()
 Clears the content of the set.
More...
 
virtual void AddGeometry (const TopoDS_Shape &S)
 Stores the goemetry of <S>.
More...
 
virtual void DumpGeometry (Standard_OStream &OS) const
 Dumps the geometry of me on the stream <OS>.
More...
 
virtual void WriteGeometry (Standard_OStream &OS)
 Writes the geometry of me on the stream <OS> in a
format that can be read back by Read.
More...
 
virtual void ReadGeometry (Standard_IStream &IS)
 Reads the geometry of me from the stream <IS>.
More...
 
virtual void DumpGeometry (const TopoDS_Shape &S, Standard_OStream &OS) const
 Dumps the geometry of <S> on the stream <OS>.
More...
 
virtual void WriteGeometry (const TopoDS_Shape &S, Standard_OStream &OS) const
 Writes the geometry of <S> on the stream <OS> in a
format that can be read back by Read.
More...
 
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>.
More...
 
virtual void AddShapes (TopoDS_Shape &S1, const TopoDS_Shape &S2)
 Inserts the shape <S2> in the shape <S1>. This
method must be redefined to use the correct
builder.
More...
 
virtual void Check (const TopAbs_ShapeEnum T, TopoDS_Shape &S)
 This method is called after each new completed
shape. <T> is the type. <S> is the shape. In this
class it does nothing, but it gives the opportunity
in derived classes to perform extra treatment on
shapes.
More...
 
void ReadPolygon3D (Standard_IStream &IS)
 Reads the 3d polygons of me
from the stream <IS>.
More...
 
void WritePolygon3D (Standard_OStream &OS, const Standard_Boolean Compact=Standard_True) const
 Writes the 3d polygons
on the stream <OS> in a format that can
be read back by Read.
More...
 
void DumpPolygon3D (Standard_OStream &OS) const
 Dumps the 3d polygons
on the stream <OS>.
More...
 
void ReadTriangulation (Standard_IStream &IS)
 Reads the triangulation of me
from the stream <IS>.
More...
 
void WriteTriangulation (Standard_OStream &OS, const Standard_Boolean Compact=Standard_True) const
 Writes the triangulation
on the stream <OS> in a format that can
be read back by Read.
More...
 
void DumpTriangulation (Standard_OStream &OS) const
 Dumps the triangulation
on the stream <OS>.
More...
 
void ReadPolygonOnTriangulation (Standard_IStream &IS)
 Reads the polygons on triangulation of me
from the stream <IS>.
More...
 
void WritePolygonOnTriangulation (Standard_OStream &OS, const Standard_Boolean Compact=Standard_True) const
 Writes the polygons on triangulation
on the stream <OS> in a format that can
be read back by Read.
More...
 
void DumpPolygonOnTriangulation (Standard_OStream &OS) const
 Dumps the polygons on triangulation
on the stream <OS>.
More...
 
- Public Member Functions inherited from TopTools_ShapeSet
 TopTools_ShapeSet ()
 Builds an empty ShapeSet.
More...
 
virtual void Delete ()
 
virtual ~TopTools_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.
More...
 
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.
More...
 
const TopoDS_ShapeShape (const Standard_Integer I) const
 
 Returns the sub-shape of index <I>. <br>


More...

 
Standard_Integer Index (const TopoDS_Shape &S) const
 Returns the index of <S>.
More...
 
const TopTools_LocationSetLocations () const
 
TopTools_LocationSetChangeLocations ()
 
Standard_OStreamDumpExtent (Standard_OStream &OS) const
 
 Dumps the number of objects in me on the stream <OS>. <br>

(Number of shapes of each type)
More...

 
void DumpExtent (TCollection_AsciiString &S) const
 
 Dumps the number of objects in me in the string S <br>

(Number of shapes of each type)
More...

 
virtual void Dump (Standard_OStream &OS) const
 
 Dumps the content of me on the stream <OS>. <br>


Dumps the shapes from first to last.
For each Shape
Dump the type, the flags, the subshapes
calls DumpGeometry(S)


Dumps the geometry calling DumpGeometry.

Dumps the locations.
More...

 
virtual void Write (Standard_OStream &OS)
 
 Writes the content of  me  on the stream <OS> in a <br>
     format that can be read back by Read. <br>


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.
More...

 
virtual void Read (Standard_IStream &IS)
 
 Reads the content of me from the  stream  <IS>. me <br>
     is first cleared. <br>


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.
More...

 
void Dump (const TopoDS_Shape &S, Standard_OStream &OS) const
 Dumps on <OS> the shape <S>. Dumps the
orientation, the index of the TShape and the index
of the Location.
More...
 
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.
More...
 
void Read (TopoDS_Shape &S, Standard_IStream &IS) const
 Reads from <IS> a shape and returns it in S.
More...
 
Standard_Integer NbShapes () const
 Returns number of shapes read from file.
More...
 
void SetProgress (const Handle< Message_ProgressIndicator > &PR)
 
Handle_Message_ProgressIndicator GetProgress () const
 

Detailed Description

Contains a Shape and all its subshapes, locations
and geometries.

The topology is inherited from TopTools.

Constructor & Destructor Documentation

BRepTools_ShapeSet::BRepTools_ShapeSet ( const Standard_Boolean  isWithTriangles = Standard_True)

Builds an empty ShapeSet.
Parameter <isWithTriangles> is added for XML Persistence

BRepTools_ShapeSet::BRepTools_ShapeSet ( const BRep_Builder B,
const Standard_Boolean  isWithTriangles = Standard_True 
)

Builds an empty ShapeSet.
Parameter <isWithTriangles> is added for XML Persistence

Member Function Documentation

virtual void BRepTools_ShapeSet::AddGeometry ( const TopoDS_Shape S)
virtual

Stores the goemetry of <S>.

Reimplemented from TopTools_ShapeSet.

virtual void BRepTools_ShapeSet::AddShapes ( TopoDS_Shape S1,
const TopoDS_Shape S2 
)
virtual

Inserts the shape <S2> in the shape <S1>. This
method must be redefined to use the correct
builder.

Reimplemented from TopTools_ShapeSet.

virtual void BRepTools_ShapeSet::Check ( const TopAbs_ShapeEnum  T,
TopoDS_Shape S 
)
virtual

This method is called after each new completed
shape. <T> is the type. <S> is the shape. In this
class it does nothing, but it gives the opportunity
in derived classes to perform extra treatment on
shapes.

Reimplemented from TopTools_ShapeSet.

virtual void BRepTools_ShapeSet::Clear ( )
virtual

Clears the content of the set.

Reimplemented from TopTools_ShapeSet.

virtual void BRepTools_ShapeSet::DumpGeometry ( Standard_OStream OS) const
virtual

Dumps the geometry of me on the stream <OS>.

Reimplemented from TopTools_ShapeSet.

virtual void BRepTools_ShapeSet::DumpGeometry ( const TopoDS_Shape S,
Standard_OStream OS 
) const
virtual

Dumps the geometry of <S> on the stream <OS>.

Reimplemented from TopTools_ShapeSet.

void BRepTools_ShapeSet::DumpPolygon3D ( Standard_OStream OS) const

Dumps the 3d polygons
on the stream <OS>.

void BRepTools_ShapeSet::DumpPolygonOnTriangulation ( Standard_OStream OS) const

Dumps the polygons on triangulation
on the stream <OS>.

void BRepTools_ShapeSet::DumpTriangulation ( Standard_OStream OS) const

Dumps the triangulation
on the stream <OS>.

virtual void BRepTools_ShapeSet::ReadGeometry ( Standard_IStream IS)
virtual

Reads the geometry of me from the stream <IS>.

Reimplemented from TopTools_ShapeSet.

virtual void BRepTools_ShapeSet::ReadGeometry ( const TopAbs_ShapeEnum  T,
Standard_IStream IS,
TopoDS_Shape S 
)
virtual

Reads the geometry of a shape of type <T> from the
stream <IS> and returns it in <S>.

Reimplemented from TopTools_ShapeSet.

void BRepTools_ShapeSet::ReadPolygon3D ( Standard_IStream IS)

Reads the 3d polygons of me
from the stream <IS>.

void BRepTools_ShapeSet::ReadPolygonOnTriangulation ( Standard_IStream IS)

Reads the polygons on triangulation of me
from the stream <IS>.

void BRepTools_ShapeSet::ReadTriangulation ( Standard_IStream IS)

Reads the triangulation of me
from the stream <IS>.

virtual void BRepTools_ShapeSet::WriteGeometry ( Standard_OStream OS)
virtual

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

Reimplemented from TopTools_ShapeSet.

virtual void BRepTools_ShapeSet::WriteGeometry ( const TopoDS_Shape S,
Standard_OStream OS 
) const
virtual

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

Reimplemented from TopTools_ShapeSet.

void BRepTools_ShapeSet::WritePolygon3D ( Standard_OStream OS,
const Standard_Boolean  Compact = Standard_True 
) const

Writes the 3d polygons
on the stream <OS> in a format that can
be read back by Read.

void BRepTools_ShapeSet::WritePolygonOnTriangulation ( Standard_OStream OS,
const Standard_Boolean  Compact = Standard_True 
) const

Writes the polygons on triangulation
on the stream <OS> in a format that can
be read back by Read.

void BRepTools_ShapeSet::WriteTriangulation ( Standard_OStream OS,
const Standard_Boolean  Compact = Standard_True 
) const

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


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