Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/IntCurveSurface_HCurveTool.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1992-10-22
0002 // Created by: Laurent BUCHARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #include CurveGen_hxx
0018 
0019 #include <GeomAbs_CurveType.hxx>
0020 #include <GeomAbs_Shape.hxx>
0021 
0022 #include <gp_Vec.hxx>
0023 #include <gp_Lin.hxx>
0024 #include <gp_Circ.hxx>
0025 #include <gp_Elips.hxx>
0026 #include <gp_Parab.hxx>
0027 #include <gp_Hypr.hxx>
0028 
0029 
0030 #include <Geom_BezierCurve.hxx>
0031 #include <Geom_BSplineCurve.hxx>
0032 
0033 #include <TColStd_Array1OfReal.hxx>
0034 
0035 //============================================================
0036 inline Standard_Real IntCurveSurface_HCurveTool::FirstParameter (const CurveGen& C) {
0037   return(C->FirstParameter());
0038 }
0039 //============================================================
0040 inline Standard_Real IntCurveSurface_HCurveTool::LastParameter (const CurveGen& C) {
0041   return(C->LastParameter());
0042 }
0043 //============================================================
0044 inline GeomAbs_Shape IntCurveSurface_HCurveTool::Continuity (const CurveGen& C) {
0045   return(C->Continuity());
0046 }
0047 //============================================================
0048 inline Standard_Integer IntCurveSurface_HCurveTool::NbIntervals(const CurveGen& C,const GeomAbs_Shape Sh) {
0049   return(C->NbIntervals(Sh));
0050 }
0051 //============================================================
0052 inline void IntCurveSurface_HCurveTool::Intervals(const CurveGen& C,
0053                                                              TColStd_Array1OfReal& Tab,
0054                                                              const GeomAbs_Shape Sh) {
0055   C->Intervals(Tab,Sh);
0056 }
0057 //============================================================
0058 inline Standard_Boolean IntCurveSurface_HCurveTool::IsClosed(const CurveGen& C) {
0059   return(C->IsClosed());
0060 }
0061 //============================================================
0062 inline Standard_Boolean IntCurveSurface_HCurveTool::IsPeriodic(const CurveGen& C) {
0063   return(C->IsPeriodic());
0064 }
0065 //============================================================
0066 inline Standard_Real IntCurveSurface_HCurveTool::Period(const CurveGen& C) {
0067   return(C->Period());
0068 }
0069 //============================================================
0070 inline gp_Pnt IntCurveSurface_HCurveTool::Value (const CurveGen& C,
0071                                                 const Standard_Real U) {
0072   return(C->Value(U));
0073 }
0074 //============================================================
0075 inline void IntCurveSurface_HCurveTool::D0(const CurveGen& C,
0076                                           const Standard_Real U,
0077                                           gp_Pnt& P) {
0078   C->D0(U,P);
0079 }
0080 //============================================================
0081 inline void IntCurveSurface_HCurveTool::D1 (const CurveGen& C,
0082                                            const Standard_Real U,
0083                                            gp_Pnt& P,
0084                                            gp_Vec& T) {
0085   C->D1(U,P,T);
0086 }
0087 //============================================================
0088 inline void IntCurveSurface_HCurveTool::D2 (const CurveGen& C,
0089                                            const Standard_Real U,
0090                                            gp_Pnt& P,
0091                                            gp_Vec& T,
0092                                            gp_Vec& N) {
0093   
0094   C->D2(U,P,T,N);
0095 }
0096 //============================================================
0097 inline void IntCurveSurface_HCurveTool::D3 (const CurveGen& C,
0098                                            const Standard_Real U,
0099                                            gp_Pnt& P,
0100                                            gp_Vec& V1,
0101                                            gp_Vec& V2,
0102                                            gp_Vec& V3) {
0103   
0104   C->D3(U,P,V1,V2,V3);
0105 }
0106 //============================================================
0107 inline gp_Vec IntCurveSurface_HCurveTool::DN (const CurveGen& C,
0108                                              const Standard_Real U,
0109                                              const Standard_Integer N) { 
0110   
0111   return(C->DN(U,N));
0112 }
0113 //============================================================
0114 inline Standard_Real IntCurveSurface_HCurveTool::Resolution(const CurveGen& C,
0115                                                            const Standard_Real R3d) {
0116   return(C->Resolution(R3d));
0117 }
0118 //============================================================
0119 inline GeomAbs_CurveType IntCurveSurface_HCurveTool::GetType(const CurveGen& C) {
0120   return(C->GetType());
0121 }
0122 //============================================================
0123 inline gp_Lin IntCurveSurface_HCurveTool::Line (const CurveGen& C) {
0124   return(C->Line());
0125 }
0126 //============================================================
0127 inline gp_Circ IntCurveSurface_HCurveTool::Circle (const CurveGen& C) {
0128   return(C->Circle());
0129 }
0130 //============================================================
0131 inline gp_Elips IntCurveSurface_HCurveTool::Ellipse (const CurveGen& C) {
0132   return(C->Ellipse());
0133 }
0134 //============================================================
0135 inline gp_Parab IntCurveSurface_HCurveTool::Parabola (const CurveGen& C) {
0136   return(C->Parabola());
0137 }
0138 //============================================================
0139 inline gp_Hypr IntCurveSurface_HCurveTool::Hyperbola (const CurveGen& C) {
0140   return(C->Hyperbola());
0141 }
0142 //============================================================
0143 inline Handle(Geom_BezierCurve) IntCurveSurface_HCurveTool::Bezier (const CurveGen& C) {
0144   return(C->Bezier());
0145 }
0146 //============================================================
0147 inline Handle(Geom_BSplineCurve) IntCurveSurface_HCurveTool::BSpline (const CurveGen& C) {
0148   return(C->BSpline());
0149 }
0150 //============================================================
0151 
0152 
0153 
0154 
0155 
0156 
0157 
0158 
0159 
0160 
0161 
0162 
0163 
0164