|
||||
File indexing completed on 2025-01-18 10:04:41
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 DEFINE_STANDARD_HANDLE(PrsDim_PerpendicularRelation, PrsDim_Relation) 0023 0024 //! A framework to display constraints of perpendicularity 0025 //! between two or more interactive datums. These 0026 //! datums can be edges or faces. 0027 class PrsDim_PerpendicularRelation : public PrsDim_Relation 0028 { 0029 DEFINE_STANDARD_RTTIEXT(PrsDim_PerpendicularRelation, PrsDim_Relation) 0030 public: 0031 0032 //! Constructs an object to display constraints of 0033 //! perpendicularity on shapes. 0034 //! This object is defined by a first shape aFShape, a 0035 //! second shape aSShape, and a plane aPlane. 0036 //! aPlane is the plane of reference to show and test the 0037 //! perpendicular relation between two shapes, at least 0038 //! one of which has a revolved surface. 0039 Standard_EXPORT PrsDim_PerpendicularRelation(const TopoDS_Shape& aFShape, const TopoDS_Shape& aSShape, const Handle(Geom_Plane)& aPlane); 0040 0041 //! Constructs an object to display constraints of 0042 //! perpendicularity on shapes. 0043 //! This object is defined by a first shape aFShape and a 0044 //! second shape aSShape. 0045 Standard_EXPORT PrsDim_PerpendicularRelation(const TopoDS_Shape& aFShape, const TopoDS_Shape& aSShape); 0046 0047 private: 0048 0049 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr, 0050 const Handle(Prs3d_Presentation)& thePrs, 0051 const Standard_Integer theMode) Standard_OVERRIDE; 0052 0053 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel, 0054 const Standard_Integer theMode) Standard_OVERRIDE; 0055 0056 Standard_EXPORT void ComputeTwoFacesPerpendicular (const Handle(Prs3d_Presentation)& aPresentation); 0057 0058 Standard_EXPORT void ComputeTwoEdgesPerpendicular (const Handle(Prs3d_Presentation)& aPresentation); 0059 0060 private: 0061 0062 gp_Pnt myFAttach; 0063 gp_Pnt mySAttach; 0064 0065 }; 0066 0067 #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 |