Warning, /include/opencascade/BRepBlend_Line.lxx is written in an unsupported language. File is not indexed.
0001 // Copyright (c) 1995-1999 Matra Datavision
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014
0015 #include <Blend_SequenceOfPoint.hxx>
0016 #include <Standard_DomainError.hxx>
0017
0018
0019 inline void BRepBlend_Line::Append(const Blend_Point& P)
0020 {
0021 seqpt.Append(P);
0022 }
0023
0024 inline void BRepBlend_Line::Prepend(const Blend_Point& P)
0025 {
0026 seqpt.Prepend(P);
0027 }
0028
0029 inline void BRepBlend_Line::InsertBefore(const Standard_Integer Index,
0030 const Blend_Point& P)
0031 {
0032 seqpt.InsertBefore(Index, P);
0033 }
0034
0035 inline void BRepBlend_Line::Remove(const Standard_Integer FromIndex,
0036 const Standard_Integer ToIndex)
0037 {
0038 seqpt.Remove(FromIndex,ToIndex);
0039 }
0040
0041 inline void BRepBlend_Line::SetStartPoints(const BRepBlend_Extremity& StartPtOnS1,
0042 const BRepBlend_Extremity& StartPtOnS2)
0043
0044 {
0045 stp1 = StartPtOnS1;
0046 stp2 = StartPtOnS2;
0047 }
0048
0049 inline void BRepBlend_Line::SetEndPoints(const BRepBlend_Extremity& EndPtOnS1,
0050 const BRepBlend_Extremity& EndPtOnS2)
0051
0052 {
0053 endp1 = EndPtOnS1;
0054 endp2 = EndPtOnS2;
0055 }
0056
0057 inline Standard_Integer BRepBlend_Line::NbPoints () const
0058 {
0059 return seqpt.Length();
0060 }
0061
0062 inline const Blend_Point& BRepBlend_Line::Point(const Standard_Integer Index) const
0063 {
0064 return seqpt(Index);
0065 }
0066
0067 inline IntSurf_TypeTrans BRepBlend_Line::TransitionOnS1 () const
0068 {
0069 if (!hass1) {throw Standard_DomainError();}
0070 return tras1;
0071 }
0072
0073 inline IntSurf_TypeTrans BRepBlend_Line::TransitionOnS2 () const
0074 {
0075 if (!hass2) {throw Standard_DomainError();}
0076 return tras2;
0077 }
0078
0079 inline const BRepBlend_Extremity& BRepBlend_Line::StartPointOnFirst() const
0080 {
0081 return stp1;
0082 }
0083
0084 inline const BRepBlend_Extremity& BRepBlend_Line::StartPointOnSecond() const
0085 {
0086 return stp2;
0087 }
0088
0089 inline const BRepBlend_Extremity& BRepBlend_Line::EndPointOnFirst() const
0090 {
0091 return endp1;
0092 }
0093
0094 inline const BRepBlend_Extremity& BRepBlend_Line::EndPointOnSecond() const
0095 {
0096 return endp2;
0097 }
0098
0099 inline IntSurf_TypeTrans BRepBlend_Line::TransitionOnS () const
0100 {
0101 if (!hass1) {throw Standard_DomainError();}
0102 return tras1;
0103 }
0104
0105