0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / SelectMgr / SelectMgr_SensitiveEntity.cxx
1 // Created on: 2014-08-15
2 // Created by: Varvara POSKONINA
3 // Copyright (c) 2005-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <SelectMgr_SensitiveEntity.hxx>
17
18
19 IMPLEMENT_STANDARD_RTTIEXT(SelectMgr_SensitiveEntity,Standard_Transient)
20
21 //=======================================================================
22 // function : SelectMgr_SensitiveEntity
23 // purpose  : Creates new inactive for selection object with base entity
24 //            theEntity
25 //=======================================================================
26 SelectMgr_SensitiveEntity::SelectMgr_SensitiveEntity (const Handle(Select3D_SensitiveEntity)& theEntity)
27 : mySensitive (theEntity),
28   myIsActiveForSelection (Standard_False)
29 {
30   //
31 }
32
33 //=======================================================================
34 // function : Clear
35 // purpose  : Clears up all the resources and memory
36 //=======================================================================
37 void SelectMgr_SensitiveEntity::Clear()
38 {
39   mySensitive->Clear();
40   mySensitive.Nullify();
41 }
42
43 // =======================================================================
44 // function : DumpJson
45 // purpose  :
46 // =======================================================================
47 void SelectMgr_SensitiveEntity::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
48 {
49   OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
50
51   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySensitive.get())
52   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myIsActiveForSelection)
53 }