Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/FairCurve_Batten.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1996-02-05
0002 // Created by: Philippe MANGIN
0003 // Copyright (c) 1996-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_NegativeValue.hxx>
0018 
0019 inline Standard_OStream& operator<< (Standard_OStream& o, 
0020                                      const FairCurve_Batten& Bat) 
0021 {
0022   Bat.Dump(o);
0023   return o;
0024 }
0025 
0026 inline void FairCurve_Batten::SetFreeSliding(const Standard_Boolean FreeSliding)
0027 {
0028   NewFreeSliding = FreeSliding;
0029 }
0030 
0031 inline void FairCurve_Batten::SetConstraintOrder1(const Standard_Integer ConstraintOrder)
0032 {
0033   NewConstraintOrder1 = ConstraintOrder;
0034 }
0035 
0036 inline void FairCurve_Batten::SetConstraintOrder2(const Standard_Integer ConstraintOrder)
0037 {
0038   NewConstraintOrder2 = ConstraintOrder;
0039 }
0040 
0041 inline void FairCurve_Batten::SetAngle1(const Standard_Real Angle1)
0042 {
0043   NewAngle1 = Angle1;
0044 }
0045 
0046 inline void FairCurve_Batten::SetAngle2(const Standard_Real Angle2)
0047 {
0048   NewAngle2 = Angle2;
0049 }
0050 
0051  inline void FairCurve_Batten::SetHeight(const Standard_Real Height)
0052 {
0053   if (Height <= 0) 
0054     throw Standard_NegativeValue("FairCurve : Height is no positive");
0055   NewHeight = Height;
0056 }
0057 
0058 inline void FairCurve_Batten::SetSlope(const Standard_Real Slope)
0059 {
0060   NewSlope = Slope;
0061 }
0062 
0063 inline void FairCurve_Batten::SetSlidingFactor(const Standard_Real SlidingFactor)
0064 {
0065   NewSlidingFactor = SlidingFactor;
0066 }
0067 
0068 inline Standard_Boolean FairCurve_Batten::GetFreeSliding() const 
0069 {
0070   return OldFreeSliding;
0071 }
0072 
0073 inline Standard_Integer FairCurve_Batten::GetConstraintOrder1() const 
0074 {
0075   return OldConstraintOrder1;
0076 }
0077 
0078 inline Standard_Integer FairCurve_Batten::GetConstraintOrder2() const 
0079 {
0080   return OldConstraintOrder2;
0081 }
0082 
0083 inline const gp_Pnt2d& FairCurve_Batten::GetP1() const 
0084 {
0085   return OldP1;
0086 }
0087 
0088 inline const gp_Pnt2d& FairCurve_Batten::GetP2() const 
0089 {
0090   return OldP2;
0091 }
0092 
0093 inline Standard_Real FairCurve_Batten::GetAngle1() const 
0094 {
0095   return OldAngle1;
0096 }
0097 
0098 inline Standard_Real FairCurve_Batten::GetAngle2() const 
0099 {
0100   return OldAngle2;
0101 }
0102 
0103 inline Standard_Real FairCurve_Batten::GetHeight() const 
0104 {
0105   return OldHeight;
0106 }
0107 
0108 inline Standard_Real FairCurve_Batten::GetSlope() const 
0109 {
0110   return OldSlope;
0111 }
0112 
0113 inline Standard_Real FairCurve_Batten::GetSlidingFactor() const 
0114 {
0115   return OldSlidingFactor;
0116 }
0117