summaryrefslogtreecommitdiff
path: root/inc/IGESDefs_UnitsData.hxx
blob: 09b7bce7b19114e66655da3041de7d377ef85dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _IGESDefs_UnitsData_HeaderFile
#define _IGESDefs_UnitsData_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_IGESDefs_UnitsData_HeaderFile
#include <Handle_IGESDefs_UnitsData.hxx>
#endif

#ifndef _Handle_Interface_HArray1OfHAsciiString_HeaderFile
#include <Handle_Interface_HArray1OfHAsciiString.hxx>
#endif
#ifndef _Handle_TColStd_HArray1OfReal_HeaderFile
#include <Handle_TColStd_HArray1OfReal.hxx>
#endif
#ifndef _IGESData_IGESEntity_HeaderFile
#include <IGESData_IGESEntity.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_TCollection_HAsciiString_HeaderFile
#include <Handle_TCollection_HAsciiString.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class Interface_HArray1OfHAsciiString;
class TColStd_HArray1OfReal;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class TCollection_HAsciiString;


//! defines IGES UnitsData Entity, Type <316> Form <0> <br>
//!          in package IGESDefs <br>
//!          This class stores data about a model's fundamental units. <br>
class IGESDefs_UnitsData : public IGESData_IGESEntity {

public:

  
  Standard_EXPORT   IGESDefs_UnitsData();
  //! This method is used to set the fields of the class <br>
//!           UnitsData <br>
//!       - unitTypes  : Types of the units being defined <br>
//!       - unitValues : Unit Values of the units <br>
//!       - unitScales : Multiplicative Scale Factors <br>
//! raises exception if lengths of unitTypes, unitValues and <br>
//! unitScale are not same <br>
  Standard_EXPORT     void Init(const Handle(Interface_HArray1OfHAsciiString)& unitTypes,const Handle(Interface_HArray1OfHAsciiString)& unitValues,const Handle(TColStd_HArray1OfReal)& unitScales) ;
  //! returns the Number of units defined by this entity <br>
  Standard_EXPORT     Standard_Integer NbUnits() const;
  //! returns the Type of the UnitNum'th unit being defined <br>
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits() <br>
  Standard_EXPORT     Handle_TCollection_HAsciiString UnitType(const Standard_Integer UnitNum) const;
  //! returns the Units of the UnitNum'th unit being defined <br>
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits() <br>
  Standard_EXPORT     Handle_TCollection_HAsciiString UnitValue(const Standard_Integer UnitNum) const;
  //! returns the multiplicative scale factor to be apllied to the <br>
//! UnitNum'th unit being defined <br>
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits() <br>
  Standard_EXPORT     Standard_Real ScaleFactor(const Standard_Integer UnitNum) const;




  DEFINE_STANDARD_RTTI(IGESDefs_UnitsData)

protected:




private: 


Handle_Interface_HArray1OfHAsciiString theUnitTypes;
Handle_Interface_HArray1OfHAsciiString theUnitValues;
Handle_TColStd_HArray1OfReal theUnitScales;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif