mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
HatchGen_PointsOnHatching.hxx
|
||||
HatchGen_PointsOnElement.hxx
|
||||
HatchGen_Domain.cxx
|
||||
HatchGen_Domain.hxx
|
||||
HatchGen_Domain.lxx
|
||||
HatchGen_Domains.hxx
|
||||
HatchGen_ErrorStatus.hxx
|
||||
HatchGen_IntersectionPoint.cxx
|
||||
HatchGen_IntersectionPoint.hxx
|
||||
HatchGen_IntersectionType.hxx
|
||||
HatchGen_PointOnElement.cxx
|
||||
HatchGen_PointOnElement.hxx
|
||||
HatchGen_PointOnElement.lxx
|
||||
HatchGen_PointOnHatching.cxx
|
||||
HatchGen_PointOnHatching.hxx
|
||||
HatchGen_PointsOnElement.hxx
|
||||
HatchGen_PointsOnHatching.hxx
|
||||
|
@@ -1,65 +0,0 @@
|
||||
-- Created on: 1993-10-25
|
||||
-- Created by: Jean Marc LACHAUME
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
package HatchGen
|
||||
|
||||
uses
|
||||
IntRes2d,
|
||||
StdFail,
|
||||
TopAbs,
|
||||
TCollection,
|
||||
gp
|
||||
|
||||
is
|
||||
|
||||
enumeration IntersectionType is
|
||||
|
||||
---Purpose: Intersection type between the hatching and the
|
||||
-- element.
|
||||
|
||||
TRUE ,
|
||||
TOUCH ,
|
||||
TANGENT ,
|
||||
UNDETERMINED
|
||||
|
||||
end IntersectionType from HatchGen ;
|
||||
|
||||
|
||||
enumeration ErrorStatus is
|
||||
|
||||
---Purpose: Error status.
|
||||
|
||||
NoProblem ,
|
||||
TrimFailure ,
|
||||
TransitionFailure ,
|
||||
IncoherentParity ,
|
||||
IncompatibleStates
|
||||
|
||||
end ErrorStatus from HatchGen ;
|
||||
|
||||
deferred class IntersectionPoint ;
|
||||
|
||||
class PointOnHatching ;
|
||||
imported PointsOnHatching;
|
||||
|
||||
class PointOnElement ;
|
||||
imported PointsOnElement;
|
||||
|
||||
class Domain ;
|
||||
imported Domains;
|
||||
|
||||
|
||||
end HatchGen ;
|
@@ -1,161 +0,0 @@
|
||||
-- Created on: 1993-11-05
|
||||
-- Created by: Jean Marc LACHAUME
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
class Domain from HatchGen
|
||||
|
||||
uses
|
||||
PointOnHatching from HatchGen
|
||||
|
||||
raises
|
||||
DomainError from Standard
|
||||
|
||||
is
|
||||
|
||||
Create
|
||||
|
||||
---Purpose: Creates an infinite domain.
|
||||
|
||||
returns Domain from HatchGen ;
|
||||
|
||||
|
||||
Create (P1, P2 : PointOnHatching from HatchGen)
|
||||
|
||||
---Purpose: Creates a domain for the curve associated to a hatching.
|
||||
|
||||
returns Domain from HatchGen ;
|
||||
|
||||
|
||||
Create (P : PointOnHatching from HatchGen ; First : Boolean from Standard)
|
||||
|
||||
---Purpose: Creates a semi-infinite domain for the curve associated
|
||||
-- to a hatching. The `First' flag means that the given
|
||||
-- point is the first one.
|
||||
|
||||
returns Domain from HatchGen ;
|
||||
|
||||
|
||||
SetPoints (me : in out ; P1, P2 : PointOnHatching from HatchGen)
|
||||
|
||||
---Purpose: Sets the first and the second points of the domain.
|
||||
|
||||
---C++: inline
|
||||
is static ;
|
||||
|
||||
|
||||
SetPoints (me : in out)
|
||||
|
||||
---Purpose: Sets the first and the second points of the domain
|
||||
-- as the infinite.
|
||||
|
||||
---C++: inline
|
||||
is static ;
|
||||
|
||||
|
||||
SetFirstPoint (me : in out ; P : PointOnHatching from HatchGen)
|
||||
|
||||
---Purpose: Sets the first point of the domain.
|
||||
|
||||
---C++: inline
|
||||
is static ;
|
||||
|
||||
|
||||
SetFirstPoint (me : in out)
|
||||
|
||||
---Purpose: Sets the first point of the domain at the
|
||||
-- infinite.
|
||||
|
||||
---C++: inline
|
||||
is static ;
|
||||
|
||||
|
||||
SetSecondPoint (me : in out ; P : PointOnHatching from HatchGen)
|
||||
|
||||
---Purpose: Sets the second point of the domain.
|
||||
|
||||
---C++: inline
|
||||
is static ;
|
||||
|
||||
|
||||
SetSecondPoint (me : in out)
|
||||
|
||||
---Purpose: Sets the second point of the domain at the
|
||||
-- infinite.
|
||||
|
||||
---C++: inline
|
||||
is static ;
|
||||
|
||||
|
||||
HasFirstPoint (me)
|
||||
|
||||
---Purpose: Returns True if the domain has a first point.
|
||||
|
||||
---C++: inline
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
FirstPoint (me)
|
||||
|
||||
---Purpose: Returns the first point of the domain.
|
||||
-- The exception DomainError is raised if
|
||||
-- HasFirstPoint returns False.
|
||||
|
||||
---C++: inline
|
||||
---C++: return const &
|
||||
|
||||
returns PointOnHatching from HatchGen
|
||||
raises DomainError from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
HasSecondPoint (me)
|
||||
|
||||
---Purpose: Returns True if the domain has a second point.
|
||||
|
||||
---C++: inline
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
SecondPoint (me)
|
||||
|
||||
---Purpose: Returns the second point of the domain.
|
||||
-- The exception DomainError is raised if
|
||||
-- HasSecondPoint returns False.
|
||||
|
||||
---C++: inline
|
||||
---C++: return const &
|
||||
|
||||
returns PointOnHatching from HatchGen
|
||||
raises DomainError from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
Dump (me; Index : Integer from Standard = 0)
|
||||
|
||||
---Purpose: Dump of the domain.
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
fields
|
||||
|
||||
myHasFirstPoint : Boolean from Standard ;
|
||||
myFirstPoint : PointOnHatching from HatchGen ;
|
||||
myHasSecondPoint : Boolean from Standard ;
|
||||
mySecondPoint : PointOnHatching from HatchGen ;
|
||||
|
||||
end Domain from HatchGen ;
|
@@ -14,14 +14,16 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <HatchGen_Domain.hxx>
|
||||
#include <HatchGen_PointOnHatching.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <HatchGen_Domain.ixx>
|
||||
|
||||
//=======================================================================
|
||||
// Function : HatchGen_Domain
|
||||
// Purpose : Constructor.
|
||||
//=======================================================================
|
||||
|
||||
HatchGen_Domain::HatchGen_Domain () :
|
||||
myHasFirstPoint (Standard_False) ,
|
||||
myHasSecondPoint (Standard_False)
|
||||
|
118
src/HatchGen/HatchGen_Domain.hxx
Normal file
118
src/HatchGen/HatchGen_Domain.hxx
Normal file
@@ -0,0 +1,118 @@
|
||||
// Created on: 1993-11-05
|
||||
// Created by: Jean Marc LACHAUME
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _HatchGen_Domain_HeaderFile
|
||||
#define _HatchGen_Domain_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <HatchGen_PointOnHatching.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class HatchGen_PointOnHatching;
|
||||
|
||||
|
||||
|
||||
class HatchGen_Domain
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Creates an infinite domain.
|
||||
Standard_EXPORT HatchGen_Domain();
|
||||
|
||||
//! Creates a domain for the curve associated to a hatching.
|
||||
Standard_EXPORT HatchGen_Domain(const HatchGen_PointOnHatching& P1, const HatchGen_PointOnHatching& P2);
|
||||
|
||||
//! Creates a semi-infinite domain for the curve associated
|
||||
//! to a hatching. The `First' flag means that the given
|
||||
//! point is the first one.
|
||||
Standard_EXPORT HatchGen_Domain(const HatchGen_PointOnHatching& P, const Standard_Boolean First);
|
||||
|
||||
//! Sets the first and the second points of the domain.
|
||||
void SetPoints (const HatchGen_PointOnHatching& P1, const HatchGen_PointOnHatching& P2);
|
||||
|
||||
//! Sets the first and the second points of the domain
|
||||
//! as the infinite.
|
||||
void SetPoints();
|
||||
|
||||
//! Sets the first point of the domain.
|
||||
void SetFirstPoint (const HatchGen_PointOnHatching& P);
|
||||
|
||||
//! Sets the first point of the domain at the
|
||||
//! infinite.
|
||||
void SetFirstPoint();
|
||||
|
||||
//! Sets the second point of the domain.
|
||||
void SetSecondPoint (const HatchGen_PointOnHatching& P);
|
||||
|
||||
//! Sets the second point of the domain at the
|
||||
//! infinite.
|
||||
void SetSecondPoint();
|
||||
|
||||
//! Returns True if the domain has a first point.
|
||||
Standard_Boolean HasFirstPoint() const;
|
||||
|
||||
//! Returns the first point of the domain.
|
||||
//! The exception DomainError is raised if
|
||||
//! HasFirstPoint returns False.
|
||||
const HatchGen_PointOnHatching& FirstPoint() const;
|
||||
|
||||
//! Returns True if the domain has a second point.
|
||||
Standard_Boolean HasSecondPoint() const;
|
||||
|
||||
//! Returns the second point of the domain.
|
||||
//! The exception DomainError is raised if
|
||||
//! HasSecondPoint returns False.
|
||||
const HatchGen_PointOnHatching& SecondPoint() const;
|
||||
|
||||
//! Dump of the domain.
|
||||
Standard_EXPORT void Dump (const Standard_Integer Index = 0) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
Standard_Boolean myHasFirstPoint;
|
||||
HatchGen_PointOnHatching myFirstPoint;
|
||||
Standard_Boolean myHasSecondPoint;
|
||||
HatchGen_PointOnHatching mySecondPoint;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#include <HatchGen_Domain.lxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _HatchGen_Domain_HeaderFile
|
30
src/HatchGen/HatchGen_ErrorStatus.hxx
Normal file
30
src/HatchGen/HatchGen_ErrorStatus.hxx
Normal file
@@ -0,0 +1,30 @@
|
||||
// Created on: 1993-10-25
|
||||
// Created by: Jean Marc LACHAUME
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _HatchGen_ErrorStatus_HeaderFile
|
||||
#define _HatchGen_ErrorStatus_HeaderFile
|
||||
|
||||
//! Error status.
|
||||
enum HatchGen_ErrorStatus
|
||||
{
|
||||
HatchGen_NoProblem,
|
||||
HatchGen_TrimFailure,
|
||||
HatchGen_TransitionFailure,
|
||||
HatchGen_IncoherentParity,
|
||||
HatchGen_IncompatibleStates
|
||||
};
|
||||
|
||||
#endif // _HatchGen_ErrorStatus_HeaderFile
|
@@ -1,188 +0,0 @@
|
||||
-- Created on: 1993-10-29
|
||||
-- Created by: Jean Marc LACHAUME
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
deferred class IntersectionPoint from HatchGen
|
||||
|
||||
uses
|
||||
Orientation from TopAbs ,
|
||||
State from TopAbs ,
|
||||
IntersectionPoint from IntRes2d
|
||||
|
||||
is
|
||||
|
||||
|
||||
Initialize
|
||||
|
||||
---Purpose: Creates an empty intersection point.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is protected ;
|
||||
|
||||
|
||||
SetIndex (me : in out ; Index : Integer from Standard)
|
||||
|
||||
---Purpose: Sets the index of the supporting curve.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
Index (me)
|
||||
|
||||
---Purpose: Returns the index of the supporting curve.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
returns Integer from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
SetParameter (me : in out ; Parameter : Real from Standard)
|
||||
|
||||
---Purpose: Sets the parameter on the curve.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
Parameter (me)
|
||||
|
||||
---Purpose: Returns the parameter on the curve.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
returns Real from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
SetPosition (me : in out ; Position : Orientation from TopAbs)
|
||||
|
||||
---Purpose: Sets the position of the point on the curve.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
Position (me)
|
||||
|
||||
---Purpose: Returns the position of the point on the curve.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
returns Orientation from TopAbs
|
||||
is static ;
|
||||
|
||||
|
||||
SetStateBefore (me : in out ; State : State from TopAbs)
|
||||
|
||||
---Purpose: Sets the transition state before the intersection.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
StateBefore (me)
|
||||
|
||||
---Purpose: Returns the transition state before the intersection.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
returns State from TopAbs
|
||||
is static ;
|
||||
|
||||
|
||||
SetStateAfter (me : in out ; State : State from TopAbs)
|
||||
|
||||
---Purpose: Sets the transition state after the intersection.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
StateAfter (me)
|
||||
|
||||
---Purpose: Returns the transition state after of the intersection.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
returns State from TopAbs
|
||||
is static ;
|
||||
|
||||
|
||||
SetSegmentBeginning (me : in out ; State : Boolean from Standard = Standard_True)
|
||||
|
||||
---Purpose: Sets the flag that the point is the beginning of a segment.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
SegmentBeginning (me)
|
||||
|
||||
---Purpose: Returns the flag that the point is the beginning of a segment.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
SetSegmentEnd (me : in out ; State : Boolean from Standard = Standard_True)
|
||||
|
||||
---Purpose: Sets the flag that the point is the end of a segment.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
SegmentEnd (me)
|
||||
|
||||
---Purpose: Returns the flag that the point is the end of a segment.
|
||||
|
||||
---Category: IntersectionPoint
|
||||
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
Dump (me; Index : Integer from Standard = 0)
|
||||
|
||||
---Purpose: Dump of the point on element.
|
||||
|
||||
is deferred;
|
||||
|
||||
---C++: alias " Standard_EXPORT virtual ~HatchGen_IntersectionPoint();"
|
||||
|
||||
|
||||
fields
|
||||
|
||||
myIndex : Integer from Standard is protected ;
|
||||
myParam : Real from Standard is protected ;
|
||||
myPosit : Orientation from TopAbs is protected ;
|
||||
myBefore : State from TopAbs is protected ;
|
||||
myAfter : State from TopAbs is protected ;
|
||||
mySegBeg : Boolean from Standard is protected ;
|
||||
mySegEnd : Boolean from Standard is protected ;
|
||||
|
||||
end IntersectionPoint from HatchGen ;
|
@@ -14,13 +14,13 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <HatchGen_IntersectionPoint.ixx>
|
||||
|
||||
#include <HatchGen_IntersectionPoint.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// Function : HatchGen_IntersectionPoint
|
||||
// Purpose : Constructor
|
||||
//=======================================================================
|
||||
|
||||
HatchGen_IntersectionPoint::HatchGen_IntersectionPoint () :
|
||||
myIndex (0) ,
|
||||
myParam (RealLast()) ,
|
||||
|
118
src/HatchGen/HatchGen_IntersectionPoint.hxx
Normal file
118
src/HatchGen/HatchGen_IntersectionPoint.hxx
Normal file
@@ -0,0 +1,118 @@
|
||||
// Created on: 1993-10-29
|
||||
// Created by: Jean Marc LACHAUME
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _HatchGen_IntersectionPoint_HeaderFile
|
||||
#define _HatchGen_IntersectionPoint_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <TopAbs_Orientation.hxx>
|
||||
#include <TopAbs_State.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
|
||||
|
||||
|
||||
class HatchGen_IntersectionPoint
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Sets the index of the supporting curve.
|
||||
Standard_EXPORT void SetIndex (const Standard_Integer Index);
|
||||
|
||||
//! Returns the index of the supporting curve.
|
||||
Standard_EXPORT Standard_Integer Index() const;
|
||||
|
||||
//! Sets the parameter on the curve.
|
||||
Standard_EXPORT void SetParameter (const Standard_Real Parameter);
|
||||
|
||||
//! Returns the parameter on the curve.
|
||||
Standard_EXPORT Standard_Real Parameter() const;
|
||||
|
||||
//! Sets the position of the point on the curve.
|
||||
Standard_EXPORT void SetPosition (const TopAbs_Orientation Position);
|
||||
|
||||
//! Returns the position of the point on the curve.
|
||||
Standard_EXPORT TopAbs_Orientation Position() const;
|
||||
|
||||
//! Sets the transition state before the intersection.
|
||||
Standard_EXPORT void SetStateBefore (const TopAbs_State State);
|
||||
|
||||
//! Returns the transition state before the intersection.
|
||||
Standard_EXPORT TopAbs_State StateBefore() const;
|
||||
|
||||
//! Sets the transition state after the intersection.
|
||||
Standard_EXPORT void SetStateAfter (const TopAbs_State State);
|
||||
|
||||
//! Returns the transition state after of the intersection.
|
||||
Standard_EXPORT TopAbs_State StateAfter() const;
|
||||
|
||||
//! Sets the flag that the point is the beginning of a segment.
|
||||
Standard_EXPORT void SetSegmentBeginning (const Standard_Boolean State = Standard_True);
|
||||
|
||||
//! Returns the flag that the point is the beginning of a segment.
|
||||
Standard_EXPORT Standard_Boolean SegmentBeginning() const;
|
||||
|
||||
//! Sets the flag that the point is the end of a segment.
|
||||
Standard_EXPORT void SetSegmentEnd (const Standard_Boolean State = Standard_True);
|
||||
|
||||
//! Returns the flag that the point is the end of a segment.
|
||||
Standard_EXPORT Standard_Boolean SegmentEnd() const;
|
||||
|
||||
//! Dump of the point on element.
|
||||
Standard_EXPORT virtual void Dump (const Standard_Integer Index = 0) const = 0;
|
||||
Standard_EXPORT virtual ~HatchGen_IntersectionPoint();
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
//! Creates an empty intersection point.
|
||||
Standard_EXPORT HatchGen_IntersectionPoint();
|
||||
|
||||
|
||||
Standard_Integer myIndex;
|
||||
Standard_Real myParam;
|
||||
TopAbs_Orientation myPosit;
|
||||
TopAbs_State myBefore;
|
||||
TopAbs_State myAfter;
|
||||
Standard_Boolean mySegBeg;
|
||||
Standard_Boolean mySegEnd;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _HatchGen_IntersectionPoint_HeaderFile
|
30
src/HatchGen/HatchGen_IntersectionType.hxx
Normal file
30
src/HatchGen/HatchGen_IntersectionType.hxx
Normal file
@@ -0,0 +1,30 @@
|
||||
// Created on: 1993-10-25
|
||||
// Created by: Jean Marc LACHAUME
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _HatchGen_IntersectionType_HeaderFile
|
||||
#define _HatchGen_IntersectionType_HeaderFile
|
||||
|
||||
//! Intersection type between the hatching and the
|
||||
//! element.
|
||||
enum HatchGen_IntersectionType
|
||||
{
|
||||
HatchGen_TRUE,
|
||||
HatchGen_TOUCH,
|
||||
HatchGen_TANGENT,
|
||||
HatchGen_UNDETERMINED
|
||||
};
|
||||
|
||||
#endif // _HatchGen_IntersectionType_HeaderFile
|
@@ -1,122 +0,0 @@
|
||||
-- Created on: 1993-10-29
|
||||
-- Created by: Jean Marc LACHAUME
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
class PointOnElement from HatchGen
|
||||
|
||||
|
||||
inherits IntersectionPoint from HatchGen
|
||||
|
||||
|
||||
uses
|
||||
IntersectionType from HatchGen ,
|
||||
IntersectionPoint from IntRes2d ,
|
||||
Orientation from TopAbs
|
||||
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create
|
||||
|
||||
---Purpose; Creates an empty point on element
|
||||
|
||||
---Category: PointOnElement
|
||||
|
||||
returns PointOnElement from HatchGen ;
|
||||
|
||||
|
||||
Create (Point : PointOnElement from HatchGen)
|
||||
|
||||
---Purpose: Creates a point from an other.
|
||||
|
||||
---Category: PointOnElement
|
||||
|
||||
returns PointOnElement from HatchGen ;
|
||||
|
||||
|
||||
Create (Point : IntersectionPoint from IntRes2d)
|
||||
|
||||
---Purpose: Creates a point from an intersection point.
|
||||
|
||||
---Category: PointOnElement
|
||||
|
||||
returns PointOnElement from HatchGen ;
|
||||
|
||||
|
||||
SetIntersectionType (me : in out ; Type : IntersectionType from HatchGen)
|
||||
|
||||
---Purpose: Sets the intersection type at this point.
|
||||
|
||||
---Category: PointOnElement
|
||||
---C++: inline
|
||||
is static ;
|
||||
|
||||
|
||||
IntersectionType (me)
|
||||
|
||||
---Purpose: Returns the intersection type at this point.
|
||||
|
||||
---Category: PointOnElement
|
||||
|
||||
---C++: inline
|
||||
returns IntersectionType from HatchGen
|
||||
is static ;
|
||||
|
||||
|
||||
IsIdentical (me; Point : PointOnElement from HatchGen ;
|
||||
Confusion : Real from Standard)
|
||||
|
||||
---Purpose: Tests if the point is identical to an other.
|
||||
-- That is to say :
|
||||
-- P1.myIndex = P2.myIndex
|
||||
-- Abs (P1.myParam - P2.myParam) <= Confusion
|
||||
-- P1.myPosit = P2.myPosit
|
||||
-- P1.myBefore = P2.myBefore
|
||||
-- P1.myAfter = P2.myAfter
|
||||
-- P1.mySegBeg = P2.mySegBeg
|
||||
-- P1.mySegEnd = P2.mySegEnd
|
||||
-- P1.myType = P2.myType
|
||||
|
||||
---Category: PointOnElement
|
||||
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
IsDifferent (me; Point : PointOnElement from HatchGen ;
|
||||
Confusion : Real from Standard)
|
||||
|
||||
|
||||
---Purpose: Tests if the point is different from an other.
|
||||
|
||||
---Category: PointOnElement
|
||||
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
Dump (me; Index : Integer from Standard = 0)
|
||||
|
||||
---Purpose: Dump of the point on element.
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
fields
|
||||
|
||||
myType : IntersectionType from HatchGen is protected ;
|
||||
|
||||
end PointOnElement from HatchGen ;
|
@@ -14,14 +14,15 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <HatchGen_PointOnElement.hxx>
|
||||
#include <IntRes2d_IntersectionPoint.hxx>
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <HatchGen_PointOnElement.ixx>
|
||||
|
||||
//=======================================================================
|
||||
// Function : HatchGen_PointOnElement
|
||||
// Purpose : Constructor.
|
||||
//=======================================================================
|
||||
|
||||
HatchGen_PointOnElement::HatchGen_PointOnElement () :
|
||||
HatchGen_IntersectionPoint () ,
|
||||
myType (HatchGen_UNDETERMINED)
|
||||
|
98
src/HatchGen/HatchGen_PointOnElement.hxx
Normal file
98
src/HatchGen/HatchGen_PointOnElement.hxx
Normal file
@@ -0,0 +1,98 @@
|
||||
// Created on: 1993-10-29
|
||||
// Created by: Jean Marc LACHAUME
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _HatchGen_PointOnElement_HeaderFile
|
||||
#define _HatchGen_PointOnElement_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <HatchGen_IntersectionType.hxx>
|
||||
#include <HatchGen_IntersectionPoint.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class IntRes2d_IntersectionPoint;
|
||||
|
||||
|
||||
|
||||
class HatchGen_PointOnElement : public HatchGen_IntersectionPoint
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! ---Purpose; Creates an empty point on element
|
||||
Standard_EXPORT HatchGen_PointOnElement();
|
||||
|
||||
//! Creates a point from an other.
|
||||
Standard_EXPORT HatchGen_PointOnElement(const HatchGen_PointOnElement& Point);
|
||||
|
||||
//! Creates a point from an intersection point.
|
||||
Standard_EXPORT HatchGen_PointOnElement(const IntRes2d_IntersectionPoint& Point);
|
||||
|
||||
//! Sets the intersection type at this point.
|
||||
void SetIntersectionType (const HatchGen_IntersectionType Type);
|
||||
|
||||
//! Returns the intersection type at this point.
|
||||
HatchGen_IntersectionType IntersectionType() const;
|
||||
|
||||
//! Tests if the point is identical to an other.
|
||||
//! That is to say :
|
||||
//! P1.myIndex = P2.myIndex
|
||||
//! Abs (P1.myParam - P2.myParam) <= Confusion
|
||||
//! P1.myPosit = P2.myPosit
|
||||
//! P1.myBefore = P2.myBefore
|
||||
//! P1.myAfter = P2.myAfter
|
||||
//! P1.mySegBeg = P2.mySegBeg
|
||||
//! P1.mySegEnd = P2.mySegEnd
|
||||
//! P1.myType = P2.myType
|
||||
Standard_EXPORT Standard_Boolean IsIdentical (const HatchGen_PointOnElement& Point, const Standard_Real Confusion) const;
|
||||
|
||||
//! Tests if the point is different from an other.
|
||||
Standard_EXPORT Standard_Boolean IsDifferent (const HatchGen_PointOnElement& Point, const Standard_Real Confusion) const;
|
||||
|
||||
//! Dump of the point on element.
|
||||
Standard_EXPORT void Dump (const Standard_Integer Index = 0) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
HatchGen_IntersectionType myType;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#include <HatchGen_PointOnElement.lxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _HatchGen_PointOnElement_HeaderFile
|
@@ -1,174 +0,0 @@
|
||||
-- Created on: 1993-10-29
|
||||
-- Created by: Jean Marc LACHAUME
|
||||
-- Copyright (c) 1993-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.
|
||||
|
||||
class PointOnHatching from HatchGen
|
||||
|
||||
|
||||
inherits IntersectionPoint from HatchGen
|
||||
|
||||
|
||||
uses
|
||||
PointOnElement from HatchGen ,
|
||||
PointsOnElement from HatchGen ,
|
||||
IntersectionPoint from IntRes2d
|
||||
|
||||
raises
|
||||
OutOfRange from Standard
|
||||
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create
|
||||
|
||||
---Purpose: Creates an empty point.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
returns PointOnHatching from HatchGen ;
|
||||
|
||||
|
||||
|
||||
Create (Point : PointOnHatching from HatchGen)
|
||||
|
||||
---Purpose: Creates a point from an other.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
returns PointOnHatching from HatchGen ;
|
||||
|
||||
|
||||
Create (Point : IntersectionPoint from IntRes2d)
|
||||
|
||||
---Purpose: Creates a point from an intersection point.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
returns PointOnHatching from HatchGen ;
|
||||
|
||||
AddPoint (me : in out ; Point : PointOnElement from HatchGen ;
|
||||
Confusion : Real from Standard)
|
||||
|
||||
---Purpose: Adds a point on element to the point.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
NbPoints (me)
|
||||
|
||||
---Purpose: Returns the number of elements intersecting the
|
||||
-- hatching at this point.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
returns Integer from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
Point (me; Index : Integer from Standard)
|
||||
|
||||
---Purpose: Returns the Index-th point on element of the point.
|
||||
-- The exception OutOfRange is raised if
|
||||
-- Index > NbPoints.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
---C++: return const &
|
||||
|
||||
returns PointOnElement from HatchGen
|
||||
raises OutOfRange from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
RemPoint (me : in out ; Index : Integer from Standard)
|
||||
|
||||
---Purpose: Removes the Index-th point on element of the point.
|
||||
-- The exception OutOfRange is raised if
|
||||
-- Index > NbPoints.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
raises OutOfRange from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
ClrPoints (me : in out)
|
||||
|
||||
---Purpose: Removes all the points on element of the point.
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
IsLower (me; Point : PointOnHatching from HatchGen ;
|
||||
Confusion : Real from Standard)
|
||||
|
||||
---Purpose: Tests if the point is lower than an other.
|
||||
-- A point on hatching P1 is said to be lower than an
|
||||
-- other P2 if :
|
||||
-- P2.myParam - P1.myParam > Confusion
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
IsEqual (me; Point : PointOnHatching from HatchGen ;
|
||||
Confusion : Real from Standard)
|
||||
|
||||
|
||||
---Purpose: Tests if the point is equal to an other.
|
||||
-- A point on hatching P1 is said to be equal to an
|
||||
-- other P2 if :
|
||||
-- | P2.myParam - P1.myParam | <= Confusion
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
IsGreater (me; Point : PointOnHatching from HatchGen ;
|
||||
Confusion : Real from Standard)
|
||||
|
||||
|
||||
---Purpose: Tests if the point is greater than an other.
|
||||
-- A point on hatching P1 is said to be greater than an
|
||||
-- other P2 if :
|
||||
-- P1.myParam - P2.myParam > Confusion
|
||||
|
||||
---Category: PointOnHatching
|
||||
|
||||
returns Boolean from Standard
|
||||
is static ;
|
||||
|
||||
|
||||
Dump (me; Index : Integer from Standard = 0)
|
||||
|
||||
---Purpose: Dump of the point.
|
||||
|
||||
is static ;
|
||||
|
||||
|
||||
fields
|
||||
|
||||
myPoints : PointsOnElement from HatchGen is protected ;
|
||||
|
||||
end PointOnHatching from HatchGen ;
|
@@ -14,8 +14,12 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <HatchGen_PointOnElement.hxx>
|
||||
#include <HatchGen_PointOnHatching.hxx>
|
||||
#include <IntRes2d_IntersectionPoint.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Stream.hxx>
|
||||
#include <HatchGen_PointOnHatching.ixx>
|
||||
|
||||
#define RAISE_IF_NOSUCHOBJECT 0
|
||||
|
||||
|
116
src/HatchGen/HatchGen_PointOnHatching.hxx
Normal file
116
src/HatchGen/HatchGen_PointOnHatching.hxx
Normal file
@@ -0,0 +1,116 @@
|
||||
// Created on: 1993-10-29
|
||||
// Created by: Jean Marc LACHAUME
|
||||
// Copyright (c) 1993-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.
|
||||
|
||||
#ifndef _HatchGen_PointOnHatching_HeaderFile
|
||||
#define _HatchGen_PointOnHatching_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <HatchGen_PointsOnElement.hxx>
|
||||
#include <HatchGen_IntersectionPoint.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Standard_OutOfRange;
|
||||
class IntRes2d_IntersectionPoint;
|
||||
class HatchGen_PointOnElement;
|
||||
|
||||
|
||||
|
||||
class HatchGen_PointOnHatching : public HatchGen_IntersectionPoint
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Creates an empty point.
|
||||
Standard_EXPORT HatchGen_PointOnHatching();
|
||||
|
||||
//! Creates a point from an other.
|
||||
Standard_EXPORT HatchGen_PointOnHatching(const HatchGen_PointOnHatching& Point);
|
||||
|
||||
//! Creates a point from an intersection point.
|
||||
Standard_EXPORT HatchGen_PointOnHatching(const IntRes2d_IntersectionPoint& Point);
|
||||
|
||||
//! Adds a point on element to the point.
|
||||
Standard_EXPORT void AddPoint (const HatchGen_PointOnElement& Point, const Standard_Real Confusion);
|
||||
|
||||
//! Returns the number of elements intersecting the
|
||||
//! hatching at this point.
|
||||
Standard_EXPORT Standard_Integer NbPoints() const;
|
||||
|
||||
//! Returns the Index-th point on element of the point.
|
||||
//! The exception OutOfRange is raised if
|
||||
//! Index > NbPoints.
|
||||
Standard_EXPORT const HatchGen_PointOnElement& Point (const Standard_Integer Index) const;
|
||||
|
||||
//! Removes the Index-th point on element of the point.
|
||||
//! The exception OutOfRange is raised if
|
||||
//! Index > NbPoints.
|
||||
Standard_EXPORT void RemPoint (const Standard_Integer Index);
|
||||
|
||||
//! Removes all the points on element of the point.
|
||||
Standard_EXPORT void ClrPoints();
|
||||
|
||||
//! Tests if the point is lower than an other.
|
||||
//! A point on hatching P1 is said to be lower than an
|
||||
//! other P2 if :
|
||||
//! P2.myParam - P1.myParam > Confusion
|
||||
Standard_EXPORT Standard_Boolean IsLower (const HatchGen_PointOnHatching& Point, const Standard_Real Confusion) const;
|
||||
|
||||
//! Tests if the point is equal to an other.
|
||||
//! A point on hatching P1 is said to be equal to an
|
||||
//! other P2 if :
|
||||
//! | P2.myParam - P1.myParam | <= Confusion
|
||||
Standard_EXPORT Standard_Boolean IsEqual (const HatchGen_PointOnHatching& Point, const Standard_Real Confusion) const;
|
||||
|
||||
//! Tests if the point is greater than an other.
|
||||
//! A point on hatching P1 is said to be greater than an
|
||||
//! other P2 if :
|
||||
//! P1.myParam - P2.myParam > Confusion
|
||||
Standard_EXPORT Standard_Boolean IsGreater (const HatchGen_PointOnHatching& Point, const Standard_Real Confusion) const;
|
||||
|
||||
//! Dump of the point.
|
||||
Standard_EXPORT void Dump (const Standard_Integer Index = 0) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
HatchGen_PointsOnElement myPoints;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _HatchGen_PointOnHatching_HeaderFile
|
Reference in New Issue
Block a user