Warning, /include/opencascade/HLRAlgo_PolyInternalData.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1993-01-11
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include <Standard_Integer.hxx>
0018 #include <NCollection_Array1.hxx>
0019 #include <NCollection_HArray1.hxx>
0020 #include <gp_Pnt.hxx>
0021 #include <gp_Pnt2d.hxx>
0022 #include <gp_Dir.hxx>
0023 #include <HLRAlgo_TriangleData.hxx>
0024 #include <HLRAlgo_PolyInternalSegment.hxx>
0025 #include <HLRAlgo_PolyInternalNode.hxx>
0026
0027 //=================================================================================================
0028
0029 inline void HLRAlgo_PolyInternalData::DecTData()
0030 {
0031 myNbTData--;
0032 }
0033
0034 //=================================================================================================
0035
0036 inline void HLRAlgo_PolyInternalData::DecPISeg()
0037 {
0038 myNbPISeg--;
0039 }
0040
0041 //=================================================================================================
0042
0043 inline void HLRAlgo_PolyInternalData::DecPINod()
0044 {
0045 myNbPINod--;
0046 }
0047
0048 //=================================================================================================
0049
0050 inline int HLRAlgo_PolyInternalData::NbTData() const
0051 {
0052 return myNbTData;
0053 }
0054
0055 //=================================================================================================
0056
0057 inline int HLRAlgo_PolyInternalData::NbPISeg() const
0058 {
0059 return myNbPISeg;
0060 }
0061
0062 //=================================================================================================
0063
0064 inline int HLRAlgo_PolyInternalData::NbPINod() const
0065 {
0066 return myNbPINod;
0067 }
0068
0069 //=================================================================================================
0070
0071 inline bool HLRAlgo_PolyInternalData::Planar() const
0072 {
0073 return myPlanar;
0074 }
0075
0076 //=================================================================================================
0077
0078 inline void HLRAlgo_PolyInternalData::Planar(const bool B)
0079 {
0080 myPlanar = B;
0081 }
0082
0083 //=================================================================================================
0084
0085 inline bool HLRAlgo_PolyInternalData::IntOutL() const
0086 {
0087 return myIntOutL;
0088 }
0089
0090 //=================================================================================================
0091
0092 inline void HLRAlgo_PolyInternalData::IntOutL(const bool B)
0093 {
0094 myIntOutL = B;
0095 }
0096
0097 //=================================================================================================
0098
0099 inline NCollection_Array1<HLRAlgo_TriangleData>& HLRAlgo_PolyInternalData::TData() const
0100 {
0101 return myTData->ChangeArray1();
0102 }
0103
0104 //=================================================================================================
0105
0106 inline NCollection_Array1<occ::handle<HLRAlgo_PolyInternalNode>>& HLRAlgo_PolyInternalData::PINod()
0107 const
0108 {
0109 return myPINod->ChangeArray1();
0110 }
0111
0112 //=================================================================================================
0113
0114 inline NCollection_Array1<HLRAlgo_PolyInternalSegment>& HLRAlgo_PolyInternalData::PISeg() const
0115 {
0116 return myPISeg->ChangeArray1();
0117 }