Files
OCCT/src/ModelingAlgorithms/TKGeomAlgo/HatchGen/HatchGen_PointOnElement.hxx
T
Pasukhin Dmitry 5647b46a34 Configuration - Reorganize repository structure #450
Reorganizing structure to have Module/TK/Package/FILES structure.
New structure reflect the structure inside IDE.
Migrate FILES, PACKAGES, EXTRLIB to CMake version to handle changes on updates.
No changes were done to installation layout, all installation result keep as before.
The migration was done using python script, see PR, which refactor automatically the structure.
Updated doc generation to have valid path to modules, toolkits and packages.
In case of PR into new version, IR-790 can be used as a target for the previous version.
2025-03-20 00:39:26 +00:00

76 lines
2.6 KiB
C++

// 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>
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 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