Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:59

0001 // Created on: 1993-01-09
0002 // Created by: CKY / Contract Toubro-Larsen (Anand NATRAJAN)
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 #ifndef _IGESDimen_DimensionTolerance_HeaderFile
0018 #define _IGESDimen_DimensionTolerance_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <Standard_Integer.hxx>
0023 #include <Standard_Real.hxx>
0024 #include <IGESData_IGESEntity.hxx>
0025 
0026 
0027 class IGESDimen_DimensionTolerance;
0028 DEFINE_STANDARD_HANDLE(IGESDimen_DimensionTolerance, IGESData_IGESEntity)
0029 
0030 //! defines Dimension Tolerance, Type <406>, Form <29>
0031 //! in package IGESDimen
0032 //! Provides tolerance information for a dimension which
0033 //! can be used by the receiving system to regenerate the
0034 //! dimension.
0035 class IGESDimen_DimensionTolerance : public IGESData_IGESEntity
0036 {
0037 
0038 public:
0039 
0040   
0041   Standard_EXPORT IGESDimen_DimensionTolerance();
0042   
0043   //! This method is used to set the fields of the class
0044   //! DimensionTolerance
0045   //! - nbPropVal     : Number of property values, default = 8
0046   //! - aSecTolFlag   : Secondary Tolerance Flag
0047   //! 0 = Applies to primary dimension
0048   //! 1 = Applies to secondary dimension
0049   //! 2 = Display values as fractions
0050   //! - aTolType      : Tolerance Type
0051   //! 1  = Bilateral
0052   //! 2  = Upper/Lower
0053   //! 3  = Unilateral Upper
0054   //! 4  = Unilateral Lower
0055   //! 5  = Range - min before max
0056   //! 6  = Range - min after max
0057   //! 7  = Range - min above max
0058   //! 8  = Range - min below max
0059   //! 9  = Nominal + Range - min above max
0060   //! 10 = Nominal + Range - min below max
0061   //! - aTolPlaceFlag : Tolerance Placement Flag
0062   //! 1 = Before nominal value
0063   //! 2 = After nominal value
0064   //! 3 = Above nominal value
0065   //! 4 = Below nominal value
0066   //! - anUpperTol    : Upper Tolerance
0067   //! - aLowerTol     : Lower Tolerance
0068   //! - aSignFlag     : Sign Suppression Flag
0069   //! - aFracFlag     : Fraction Flag
0070   //! 0 = Display values as decimal numbers
0071   //! 1 = Display values as mixed fractions
0072   //! 2 = Display values as fractions
0073   //! - aPrecision    : Precision Value
0074   Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Integer aSecTolFlag, const Standard_Integer aTolType, const Standard_Integer aTolPlaceFlag, const Standard_Real anUpperTol, const Standard_Real aLowerTol, const Standard_Boolean aSignFlag, const Standard_Integer aFracFlag, const Standard_Integer aPrecision);
0075   
0076   //! returns the number of property values, always = 8
0077   Standard_EXPORT Standard_Integer NbPropertyValues() const;
0078   
0079   //! returns the Secondary Tolerance Flag
0080   Standard_EXPORT Standard_Integer SecondaryToleranceFlag() const;
0081   
0082   //! returns the Tolerance Type
0083   Standard_EXPORT Standard_Integer ToleranceType() const;
0084   
0085   //! returns the Tolerance Placement Flag, default = 2
0086   Standard_EXPORT Standard_Integer TolerancePlacementFlag() const;
0087   
0088   //! returns the Upper or Bilateral Tolerance Value
0089   Standard_EXPORT Standard_Real UpperTolerance() const;
0090   
0091   //! returns the Lower Tolerance Value
0092   Standard_EXPORT Standard_Real LowerTolerance() const;
0093   
0094   //! returns the Sign Suppression Flag
0095   Standard_EXPORT Standard_Boolean SignSuppressionFlag() const;
0096   
0097   //! returns the Fraction Flag
0098   Standard_EXPORT Standard_Integer FractionFlag() const;
0099   
0100   //! returns the Precision for Value Display
0101   Standard_EXPORT Standard_Integer Precision() const;
0102 
0103 
0104 
0105 
0106   DEFINE_STANDARD_RTTIEXT(IGESDimen_DimensionTolerance,IGESData_IGESEntity)
0107 
0108 protected:
0109 
0110 
0111 
0112 
0113 private:
0114 
0115 
0116   Standard_Integer theNbPropertyValues;
0117   Standard_Integer theSecondaryToleranceFlag;
0118   Standard_Integer theToleranceType;
0119   Standard_Integer theTolerancePlacementFlag;
0120   Standard_Real theUpperTolerance;
0121   Standard_Real theLowerTolerance;
0122   Standard_Boolean theSignSuppressionFlag;
0123   Standard_Integer theFractionFlag;
0124   Standard_Integer thePrecision;
0125 
0126 
0127 };
0128 
0129 
0130 
0131 
0132 
0133 
0134 
0135 #endif // _IGESDimen_DimensionTolerance_HeaderFile