Loading files
f2929057eThis file is pinned to the selected release. Download the original to open it in your design tool.
// Created on: 1997-04-17
// Created by: Christophe MARION
// Copyright (c) 1997-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.
#include <HLRAlgo_Intersection.hxx>
#include <HLRBRep_AreaLimit.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(HLRBRep_AreaLimit, Standard_Transient)
//=================================================================================================
HLRBRep_AreaLimit::HLRBRep_AreaLimit(const HLRAlgo_Intersection& V,
const bool Boundary,
const bool Interference,
const TopAbs_State StateBefore,
const TopAbs_State StateAfter,
const TopAbs_State EdgeBefore,
const TopAbs_State EdgeAfter)
: myVertex(V),
myBoundary(Boundary),
myInterference(Interference),
myStateBefore(StateBefore),
myStateAfter(StateAfter),
myEdgeBefore(EdgeBefore),
myEdgeAfter(EdgeAfter)
{
}
//=================================================================================================
void HLRBRep_AreaLimit::StateBefore(const TopAbs_State Stat)
{
myStateBefore = Stat;
}
//=================================================================================================
void HLRBRep_AreaLimit::StateAfter(const TopAbs_State Stat)
{
myStateAfter = Stat;
}
//=================================================================================================
void HLRBRep_AreaLimit::EdgeBefore(const TopAbs_State Stat)
{
myEdgeBefore = Stat;
}
//=================================================================================================
void HLRBRep_AreaLimit::EdgeAfter(const TopAbs_State Stat)
{
myEdgeAfter = Stat;
}
//=================================================================================================
void HLRBRep_AreaLimit::Previous(const occ::handle<HLRBRep_AreaLimit>& P)
{
myPrevious = P;
}
//=================================================================================================
void HLRBRep_AreaLimit::Next(const occ::handle<HLRBRep_AreaLimit>& N)
{
myNext = N;
}
//=================================================================================================
const HLRAlgo_Intersection& HLRBRep_AreaLimit::Vertex() const
{
return myVertex;
}
//=================================================================================================
bool HLRBRep_AreaLimit::IsBoundary() const
{
return myBoundary;
}
//=================================================================================================
bool HLRBRep_AreaLimit::IsInterference() const
{
return myInterference;
}
//=================================================================================================
TopAbs_State HLRBRep_AreaLimit::StateBefore() const
{
return myStateBefore;
}
//=================================================================================================
TopAbs_State HLRBRep_AreaLimit::StateAfter() const
{
return myStateAfter;
}
//=================================================================================================
TopAbs_State HLRBRep_AreaLimit::EdgeBefore() const
{
return myEdgeBefore;
}
//=================================================================================================
TopAbs_State HLRBRep_AreaLimit::EdgeAfter() const
{
return myEdgeAfter;
}
//=================================================================================================
occ::handle<HLRBRep_AreaLimit> HLRBRep_AreaLimit::Previous() const
{
return myPrevious;
}
//=================================================================================================
occ::handle<HLRBRep_AreaLimit> HLRBRep_AreaLimit::Next() const
{
return myNext;
}
//=================================================================================================
void HLRBRep_AreaLimit::Clear()
{
myPrevious.Nullify();
myNext.Nullify();
}