// 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_Tool_HeaderFile #define _TNaming_Tool_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Handle_TNaming_NamedShape_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_TNaming_UsedShapes_HeaderFile #include #endif class TNaming_Localizer; class TNaming_NamedShape; class TNaming_OldShapeIterator; class TopoDS_Shape; class TDF_LabelMap; class TDF_Label; class TNaming_MapOfNamedShape; class TDF_LabelList; class TNaming_UsedShapes; class TopTools_MapOfShape; //! A tool to get information on the topology of a
//! named shape attribute.
//! This information is typically a TopoDS_Shape object.
//! Using this tool, relations between named shapes
//! are also accessible.
class TNaming_Tool { 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); } //! Returns the last Modification of .
//! Returns the shape CurrentShape contained in
//! the named shape attribute NS.
//! CurrentShape is the current state of the entities
//! if they have been modified in other attributes of the same data structure.
//! Each call to this function creates a new compound.
Standard_EXPORT static TopoDS_Shape CurrentShape(const Handle(TNaming_NamedShape)& NS) ; //! Returns the shape CurrentShape contained in
//! the named shape attribute NS, and present in
//! the updated attribute map Updated.
//! CurrentShape is the current state of the entities
//! if they have been modified in other attributes of the same data structure.
//! Each call to this function creates a new compound.
//! Warning
//! Only the contents of Updated are searched.R
Standard_EXPORT static TopoDS_Shape CurrentShape(const Handle(TNaming_NamedShape)& NS,const TDF_LabelMap& Updated) ; //! Returns the NamedShape of the last Modification of .
//! This shape is identified by a label.
Standard_EXPORT static Handle_TNaming_NamedShape CurrentNamedShape(const Handle(TNaming_NamedShape)& NS,const TDF_LabelMap& Updated) ; //! Returns NamedShape the last Modification of .
Standard_EXPORT static Handle_TNaming_NamedShape CurrentNamedShape(const Handle(TNaming_NamedShape)& NS) ; //! Returns the named shape attribute defined by
//! the shape aShape and the label anAccess.
//! This attribute is returned as a new shape.
//! You call this function, if you need to create a
//! topological attribute for existing data.
//! Example
//! class MyPkg_MyClass
//! {
//! public: Standard_Boolean
//! SameEdge(const
//! Handle(OCafTest_Line)& , const
//! Handle(CafTest_Line)& );
//! };
Standard_EXPORT static Handle_TNaming_NamedShape NamedShape(const TopoDS_Shape& aShape,const TDF_Label& anAcces) ; //! Returns the entities stored in the named shape attribute NS.
//! If there is only one old-new pair, the new shape
//! is returned. Otherwise, a Compound is returned.
//! This compound is made out of all the new shapes found.
//! Each call to this function creates a new compound.
Standard_EXPORT static TopoDS_Shape GetShape(const Handle(TNaming_NamedShape)& NS) ; //! Returns the shape contained as OldShape in
Standard_EXPORT static TopoDS_Shape OriginalShape(const Handle(TNaming_NamedShape)& NS) ; //! Returns the shape generated from S or by a
//! modification of S and contained in the named
//! shape Generation.
Standard_EXPORT static TopoDS_Shape GeneratedShape(const TopoDS_Shape& S,const Handle(TNaming_NamedShape)& Generation) ; Standard_EXPORT static void Collect(const Handle(TNaming_NamedShape)& NS,TNaming_MapOfNamedShape& Labels,const Standard_Boolean OnlyModif = Standard_True) ; //! Returns True if appears under a label.(DP)
Standard_EXPORT static Standard_Boolean HasLabel(const TDF_Label& access,const TopoDS_Shape& aShape) ; //! Returns the label of the first apparition of
//! . Transdef is a value of the transaction
//! of the first apparition of .
Standard_EXPORT static TDF_Label Label(const TDF_Label& access,const TopoDS_Shape& aShape,Standard_Integer& TransDef) ; //! Returns the shape created from the shape
//! aShape contained in the attribute anAcces.
Standard_EXPORT static TopoDS_Shape InitialShape(const TopoDS_Shape& aShape,const TDF_Label& anAcces,TDF_LabelList& Labels) ; //! Returns the last transaction where the creation of S
//! is valid.
Standard_EXPORT static Standard_Integer ValidUntil(const TDF_Label& access,const TopoDS_Shape& S) ; //! Returns the current shape (a Wire or a Shell) built (in the data framework)
//! from the the shapes of the argument named shape.
//! It is used for IDENTITY name type computation.
Standard_EXPORT static void FindShape(const TDF_LabelMap& Valid,const TDF_LabelMap& Forbiden,const Handle(TNaming_NamedShape)& Arg,TopoDS_Shape& S) ; friend class TNaming_Localizer; friend class TNaming_NamedShape; friend class TNaming_OldShapeIterator; protected: private: //! Returns True if appears under a label.
Standard_EXPORT static Standard_Boolean HasLabel(const Handle(TNaming_UsedShapes)& Shapes,const TopoDS_Shape& aShape) ; //! Returns the last transaction where the creation of S
//! is valid.
Standard_EXPORT static Standard_Integer ValidUntil(const TopoDS_Shape& S,const Handle(TNaming_UsedShapes)& US) ; //! Returns the label of the first apparition of
//! . Transdef is a value of the transaction
//! of the first apparition of .
Standard_EXPORT static TDF_Label Label(const Handle(TNaming_UsedShapes)& Shapes,const TopoDS_Shape& aShape,Standard_Integer& TransDef) ; Standard_EXPORT static void FirstOlds(const Handle(TNaming_UsedShapes)& Shapes,const TopoDS_Shape& S,TNaming_OldShapeIterator& it,TopTools_MapOfShape& MS,TDF_LabelList& Labels) ; }; // other Inline functions and methods (like "C++: function call" methods) #endif