0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / TransferBRep / TransferBRep_BinderOfShape.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
15 #include <Standard_Type.hxx>
16 #include <TopoDS_Shape.hxx>
17 #include <Transfer_TransferFailure.hxx>
18 #include <TransferBRep_BinderOfShape.hxx>
19 #include <TransferBRep_ShapeInfo.hxx>
20
21 IMPLEMENT_STANDARD_RTTIEXT(TransferBRep_BinderOfShape,Transfer_Binder)
22
23 TransferBRep_BinderOfShape::TransferBRep_BinderOfShape (){ }
24
25 TransferBRep_BinderOfShape::TransferBRep_BinderOfShape (const TopoDS_Shape& res)
26 : theres (res)
27 { SetResultPresent();  }
28
29
30 //    Standard_Boolean  TransferBRep_BinderOfShape::IsMultiple() const
31 //      {  return Standard_False;  }
32
33
34 Handle(Standard_Type)  TransferBRep_BinderOfShape::ResultType () const
35 {  return  TransferBRep_ShapeInfo::Type (theres);  }  // correspond a "STANDARD_TYPE(TopoDS_Shape)"
36
37 Standard_CString  TransferBRep_BinderOfShape::ResultTypeName () const
38 {  return  TransferBRep_ShapeInfo::TypeName (theres);  }  // correspond a "STANDARD_TYPE(TopoDS_Shape)"
39
40
41 void  TransferBRep_BinderOfShape::SetResult (const TopoDS_Shape& res)
42 {
43   SetResultPresent();
44   theres = res;
45 }
46
47 const TopoDS_Shape&  TransferBRep_BinderOfShape::Result () const
48 {  return theres;  }
49
50 TopoDS_Shape&  TransferBRep_BinderOfShape::CResult ()
51 {  SetResultPresent(); return theres;  }