Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BRep_CurveOn2Surfaces.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 1993-07-06
0002 // Created by: Remi LEQUETTE
0003 // Copyright (c) 1993-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 #ifndef _BRep_CurveOn2Surfaces_HeaderFile
0018 #define _BRep_CurveOn2Surfaces_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <BRep_CurveRepresentation.hxx>
0023 #include <Standard_Real.hxx>
0024 class Geom_Surface;
0025 class gp_Pnt;
0026 
0027 //! Defines a continuity between two surfaces.
0028 class BRep_CurveOn2Surfaces : public BRep_CurveRepresentation
0029 {
0030 
0031 public:
0032   Standard_EXPORT BRep_CurveOn2Surfaces(const occ::handle<Geom_Surface>& S1,
0033                                         const occ::handle<Geom_Surface>& S2,
0034                                         const TopLoc_Location&           L1,
0035                                         const TopLoc_Location&           L2,
0036                                         const GeomAbs_Shape              C);
0037 
0038   //! Returns True.
0039   Standard_EXPORT bool IsRegularity() const override;
0040 
0041   //! A curve on two surfaces (continuity).
0042   Standard_EXPORT bool IsRegularity(const occ::handle<Geom_Surface>& S1,
0043                                     const occ::handle<Geom_Surface>& S2,
0044                                     const TopLoc_Location&           L1,
0045                                     const TopLoc_Location&           L2) const override;
0046 
0047   //! Raises an error.
0048   Standard_EXPORT void D0(const double U, gp_Pnt& P) const;
0049 
0050   Standard_EXPORT const occ::handle<Geom_Surface>& Surface() const override;
0051 
0052   Standard_EXPORT const occ::handle<Geom_Surface>& Surface2() const override;
0053 
0054   Standard_EXPORT const TopLoc_Location& Location2() const override;
0055 
0056   Standard_EXPORT const GeomAbs_Shape& Continuity() const override;
0057 
0058   Standard_EXPORT void Continuity(const GeomAbs_Shape C) override;
0059 
0060   //! Return a copy of this representation.
0061   Standard_EXPORT occ::handle<BRep_CurveRepresentation> Copy() const override;
0062 
0063   //! Dumps the content of me into the stream
0064   Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
0065 
0066   DEFINE_STANDARD_RTTIEXT(BRep_CurveOn2Surfaces, BRep_CurveRepresentation)
0067 
0068 private:
0069   occ::handle<Geom_Surface> mySurface;
0070   occ::handle<Geom_Surface> mySurface2;
0071   TopLoc_Location           myLocation2;
0072   GeomAbs_Shape             myContinuity;
0073 };
0074 
0075 #endif // _BRep_CurveOn2Surfaces_HeaderFile