// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _TopoDS_Builder_HeaderFile #define _TopoDS_Builder_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Handle_TopoDS_TShape_HeaderFile #include #endif class Standard_NullObject; class TopoDS_FrozenShape; class TopoDS_UnCompatibleShapes; class TopoDS_Shape; class TopoDS_TShape; class TopoDS_Wire; class TopoDS_Shell; class TopoDS_Solid; class TopoDS_CompSolid; class TopoDS_Compound; //! A Builder is used to create Topological Data
//! Structures.
//!
//! There are three groups of methods in the Builder :
//!
//! The Make methods create Shapes.
//!
//! The Add method includes a Shape in another Shape.
//!
//! The Remove method removes a Shape from an other
//! Shape.
//!
//! The methods in Builder are not static. They can be
//! redefined in inherited builders.
class TopoDS_Builder { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Make an empty Wire.
void MakeWire(TopoDS_Wire& W) const; //! Make an empty Shell.
void MakeShell(TopoDS_Shell& S) const; //! Make a Solid covering the whole 3D space.
void MakeSolid(TopoDS_Solid& S) const; //! Make an empty Composite Solid.
void MakeCompSolid(TopoDS_CompSolid& C) const; //! Make an empty Compound.
void MakeCompound(TopoDS_Compound& C) const; //! Add the Shape C in the Shape S.
//! Exceptions
//! - TopoDS_FrozenShape if S is not free and cannot be modified.
//! - TopoDS__UnCompatibleShapes if S and C are not compatible.
Standard_EXPORT void Add(TopoDS_Shape& S,const TopoDS_Shape& C) const; //! Remove the Shape C from the Shape S.
//! Exceptions
//! TopoDS_FrozenShape if S is frozen and cannot be modified.
Standard_EXPORT void Remove(TopoDS_Shape& S,const TopoDS_Shape& C) const; protected: //! The basic method to make a Shape, used by all the
//! Make methods.
Standard_EXPORT void MakeShape(TopoDS_Shape& S,const Handle(TopoDS_TShape)& T) const; private: }; #include // other Inline functions and methods (like "C++: function call" methods) #endif