Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:11

0001 // Created on: 2001-12-13
0002 // Created by: Peter KURNEV
0003 // Copyright (c) 2001-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IntTools_PntOnFace_HeaderFile
0017 #define _IntTools_PntOnFace_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <Standard_Boolean.hxx>
0024 #include <gp_Pnt.hxx>
0025 #include <TopoDS_Face.hxx>
0026 
0027 
0028 //! Contains a Face, a 3d point, corresponded UV parameters and a flag
0029 class IntTools_PntOnFace 
0030 {
0031 public:
0032 
0033   DEFINE_STANDARD_ALLOC
0034 
0035   
0036 
0037   //! Empty constructor
0038   Standard_EXPORT IntTools_PntOnFace();
0039   
0040 
0041   //! Initializes me by aFace, a 3d point
0042   //! and it's UV parameters on face
0043   Standard_EXPORT void Init (const TopoDS_Face& aF, const gp_Pnt& aP, const Standard_Real U, const Standard_Real V);
0044   
0045 
0046   //! Modifier
0047   Standard_EXPORT void SetFace (const TopoDS_Face& aF);
0048   
0049 
0050   //! Modifier
0051   Standard_EXPORT void SetPnt (const gp_Pnt& aP);
0052   
0053 
0054   //! Modifier
0055   Standard_EXPORT void SetParameters (const Standard_Real U, const Standard_Real V);
0056   
0057 
0058   //! Modifier
0059   Standard_EXPORT void SetValid (const Standard_Boolean bF);
0060   
0061 
0062   //! Selector
0063   Standard_EXPORT Standard_Boolean Valid() const;
0064   
0065 
0066   //! Selector
0067   Standard_EXPORT const TopoDS_Face& Face() const;
0068   
0069 
0070   //! Selector
0071   Standard_EXPORT const gp_Pnt& Pnt() const;
0072   
0073 
0074   //! Selector
0075   Standard_EXPORT void Parameters (Standard_Real& U, Standard_Real& V) const;
0076   
0077 
0078   //! Selector
0079   Standard_EXPORT Standard_Boolean IsValid() const;
0080 
0081 
0082 
0083 
0084 protected:
0085 
0086 
0087 
0088 
0089 
0090 private:
0091 
0092 
0093 
0094   Standard_Boolean myIsValid;
0095   gp_Pnt myPnt;
0096   Standard_Real myU;
0097   Standard_Real myV;
0098   TopoDS_Face myFace;
0099 
0100 
0101 };
0102 
0103 
0104 
0105 
0106 
0107 
0108 
0109 #endif // _IntTools_PntOnFace_HeaderFile