OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKBRep
BRepTools


BRepTools_ShapeSet Class Reference

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

The topology is inherited from TopTools.
.

#include <BRepTools_ShapeSet.hxx>

Inheritance diagram for BRepTools_ShapeSet:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepTools_ShapeSet (const Standard_Boolean isWithTriangles=Standard_True)
 Builds an empty ShapeSet.
Parameter <iswithtriangles> is added for XML Persistence
.
Standard_EXPORT BRepTools_ShapeSet (const BRep_Builder &B, const Standard_Boolean isWithTriangles=Standard_True)
 Builds an empty ShapeSet.
Parameter <iswithtriangles> is added for XML Persistence
.
virtual Standard_EXPORT void Clear ()
 Clears the content of the set.
.
virtual Standard_EXPORT void AddGeometry (const TopoDS_Shape &S)
 Stores the goemetry of <s>.
.
virtual Standard_EXPORT void DumpGeometry (Standard_OStream &OS) const
 Dumps the geometry of me on the stream <os>.
.
virtual Standard_EXPORT void WriteGeometry (Standard_OStream &OS)
 Writes the geometry of me on the stream <os> in a
format that can be read back by Read.
.
virtual Standard_EXPORT void ReadGeometry (Standard_IStream &IS)
 Reads the geometry of me from the stream <is>.
.
virtual Standard_EXPORT void DumpGeometry (const TopoDS_Shape &S, Standard_OStream &OS) const
 Dumps the geometry of <s> on the stream <os>.
.
virtual Standard_EXPORT 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.
.
virtual Standard_EXPORT 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 Standard_EXPORT 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.
.
virtual Standard_EXPORT 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.
.
Standard_EXPORT void ReadPolygon3D (Standard_IStream &IS)
 Reads the 3d polygons of me
from the stream <is>.
.
Standard_EXPORT 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.
.
Standard_EXPORT void DumpPolygon3D (Standard_OStream &OS) const
 Dumps the 3d polygons
on the stream <os>.
.
Standard_EXPORT void ReadTriangulation (Standard_IStream &IS)
 Reads the triangulation of me
from the stream <is>.
.
Standard_EXPORT 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.
.
Standard_EXPORT void DumpTriangulation (Standard_OStream &OS) const
 Dumps the triangulation
on the stream <os>.
.
Standard_EXPORT void ReadPolygonOnTriangulation (Standard_IStream &IS)
 Reads the polygons on triangulation of me
from the stream <is>.
.
Standard_EXPORT 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.
.
Standard_EXPORT void DumpPolygonOnTriangulation (Standard_OStream &OS) const
 Dumps the polygons on triangulation
on the stream <os>.
.

Private Attributes

BRep_Builder myBuilder
GeomTools_SurfaceSet mySurfaces
GeomTools_CurveSet myCurves
GeomTools_Curve2dSet myCurves2d
TColStd_IndexedMapOfTransient myPolygons2D
TColStd_IndexedMapOfTransient myPolygons3D
TColStd_IndexedMapOfTransient myTriangulations
TColStd_IndexedMapOfTransient myNodes
Standard_Boolean myWithTriangles

Constructor & Destructor Documentation

Standard_EXPORT BRepTools_ShapeSet::BRepTools_ShapeSet const Standard_Boolean  isWithTriangles = Standard_True  ) 
 

Standard_EXPORT BRepTools_ShapeSet::BRepTools_ShapeSet const BRep_Builder B,
const Standard_Boolean  isWithTriangles = Standard_True
 


Member Function Documentation

virtual Standard_EXPORT void BRepTools_ShapeSet::AddGeometry const TopoDS_Shape S  )  [virtual]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::AddShapes TopoDS_Shape S1,
const TopoDS_Shape S2
[virtual]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::Check const TopAbs_ShapeEnum  T,
TopoDS_Shape S
[virtual]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::Clear  )  [virtual]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::DumpGeometry const TopoDS_Shape S,
Standard_OStream &  OS
const [virtual]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::DumpGeometry Standard_OStream &  OS  )  const [virtual]
 

Reimplemented from TopTools_ShapeSet.

Standard_EXPORT void BRepTools_ShapeSet::DumpPolygon3D Standard_OStream &  OS  )  const
 

Standard_EXPORT void BRepTools_ShapeSet::DumpPolygonOnTriangulation Standard_OStream &  OS  )  const
 

Standard_EXPORT void BRepTools_ShapeSet::DumpTriangulation Standard_OStream &  OS  )  const
 

void BRepTools_ShapeSet::operator delete void *  anAddress  )  [inline]
 

Reimplemented from TopTools_ShapeSet.

void* BRepTools_ShapeSet::operator new size_t  size  )  [inline]
 

Reimplemented from TopTools_ShapeSet.

void* BRepTools_ShapeSet::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::ReadGeometry const TopAbs_ShapeEnum  T,
Standard_IStream &  IS,
TopoDS_Shape S
[virtual]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::ReadGeometry Standard_IStream &  IS  )  [virtual]
 

Reimplemented from TopTools_ShapeSet.

Standard_EXPORT void BRepTools_ShapeSet::ReadPolygon3D Standard_IStream &  IS  ) 
 

Standard_EXPORT void BRepTools_ShapeSet::ReadPolygonOnTriangulation Standard_IStream &  IS  ) 
 

Standard_EXPORT void BRepTools_ShapeSet::ReadTriangulation Standard_IStream &  IS  ) 
 

virtual Standard_EXPORT void BRepTools_ShapeSet::WriteGeometry const TopoDS_Shape S,
Standard_OStream &  OS
const [virtual]
 

Reimplemented from TopTools_ShapeSet.

virtual Standard_EXPORT void BRepTools_ShapeSet::WriteGeometry Standard_OStream &  OS  )  [virtual]
 

Reimplemented from TopTools_ShapeSet.

Standard_EXPORT void BRepTools_ShapeSet::WritePolygon3D Standard_OStream &  OS,
const Standard_Boolean  Compact = Standard_True
const
 

Standard_EXPORT void BRepTools_ShapeSet::WritePolygonOnTriangulation Standard_OStream &  OS,
const Standard_Boolean  Compact = Standard_True
const
 

Standard_EXPORT void BRepTools_ShapeSet::WriteTriangulation Standard_OStream &  OS,
const Standard_Boolean  Compact = Standard_True
const
 


Field Documentation

BRep_Builder BRepTools_ShapeSet::myBuilder [private]
 

GeomTools_CurveSet BRepTools_ShapeSet::myCurves [private]
 

GeomTools_Curve2dSet BRepTools_ShapeSet::myCurves2d [private]
 

TColStd_IndexedMapOfTransient BRepTools_ShapeSet::myNodes [private]
 

TColStd_IndexedMapOfTransient BRepTools_ShapeSet::myPolygons2D [private]
 

TColStd_IndexedMapOfTransient BRepTools_ShapeSet::myPolygons3D [private]
 

GeomTools_SurfaceSet BRepTools_ShapeSet::mySurfaces [private]
 

TColStd_IndexedMapOfTransient BRepTools_ShapeSet::myTriangulations [private]
 

Standard_Boolean BRepTools_ShapeSet::myWithTriangles [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:35 2008 for OpenCASCADE by  doxygen 1.4.1