mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Coding - Apply .clang-format formatting #286
Update empty method guards to new style with regex (see PR). Used clang-format 18.1.8. New actions to validate code formatting is added. Update .clang-format with disabling of include sorting. It is temporary changes, then include will be sorted. Apply formatting for /src and /tools folder. The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
@@ -26,7 +26,6 @@ class TDF_Label;
|
||||
class TopoDS_Shape;
|
||||
class TDF_RelocationTable;
|
||||
|
||||
|
||||
class XCAFDoc_ShapeMapTool;
|
||||
DEFINE_STANDARD_HANDLE(XCAFDoc_ShapeMapTool, TDF_Attribute)
|
||||
|
||||
@@ -35,58 +34,41 @@ class XCAFDoc_ShapeMapTool : public TDF_Attribute
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT static const Standard_GUID& GetID();
|
||||
|
||||
|
||||
//! Create (if not exist) ShapeTool from XCAFDoc on <L>.
|
||||
Standard_EXPORT static Handle(XCAFDoc_ShapeMapTool) Set (const TDF_Label& L);
|
||||
|
||||
Standard_EXPORT static Handle(XCAFDoc_ShapeMapTool) Set(const TDF_Label& L);
|
||||
|
||||
//! Creates an empty tool
|
||||
Standard_EXPORT XCAFDoc_ShapeMapTool();
|
||||
|
||||
|
||||
//! Checks whether shape <sub> is subshape of shape stored on
|
||||
//! label shapeL
|
||||
Standard_EXPORT Standard_Boolean IsSubShape (const TopoDS_Shape& sub) const;
|
||||
|
||||
Standard_EXPORT Standard_Boolean IsSubShape(const TopoDS_Shape& sub) const;
|
||||
|
||||
//! Sets representation (TopoDS_Shape) for top-level shape
|
||||
Standard_EXPORT void SetShape (const TopoDS_Shape& S);
|
||||
|
||||
Standard_EXPORT void SetShape(const TopoDS_Shape& S);
|
||||
|
||||
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with) Standard_OVERRIDE;
|
||||
|
||||
|
||||
Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,
|
||||
const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT const TopTools_IndexedMapOfShape& GetMap() const;
|
||||
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
|
||||
Standard_Integer theDepth = -1) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(XCAFDoc_ShapeMapTool,TDF_Attribute)
|
||||
DEFINE_STANDARD_RTTIEXT(XCAFDoc_ShapeMapTool, TDF_Attribute)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
TopTools_IndexedMapOfShape myMap;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _XCAFDoc_ShapeMapTool_HeaderFile
|
||||
|
Reference in New Issue
Block a user