mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0024023: Revamp the OCCT Handle -- general
Missing headers added; includes of headers "Handle_...hxx" removed. Misuses of macro Handle() and its use in typedefs corrected. Alias classes Profile and Option are removed from IFSelect; ones defined in MoniTool are used directly. Removed header files defining only Handle classes (except Image_PixMap_Handle.hxx) Classes SelectMgr_BaseFrustum and now inherit Standard_Transient and can be manipulated by Handle (not NCollection_Handle) Fixed reference-type local variable pointing to temporary object Use of handle in conditional expressions and comparisons to NULL are replaced by call to method IsNull()
This commit is contained in:
@@ -17,17 +17,15 @@
|
||||
#include <Geom_Surface.ixx>
|
||||
|
||||
typedef Geom_Surface Surface;
|
||||
typedef Handle(Geom_Surface) Handle(Surface);
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : UReversed
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Surface) Geom_Surface::UReversed () const
|
||||
Handle(Geom_Surface) Geom_Surface::UReversed () const
|
||||
{
|
||||
Handle(Surface) S = Handle(Surface)::DownCast(Copy());
|
||||
Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(Copy());
|
||||
S->UReverse();
|
||||
return S;
|
||||
}
|
||||
@@ -38,9 +36,9 @@ Handle(Surface) Geom_Surface::UReversed () const
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(Surface) Geom_Surface::VReversed () const
|
||||
Handle(Geom_Surface) Geom_Surface::VReversed () const
|
||||
{
|
||||
Handle(Surface) S = Handle(Surface)::DownCast(Copy());
|
||||
Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(Copy());
|
||||
S->VReverse();
|
||||
return S;
|
||||
}
|
||||
|
Reference in New Issue
Block a user