Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1993-01-09
0002 // Created by: CKY / Contract Toubro-Larsen ( SIVA )
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 _IGESDefs_TabularData_HeaderFile
0018 #define _IGESDefs_TabularData_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <TColStd_HArray1OfInteger.hxx>
0025 #include <IGESData_IGESEntity.hxx>
0026 #include <TColStd_HArray1OfReal.hxx>
0027 class IGESBasic_HArray1OfHArray1OfReal;
0028 
0029 
0030 class IGESDefs_TabularData;
0031 DEFINE_STANDARD_HANDLE(IGESDefs_TabularData, IGESData_IGESEntity)
0032 
0033 //! Defines IGES Tabular Data, Type <406> Form <11>,
0034 //! in package IGESDefs
0035 //! This Class is used to provide a Structure to accommodate
0036 //! point form data.
0037 class IGESDefs_TabularData : public IGESData_IGESEntity
0038 {
0039 
0040 public:
0041 
0042   
0043   Standard_EXPORT IGESDefs_TabularData();
0044   
0045   //! This method is used to set the fields of the class
0046   //! TabularData
0047   //! - nbProps     : Number of property values
0048   //! - propType    : Property Type
0049   //! - typesInd    : Type of independent variables
0050   //! - nbValuesInd : Number of values of independent variables
0051   //! - valuesInd   : Values of independent variables
0052   //! - valuesDep   : Values of dependent variables
0053   //! raises exception if lengths of typeInd and nbValuesInd are not same
0054   Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Integer propType, const Handle(TColStd_HArray1OfInteger)& typesInd, const Handle(TColStd_HArray1OfInteger)& nbValuesInd, const Handle(IGESBasic_HArray1OfHArray1OfReal)& valuesInd, const Handle(IGESBasic_HArray1OfHArray1OfReal)& valuesDep);
0055   
0056   //! returns the number of property values (recorded)
0057   Standard_EXPORT Standard_Integer NbPropertyValues() const;
0058   
0059   //! determines the number of property values required
0060   Standard_EXPORT Standard_Integer ComputedNbPropertyValues() const;
0061   
0062   //! checks, and correct as necessary, the number of property
0063   //! values. Returns True if corrected, False if already OK
0064   Standard_EXPORT Standard_Boolean OwnCorrect();
0065   
0066   //! returns the property type
0067   Standard_EXPORT Standard_Integer PropertyType() const;
0068   
0069   //! returns the number of dependent variables
0070   Standard_EXPORT Standard_Integer NbDependents() const;
0071   
0072   //! returns the number of independent variables
0073   Standard_EXPORT Standard_Integer NbIndependents() const;
0074   
0075   //! returns the type of the num'th independent variable
0076   //! raises exception if num <= 0 or num > NbIndependents()
0077   Standard_EXPORT Standard_Integer TypeOfIndependents (const Standard_Integer num) const;
0078   
0079   //! returns the number of different values of the num'th indep. variable
0080   //! raises exception if num <= 0 or num > NbIndependents()
0081   Standard_EXPORT Standard_Integer NbValues (const Standard_Integer num) const;
0082   
0083   Standard_EXPORT Standard_Real IndependentValue (const Standard_Integer variablenum, const Standard_Integer valuenum) const;
0084   
0085   Standard_EXPORT Handle(TColStd_HArray1OfReal) DependentValues (const Standard_Integer num) const;
0086   
0087   Standard_EXPORT Standard_Real DependentValue (const Standard_Integer variablenum, const Standard_Integer valuenum) const;
0088 
0089 
0090 
0091 
0092   DEFINE_STANDARD_RTTIEXT(IGESDefs_TabularData,IGESData_IGESEntity)
0093 
0094 protected:
0095 
0096 
0097 
0098 
0099 private:
0100 
0101 
0102   Standard_Integer theNbPropertyValues;
0103   Standard_Integer thePropertyType;
0104   Handle(TColStd_HArray1OfInteger) theTypeOfIndependentVariables;
0105   Handle(TColStd_HArray1OfInteger) theNbValues;
0106   Handle(IGESBasic_HArray1OfHArray1OfReal) theIndependentValues;
0107   Handle(IGESBasic_HArray1OfHArray1OfReal) theDependentValues;
0108 
0109 
0110 };
0111 
0112 
0113 
0114 
0115 
0116 
0117 
0118 #endif // _IGESDefs_TabularData_HeaderFile