0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / GeomFill / GeomFill_TrihedronLaw.cxx
1 // Created on: 1997-12-05
2 // Created by: Philippe MANGIN
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <Adaptor3d_HCurve.hxx>
19 #include <GeomFill_TrihedronLaw.hxx>
20 #include <gp_Vec.hxx>
21 #include <Standard_NotImplemented.hxx>
22 #include <Standard_OutOfRange.hxx>
23 #include <Standard_Type.hxx>
24
25 IMPLEMENT_STANDARD_RTTIEXT(GeomFill_TrihedronLaw,MMgt_TShared)
26
27 void GeomFill_TrihedronLaw::SetCurve(const Handle(Adaptor3d_HCurve)& C) 
28 {
29   myCurve = C;
30   myTrimmed = myCurve;
31 }
32
33 //==================================================================
34 //Function : ErrorStatus
35 //Purpose :
36 //==================================================================
37  GeomFill_PipeError GeomFill_TrihedronLaw::ErrorStatus() const
38 {
39   return GeomFill_PipeOk;
40 }
41
42  Standard_Boolean GeomFill_TrihedronLaw::D1(const Standard_Real,
43                                             gp_Vec& ,gp_Vec&,gp_Vec&,
44                                             gp_Vec&,gp_Vec&,gp_Vec& ) 
45 {
46   Standard_NotImplemented::Raise(" GeomFill_TrihedronLaw::D2");
47   return Standard_False; 
48 }
49
50  Standard_Boolean GeomFill_TrihedronLaw::D2(const Standard_Real,
51                                             gp_Vec& ,gp_Vec&,gp_Vec&,
52                                             gp_Vec& ,gp_Vec&,gp_Vec&,
53                                             gp_Vec&,gp_Vec& ,gp_Vec&) 
54 {
55   Standard_NotImplemented::Raise(" GeomFill_TrihedronLaw::D2");
56   return Standard_False;
57 }
58
59 void GeomFill_TrihedronLaw::SetInterval(const Standard_Real First,
60                                          const Standard_Real Last) 
61 {
62  myTrimmed = myCurve->Trim(First, Last, 0);  
63 }
64
65  void GeomFill_TrihedronLaw::GetInterval(Standard_Real& First,
66                                          Standard_Real& Last) 
67 {
68   First =  myTrimmed->FirstParameter();
69   Last  =  myTrimmed->LastParameter();
70 }
71
72  Standard_Boolean GeomFill_TrihedronLaw::IsConstant() const
73 {
74   return Standard_False;
75 }
76
77  Standard_Boolean GeomFill_TrihedronLaw::IsOnlyBy3dCurve() const
78 {
79   return Standard_False;
80 }