Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1998-01-22
0002 // Created by: Sergey ZARITCHNY
0003 // Copyright (c) 1998-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 _PrsDim_EllipseRadiusDimension_HeaderFile
0018 #define _PrsDim_EllipseRadiusDimension_HeaderFile
0019 
0020 #include <gp_Elips.hxx>
0021 #include <PrsDim_Relation.hxx>
0022 #include <PrsDim_KindOfSurface.hxx>
0023 
0024 class Geom_OffsetCurve;
0025 class TopoDS_Shape;
0026 class TCollection_ExtendedString;
0027 class Geom_Surface;
0028 
0029 DEFINE_STANDARD_HANDLE(PrsDim_EllipseRadiusDimension, PrsDim_Relation)
0030 
0031 //! Computes  geometry  (  basis  curve  and  plane  of  dimension)
0032 //! for  input  shape  aShape  from  TopoDS
0033 //! Root  class  for MinRadiusDimension  and  MaxRadiusDimension
0034 class PrsDim_EllipseRadiusDimension : public PrsDim_Relation
0035 {
0036   DEFINE_STANDARD_RTTIEXT(PrsDim_EllipseRadiusDimension, PrsDim_Relation)
0037 public:
0038 
0039   virtual PrsDim_KindOfDimension KindOfDimension() const Standard_OVERRIDE { return PrsDim_KOD_ELLIPSERADIUS; }
0040   
0041   virtual Standard_Boolean IsMovable() const Standard_OVERRIDE { return Standard_True; }
0042   
0043   Standard_EXPORT void ComputeGeometry();
0044 
0045 protected:
0046 
0047   Standard_EXPORT PrsDim_EllipseRadiusDimension(const TopoDS_Shape& aShape, const TCollection_ExtendedString& aText);
0048 
0049 protected:
0050 
0051   gp_Elips myEllipse;
0052   Standard_Real myFirstPar;
0053   Standard_Real myLastPar;
0054   Standard_Boolean myIsAnArc;
0055   Handle(Geom_OffsetCurve) myOffsetCurve;
0056   Standard_Real myOffset;
0057   Standard_Boolean myIsOffset;
0058 
0059 private:
0060 
0061   Standard_EXPORT void ComputeFaceGeometry();
0062   
0063   Standard_EXPORT void ComputeCylFaceGeometry (const PrsDim_KindOfSurface aSurfType, const Handle(Geom_Surface)& aSurf, const Standard_Real Offset);
0064   
0065   Standard_EXPORT void ComputePlanarFaceGeometry();
0066   
0067   Standard_EXPORT void ComputeEdgeGeometry();
0068 
0069 };
0070 
0071 #endif // _PrsDim_EllipseRadiusDimension_HeaderFile