Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:57:41

0001 // Created on: 1998-01-27
0002 // Created by: Julia GERASIMOVA
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 _DsgPrs_EqualDistancePresentation_HeaderFile
0018 #define _DsgPrs_EqualDistancePresentation_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Prs3d_Drawer.hxx>
0025 #include <DsgPrs_ArrowSide.hxx>
0026 #include <Prs3d_Presentation.hxx>
0027 
0028 class gp_Pnt;
0029 class Geom_Plane;
0030 class gp_Dir;
0031 class gp_Circ;
0032 
0033 //! A framework to display equal distances between shapes and a given plane.
0034 //! The distance is the length of a projection from the shape to the plane.
0035 //! These distances are used to compare two shapes by this vector alone.
0036 class DsgPrs_EqualDistancePresentation
0037 {
0038 public:
0039   DEFINE_STANDARD_ALLOC
0040 
0041   //! Adds the points Point1, Point2, Point3 Point4, and the
0042   //! plane Plane to the presentation object aPresentation.
0043   //! The display attributes of these elements is defined by the attribute manager aDrawer.
0044   //! The distance is the length of a projection from the shape to the plane.
0045   //! These distances are used to compare two shapes by this vector alone.
0046   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0047                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0048                                   const gp_Pnt&                          Point1,
0049                                   const gp_Pnt&                          Point2,
0050                                   const gp_Pnt&                          Point3,
0051                                   const gp_Pnt&                          Point4,
0052                                   const occ::handle<Geom_Plane>&         Plane);
0053 
0054   //! is used for presentation of interval between
0055   //! two lines or two points or between a line and a point.
0056   Standard_EXPORT static void AddInterval(const occ::handle<Prs3d_Presentation>& aPresentation,
0057                                           const occ::handle<Prs3d_Drawer>&       aDrawer,
0058                                           const gp_Pnt&                          aPoint1,
0059                                           const gp_Pnt&                          aPoint2,
0060                                           const gp_Dir&                          aDir,
0061                                           const gp_Pnt&                          aPosition,
0062                                           const DsgPrs_ArrowSide                 anArrowSide,
0063                                           gp_Pnt&                                anExtremePnt1,
0064                                           gp_Pnt&                                anExtremePnt2);
0065 
0066   //! is used for presentation of interval between two arcs.
0067   //! One of arcs can have a zero radius.
0068   Standard_EXPORT static void AddIntervalBetweenTwoArcs(
0069     const occ::handle<Prs3d_Presentation>& aPresentation,
0070     const occ::handle<Prs3d_Drawer>&       aDrawer,
0071     const gp_Circ&                         aCircle1,
0072     const gp_Circ&                         aCircle2,
0073     const gp_Pnt&                          aPoint1,
0074     const gp_Pnt&                          aPoint2,
0075     const gp_Pnt&                          aPoint3,
0076     const gp_Pnt&                          aPoint4,
0077     const DsgPrs_ArrowSide                 anArrowSide);
0078 };
0079 
0080 #endif // _DsgPrs_EqualDistancePresentation_HeaderFile