mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0031424: Visualization - stop using Prs3d_Drawer::HLRAngle() parameter
Prs3d_Drawer, AIS_Shape, AIS_InteractiveContext - removed properties HLRDeviationCoefficient() and HLRAngle(). Prs3d_Drawer::HLRAngle() is kept as alias to Prs3d_Drawer::DeviationAngle() with deprecated flag. Prs3d_Drawer::DeviationAngle() default value is changed from 12 to 20 degrees to match Prs3d_Drawer::HLRAngle() which has been previously used in majority of cases. Removed unused property HLRBRep_PolyAlgo::Angle().
This commit is contained in:
@@ -57,7 +57,6 @@ void DBRep_HideData::Set(const Standard_Integer viewID,
|
||||
myAngle = ang;
|
||||
|
||||
Handle(HLRBRep_PolyAlgo) hider = new HLRBRep_PolyAlgo(S);
|
||||
hider->Angle(ang);
|
||||
hider->Projector(HLRAlgo_Projector(myTrsf,myFocal > 0.,myFocal));
|
||||
hider->Update();
|
||||
|
||||
|
@@ -59,11 +59,11 @@ public:
|
||||
//! Focal <= 0 means parallel projection
|
||||
//! Alg : the hidden lines
|
||||
Standard_EXPORT void Set (const Standard_Integer ViewId, const gp_Trsf& TProj, const Standard_Real Focal, const TopoDS_Shape& S, const Standard_Real ang);
|
||||
|
||||
Standard_Integer ViewId() const;
|
||||
|
||||
Standard_Real Angle() const;
|
||||
|
||||
|
||||
Standard_Integer ViewId() const { return myView; }
|
||||
|
||||
Standard_Real Angle() const { return myAngle; }
|
||||
|
||||
//! Returns True if the projection is the same
|
||||
Standard_EXPORT Standard_Boolean IsSame (const gp_Trsf& TProj, const Standard_Real Focla) const;
|
||||
|
||||
@@ -72,19 +72,8 @@ public:
|
||||
//! Returns the subshape touched by the last pick.
|
||||
Standard_EXPORT const TopoDS_Shape& LastPick() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Standard_Integer myView;
|
||||
gp_Trsf myTrsf;
|
||||
Standard_Real myFocal;
|
||||
@@ -93,14 +82,6 @@ private:
|
||||
TopoDS_Shape myPickShap;
|
||||
Standard_Real myAngle;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#include <DBRep_HideData.lxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _DBRep_HideData_HeaderFile
|
||||
|
@@ -1,36 +0,0 @@
|
||||
// Created on: 1995-09-22
|
||||
// Created by: Remi LEQUETTE
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
//function : ViewId
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline Standard_Integer DBRep_HideData::ViewId() const
|
||||
{
|
||||
return myView;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Angle
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline Standard_Real DBRep_HideData::Angle() const
|
||||
{
|
||||
return myAngle;
|
||||
}
|
||||
|
@@ -11,7 +11,6 @@ DBRep_Face.hxx
|
||||
DBRep_Face.lxx
|
||||
DBRep_HideData.cxx
|
||||
DBRep_HideData.hxx
|
||||
DBRep_HideData.lxx
|
||||
DBRep_IsoBuilder.cxx
|
||||
DBRep_IsoBuilder.hxx
|
||||
DBRep_ListIteratorOfListOfEdge.hxx
|
||||
|
Reference in New Issue
Block a user