1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-21 10:55:33 +03:00
occt/src/HLRAlgo/HLRAlgo_Intersection.hxx
abv 42cf5bc1ca 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
2015-07-12 07:42:38 +03:00

105 lines
2.5 KiB
C++

// Created on: 1992-08-21
// Created by: Christophe MARION
// Copyright (c) 1992-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 _HLRAlgo_Intersection_HeaderFile
#define _HLRAlgo_Intersection_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <TopAbs_Orientation.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Standard_ShortReal.hxx>
#include <TopAbs_State.hxx>
//! Describes an intersection on an edge to hide.
//! Contains a parameter and a state (ON = on the
//! face, OUT = above the face, IN = under the Face)
class HLRAlgo_Intersection
{
public:
DEFINE_STANDARD_ALLOC
Standard_EXPORT HLRAlgo_Intersection();
Standard_EXPORT HLRAlgo_Intersection(const TopAbs_Orientation Ori, const Standard_Integer Lev, const Standard_Integer SegInd, const Standard_Integer Ind, const Standard_Real P, const Standard_ShortReal Tol, const TopAbs_State S);
void Orientation (const TopAbs_Orientation Ori);
TopAbs_Orientation Orientation() const;
void Level (const Standard_Integer Lev);
Standard_Integer Level() const;
void SegIndex (const Standard_Integer SegInd);
Standard_Integer SegIndex() const;
void Index (const Standard_Integer Ind);
Standard_Integer Index() const;
void Parameter (const Standard_Real P);
Standard_Real Parameter() const;
void Tolerance (const Standard_ShortReal T);
Standard_ShortReal Tolerance() const;
void State (const TopAbs_State S);
TopAbs_State State() const;
protected:
private:
TopAbs_Orientation myOrien;
Standard_Integer mySegIndex;
Standard_Integer myIndex;
Standard_Integer myLevel;
Standard_Real myParam;
Standard_ShortReal myToler;
TopAbs_State myState;
};
#include <HLRAlgo_Intersection.lxx>
#endif // _HLRAlgo_Intersection_HeaderFile