Warning, /include/opencascade/IntPatch_Point.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-05-06
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1992-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 inline IntPatch_Point::IntPatch_Point ()
0018 : para(0.0), tol(0.0), tgt(Standard_False), mult(Standard_False),
0019 onS1(Standard_False), vtxonS1(Standard_False), prm1(0.0),
0020 onS2(Standard_False), vtxonS2(Standard_False), prm2(0.0)
0021 {
0022 }
0023
0024
0025 inline void IntPatch_Point::SetValue (const gp_Pnt& Pt)
0026 {
0027 pt.SetValue(Pt);
0028 }
0029
0030 //=======================================================================
0031 ////function : SetValue
0032 //purpose :
0033 //=======================================================================
0034 inline void IntPatch_Point::SetValue(const IntSurf_PntOn2S& thePOn2S)
0035 {
0036 pt = thePOn2S;
0037 }
0038
0039 inline void IntPatch_Point::SetTolerance (const Standard_Real Tol)
0040 {
0041 tol = Tol;
0042 }
0043
0044
0045 inline void IntPatch_Point::SetParameters (const Standard_Real U1,
0046 const Standard_Real V1,
0047 const Standard_Real U2,
0048 const Standard_Real V2)
0049 {
0050 pt.SetValue(U1,V1,U2,V2);
0051 }
0052
0053
0054 inline void IntPatch_Point::SetParameter (const Standard_Real Para)
0055 {
0056 para = Para;
0057 }
0058
0059
0060 inline void IntPatch_Point::SetMultiple (const Standard_Boolean IsMult)
0061 {
0062 mult = IsMult;
0063 }
0064
0065
0066 inline const gp_Pnt& IntPatch_Point::Value () const
0067 {
0068 return pt.Value();
0069 }
0070
0071
0072 inline Standard_Real IntPatch_Point::Tolerance () const
0073 {
0074 return tol;
0075 }
0076
0077
0078 inline Standard_Real IntPatch_Point::ParameterOnLine () const
0079 {
0080 return para;
0081 }
0082
0083
0084 inline Standard_Boolean IntPatch_Point::IsTangencyPoint () const
0085 {
0086 return tgt;
0087 }
0088
0089
0090 inline void IntPatch_Point::ParametersOnS1 (Standard_Real& U1, Standard_Real& V1) const
0091 {
0092 pt.ParametersOnS1(U1,V1);
0093 }
0094
0095
0096 inline void IntPatch_Point::ParametersOnS2 (Standard_Real& U2, Standard_Real& V2) const
0097 {
0098 pt.ParametersOnS2(U2,V2);
0099 }
0100
0101
0102 inline Standard_Boolean IntPatch_Point::IsMultiple () const
0103 {
0104 return mult;
0105 }
0106
0107
0108 inline Standard_Boolean IntPatch_Point::IsOnDomS1 () const
0109 {
0110 return onS1;
0111 }
0112
0113
0114 inline Standard_Boolean IntPatch_Point::IsVertexOnS1 () const
0115 {
0116 return vtxonS1;
0117 }
0118
0119
0120 inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS1 () const
0121 {
0122 if (!vtxonS1) {throw Standard_DomainError();}
0123 return vS1;
0124 }
0125
0126
0127 inline const Handle(Adaptor2d_Curve2d)& IntPatch_Point::ArcOnS1 () const
0128 {
0129 if (!onS1) {throw Standard_DomainError();}
0130 return arcS1;
0131 }
0132
0133
0134 inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc1 () const
0135 {
0136 if (!onS1) {throw Standard_DomainError();}
0137 return traline1;
0138 }
0139
0140
0141 inline const IntSurf_Transition& IntPatch_Point::TransitionOnS1 () const
0142 {
0143 if (!onS1) {throw Standard_DomainError();}
0144 return tra1;
0145 }
0146
0147
0148 inline Standard_Real IntPatch_Point::ParameterOnArc1 () const
0149 {
0150 if (!onS1) {throw Standard_DomainError();}
0151 return prm1;
0152 }
0153
0154
0155 inline Standard_Boolean IntPatch_Point::IsOnDomS2 () const
0156 {
0157 return onS2;
0158 }
0159
0160
0161 inline Standard_Boolean IntPatch_Point::IsVertexOnS2 () const
0162 {
0163 return vtxonS2;
0164 }
0165
0166
0167 inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS2 () const
0168 {
0169 if (!vtxonS2) {throw Standard_DomainError();}
0170 return vS2;
0171 }
0172
0173
0174 inline const Handle(Adaptor2d_Curve2d)& IntPatch_Point::ArcOnS2 () const
0175 {
0176 if (!onS2) {throw Standard_DomainError();}
0177 return arcS2;
0178 }
0179
0180
0181 inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc2 () const
0182 {
0183 if (!onS2) {throw Standard_DomainError();}
0184 return traline2;
0185 }
0186
0187
0188 inline const IntSurf_Transition& IntPatch_Point::TransitionOnS2 () const
0189 {
0190 if (!onS2) {throw Standard_DomainError();}
0191 return tra2;
0192 }
0193
0194
0195 inline Standard_Real IntPatch_Point::ParameterOnArc2 () const
0196 {
0197 if (!onS2) {throw Standard_DomainError();}
0198 return prm2;
0199 }
0200
0201
0202 inline const IntSurf_PntOn2S& IntPatch_Point::PntOn2S() const
0203 {
0204 return pt;
0205 }
0206
0207
0208 inline void IntPatch_Point::Parameters(Standard_Real& U1, Standard_Real& V1,
0209 Standard_Real& U2, Standard_Real& V2) const
0210 {
0211 pt.Parameters(U1,V1,U2,V2);
0212 }