1 // Created on: 2000-10-05
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _STEPCAFControl_ActorWrite_HeaderFile
17 #define _STEPCAFControl_ActorWrite_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
22 #include <Standard_Boolean.hxx>
23 #include <TopTools_MapOfShape.hxx>
24 #include <STEPControl_ActorWrite.hxx>
28 class STEPCAFControl_ActorWrite;
29 DEFINE_STANDARD_HANDLE(STEPCAFControl_ActorWrite, STEPControl_ActorWrite)
31 //! Extends ActorWrite from STEPControl by analysis of
32 //! whether shape is assembly (based on information from DECAF)
33 class STEPCAFControl_ActorWrite : public STEPControl_ActorWrite
39 Standard_EXPORT STEPCAFControl_ActorWrite();
41 //! Check whether shape S is assembly
42 //! Returns True if shape is registered in assemblies map
43 Standard_EXPORT virtual Standard_Boolean IsAssembly (TopoDS_Shape& S) const Standard_OVERRIDE;
45 //! Set standard mode of work
46 //! In standard mode Actor (default) behaves exactly as its
47 //! ancestor, also map is cleared
48 Standard_EXPORT void SetStdMode (const Standard_Boolean stdmode = Standard_True);
50 //! Clears map of shapes registered as assemblies
51 Standard_EXPORT void ClearMap();
53 //! Registers shape to be written as assembly
54 //! The shape should be TopoDS_Compound (else does nothing)
55 Standard_EXPORT void RegisterAssembly (const TopoDS_Shape& S);
60 DEFINE_STANDARD_RTTIEXT(STEPCAFControl_ActorWrite,STEPControl_ActorWrite)
70 Standard_Boolean myStdMode;
71 TopTools_MapOfShape myMap;
82 #endif // _STEPCAFControl_ActorWrite_HeaderFile