Warning, /include/opencascade/HLRBRep_CLPropsATool.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-08-18
0002 // Created by: Herve LEGRAND
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 <Standard_NotImplemented.hxx>
0018 #include <HLRBRep_Curve.hxx>
0019 #include <GeomAbs_Shape.hxx>
0020
0021 //=================================================================================================
0022
0023 inline void HLRBRep_CLPropsATool::Value(const HLRBRep_Curve* A, const double U, gp_Pnt2d& P)
0024 {
0025 P = A->Value(U);
0026 }
0027
0028 //=================================================================================================
0029
0030 inline void HLRBRep_CLPropsATool::D1(const HLRBRep_Curve* A,
0031 const double U,
0032 gp_Pnt2d& P,
0033 gp_Vec2d& V1)
0034 {
0035 A->D1(U, P, V1);
0036 }
0037
0038 //=================================================================================================
0039
0040 inline void HLRBRep_CLPropsATool::D2(const HLRBRep_Curve* A,
0041 const double U,
0042 gp_Pnt2d& P,
0043 gp_Vec2d& V1,
0044 gp_Vec2d& V2)
0045 {
0046 A->D2(U, P, V1, V2);
0047 }
0048
0049 //=================================================================================================
0050
0051 inline void HLRBRep_CLPropsATool::D3(const HLRBRep_Curve* A,
0052 const double U,
0053 gp_Pnt2d& P,
0054 gp_Vec2d& V1,
0055 gp_Vec2d& V2,
0056 gp_Vec2d& V3)
0057 {
0058 A->D3(U, P, V1, V2, V3);
0059 }
0060
0061 //=================================================================================================
0062
0063 inline int HLRBRep_CLPropsATool::Continuity(const HLRBRep_Curve*)
0064 {
0065 return GeomAbs_C2;
0066 }
0067
0068 //=================================================================================================
0069
0070 inline double HLRBRep_CLPropsATool::FirstParameter(const HLRBRep_Curve* A)
0071 {
0072 return A->FirstParameter();
0073 }
0074
0075 //=================================================================================================
0076
0077 inline double HLRBRep_CLPropsATool::LastParameter(const HLRBRep_Curve* A)
0078 {
0079 return A->LastParameter();
0080 }