Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/HLRBRep_SLPropsATool.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 <HLRBRep_Surface.hxx>
0018 #include <GeomAbs_Shape.hxx>
0019 #include <gp_Pnt.hxx>
0020 
0021 //=======================================================================
0022 //function : Value
0023 //purpose  : 
0024 //=======================================================================
0025 
0026 inline void  HLRBRep_SLPropsATool::Value
0027   (const Standard_Address A,
0028    const Standard_Real U,
0029    const Standard_Real V,
0030    gp_Pnt& P)
0031 { P = ((HLRBRep_Surface*)A)->Value(U, V); }
0032 
0033 //=======================================================================
0034 //function : D1
0035 //purpose  : 
0036 //=======================================================================
0037 
0038 inline void  HLRBRep_SLPropsATool::D1
0039   (const Standard_Address A, 
0040    const Standard_Real U,
0041    const Standard_Real V, 
0042    gp_Pnt& P,
0043    gp_Vec& D1U,
0044    gp_Vec& D1V)
0045 { ((HLRBRep_Surface*)A)->D1(U, V, P, D1U, D1V); }
0046 
0047 //=======================================================================
0048 //function : D2
0049 //purpose  : 
0050 //=======================================================================
0051 
0052 inline void  HLRBRep_SLPropsATool::D2
0053   (const Standard_Address A, 
0054    const Standard_Real U,
0055    const Standard_Real V,
0056    gp_Pnt& P,
0057    gp_Vec& D1U,
0058    gp_Vec& D1V,
0059    gp_Vec& D2U,
0060    gp_Vec& D2V,
0061    gp_Vec& DUV)
0062 { ((HLRBRep_Surface*)A)->D2(U, V, P, D1U, D1V, D2U, D2V, DUV); }
0063 
0064 //=======================================================================
0065 //function : DN
0066 //purpose  : 
0067 //=======================================================================
0068 
0069 inline gp_Vec  HLRBRep_SLPropsATool::DN
0070   (const Standard_Address A,
0071    const Standard_Real U,
0072    const Standard_Real V,
0073    const Standard_Integer Nu,
0074    const Standard_Integer Nv)
0075 { return ((HLRBRep_Surface*)A)->DN(U, V, Nu, Nv); }
0076 
0077 //=======================================================================
0078 //function : Continuity
0079 //purpose  : 
0080 //=======================================================================
0081 
0082 inline Standard_Integer  HLRBRep_SLPropsATool::Continuity
0083   (const Standard_Address)
0084 { return 2; } // et boum ! cky le 27 - 04 - 1993
0085 
0086 //=======================================================================
0087 //function : Bounds
0088 //purpose  : 
0089 //=======================================================================
0090 
0091 inline void  HLRBRep_SLPropsATool::Bounds
0092   (const Standard_Address, 
0093    Standard_Real& U1,
0094    Standard_Real& V1,
0095    Standard_Real& U2,
0096    Standard_Real& V2)
0097 {
0098   U1 = V1 = RealFirst();
0099   U2 = V2 = RealLast();
0100 }