// 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 _BRepTools_Substitution_HeaderFile #define _BRepTools_Substitution_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TopTools_DataMapOfShapeListOfShape_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class Standard_NoSuchObject; class TopoDS_Shape; class TopTools_ListOfShape; //! A tool to substitute subshapes by other shapes.
//!
//!
//! The user use the method Substitute to define the
//! modifications.
//! A set of shapes is designated to replace a initial
//! shape.
class BRepTools_Substitution { 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); } Standard_EXPORT BRepTools_Substitution(); //! Reset all the fields.
Standard_EXPORT void Clear() ; //! will be replaced by .
//!
//! can be empty , in this case
//! will disparate from its ancestors.
//!
//! if an item of is oriented FORWARD.
//! it will be oriented as in its ancestors.
//! else it will be reversed.
Standard_EXPORT void Substitute(const TopoDS_Shape& OldShape,const TopTools_ListOfShape& NewShapes) ; //! Build NewShape from if its subshapes has modified.
//!
//! The methods and allows you to keep
//! the resul of
Standard_EXPORT void Build(const TopoDS_Shape& S) ; //! Returns True if has been replaced .
Standard_EXPORT Standard_Boolean IsCopied(const TopoDS_Shape& S) const; //! Returns the set of shapes substitued to .
Standard_EXPORT const TopTools_ListOfShape& Copy(const TopoDS_Shape& S) const; protected: private: TopTools_DataMapOfShapeListOfShape myMap; }; // other Inline functions and methods (like "C++: function call" methods) #endif