|
|
|||
File indexing completed on 2026-09-21 09:18:19
0001 // Created on: 1996-12-05 0002 // Created by: Jean-Pierre COMBE/Odile Olivier 0003 // Copyright (c) 1996-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_PerpendicularRelation_HeaderFile 0018 #define _PrsDim_PerpendicularRelation_HeaderFile 0019 0020 #include <PrsDim_Relation.hxx> 0021 0022 //! A framework to display constraints of perpendicularity 0023 //! between two or more interactive datums. These 0024 //! datums can be edges or faces. 0025 class PrsDim_PerpendicularRelation : public PrsDim_Relation 0026 { 0027 DEFINE_STANDARD_RTTIEXT(PrsDim_PerpendicularRelation, PrsDim_Relation) 0028 public: 0029 //! Constructs an object to display constraints of 0030 //! perpendicularity on shapes. 0031 //! This object is defined by a first shape aFShape, a 0032 //! second shape aSShape, and a plane aPlane. 0033 //! aPlane is the plane of reference to show and test the 0034 //! perpendicular relation between two shapes, at least 0035 //! one of which has a revolved surface. 0036 Standard_EXPORT PrsDim_PerpendicularRelation(const TopoDS_Shape& aFShape, 0037 const TopoDS_Shape& aSShape, 0038 const occ::handle<Geom_Plane>& aPlane); 0039 0040 //! Constructs an object to display constraints of 0041 //! perpendicularity on shapes. 0042 //! This object is defined by a first shape aFShape and a 0043 //! second shape aSShape. 0044 Standard_EXPORT PrsDim_PerpendicularRelation(const TopoDS_Shape& aFShape, 0045 const TopoDS_Shape& aSShape); 0046 0047 private: 0048 Standard_EXPORT void Compute(const occ::handle<PrsMgr_PresentationManager>& thePrsMgr, 0049 const occ::handle<Prs3d_Presentation>& thePrs, 0050 const int theMode) override; 0051 0052 Standard_EXPORT void ComputeSelection(const occ::handle<SelectMgr_Selection>& theSel, 0053 const int theMode) override; 0054 0055 Standard_EXPORT void ComputeTwoFacesPerpendicular( 0056 const occ::handle<Prs3d_Presentation>& aPresentation); 0057 0058 Standard_EXPORT void ComputeTwoEdgesPerpendicular( 0059 const occ::handle<Prs3d_Presentation>& aPresentation); 0060 0061 private: 0062 gp_Pnt myFAttach; 0063 gp_Pnt mySAttach; 0064 }; 0065 0066 #endif // _PrsDim_PerpendicularRelation_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|