// 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 _TNaming_Scope_HeaderFile #define _TNaming_Scope_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _TDF_LabelMap_HeaderFile #include #endif #ifndef _Handle_TNaming_NamedShape_HeaderFile #include #endif class TDF_LabelMap; class TDF_Label; class TopoDS_Shape; class TNaming_NamedShape; //! this class manage a scope of labels
//! ===================================
class TNaming_Scope { 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); } //! WithValid = FALSE
Standard_EXPORT TNaming_Scope(); //! if the scope is defined by the map. If not
//! on the whole framework.
Standard_EXPORT TNaming_Scope(const Standard_Boolean WithValid); //! create a scope with a map. WithValid = TRUE.
Standard_EXPORT TNaming_Scope(TDF_LabelMap& valid); Standard_EXPORT Standard_Boolean WithValid() const; Standard_EXPORT void WithValid(const Standard_Boolean mode) ; Standard_EXPORT void ClearValid() ; Standard_EXPORT void Valid(const TDF_Label& L) ; Standard_EXPORT void ValidChildren(const TDF_Label& L,const Standard_Boolean withroot = Standard_True) ; Standard_EXPORT void Unvalid(const TDF_Label& L) ; Standard_EXPORT void UnvalidChildren(const TDF_Label& L,const Standard_Boolean withroot = Standard_True) ; Standard_EXPORT Standard_Boolean IsValid(const TDF_Label& L) const; Standard_EXPORT const TDF_LabelMap& GetValid() const; Standard_EXPORT TDF_LabelMap& ChangeValid() ; //! Returns the current value of according to the
//! Valid Scope.
Standard_EXPORT TopoDS_Shape CurrentShape(const Handle(TNaming_NamedShape)& NS) const; protected: private: Standard_Boolean myWithValid; TDF_LabelMap myValid; }; // other Inline functions and methods (like "C++: function call" methods) #endif