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