0031456: Visualization - move out Dimensions and Relations from package AIS to PrsDims
[occt.git] / src / PrsDim / PrsDim_EqualRadiusRelation.hxx
CommitLineData
42cf5bc1 1// Created on: 1998-01-17
2// Created by: Julia GERASIMOVA
3// Copyright (c) 1998-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
787ff240 17#ifndef _PrsDim_EqualRadiusRelation_HeaderFile
18#define _PrsDim_EqualRadiusRelation_HeaderFile
42cf5bc1 19
787ff240 20#include <PrsDim_Relation.hxx>
42cf5bc1 21
7dd7c146 22class Geom_Plane;
42cf5bc1 23
787ff240 24DEFINE_STANDARD_HANDLE(PrsDim_EqualRadiusRelation, PrsDim_Relation)
42cf5bc1 25
787ff240 26class PrsDim_EqualRadiusRelation : public PrsDim_Relation
42cf5bc1 27{
787ff240 28 DEFINE_STANDARD_RTTIEXT(PrsDim_EqualRadiusRelation, PrsDim_Relation)
42cf5bc1 29public:
30
42cf5bc1 31 //! Creates equal relation of two arc's radiuses.
32 //! If one of edges is not in the given plane,
33 //! the presentation method projects it onto the plane.
787ff240 34 Standard_EXPORT PrsDim_EqualRadiusRelation(const TopoDS_Edge& aFirstEdge, const TopoDS_Edge& aSecondEdge, const Handle(Geom_Plane)& aPlane);
42cf5bc1 35
42cf5bc1 36private:
37
42cf5bc1 38 Standard_EXPORT void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0) Standard_OVERRIDE;
39
79104795 40 Standard_EXPORT void ComputeSelection (const Handle(SelectMgr_Selection)& aSelection, const Standard_Integer aMode) Standard_OVERRIDE;
42cf5bc1 41
42 Standard_EXPORT void ComputeRadiusPosition();
43
787ff240 44private:
45
42cf5bc1 46 gp_Pnt myFirstCenter;
47 gp_Pnt mySecondCenter;
48 gp_Pnt myFirstPoint;
49 gp_Pnt mySecondPoint;
50
42cf5bc1 51};
52
787ff240 53#endif // _PrsDim_EqualRadiusRelation_HeaderFile