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
|
// 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
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_IGESDefs_UnitsData.hxx>
#include <Handle_Interface_HArray1OfHAsciiString.hxx>
#include <Handle_TColStd_HArray1OfReal.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
#include <Handle_TCollection_HAsciiString.hxx>
#include <Standard_Real.hxx>
class Interface_HArray1OfHAsciiString;
class TColStd_HArray1OfReal;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class TCollection_HAsciiString;
//! defines IGES UnitsData Entity, Type <316> Form <0>
//! in package IGESDefs
//! This class stores data about a model's fundamental units.
class IGESDefs_UnitsData : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESDefs_UnitsData();
//! This method is used to set the fields of the class
//! UnitsData
//! - unitTypes : Types of the units being defined
//! - unitValues : Unit Values of the units
//! - unitScales : Multiplicative Scale Factors
//! raises exception if lengths of unitTypes, unitValues and
//! unitScale are not same
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
Standard_EXPORT Standard_Integer NbUnits() const;
//! returns the Type of the UnitNum'th unit being defined
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits()
Standard_EXPORT Handle(TCollection_HAsciiString) UnitType (const Standard_Integer UnitNum) const;
//! returns the Units of the UnitNum'th unit being defined
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits()
Standard_EXPORT Handle(TCollection_HAsciiString) UnitValue (const Standard_Integer UnitNum) const;
//! returns the multiplicative scale factor to be apllied to the
//! UnitNum'th unit being defined
//! raises exception if UnitNum <= 0 or UnitNum > NbUnits()
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;
};
#endif // _IGESDefs_UnitsData_HeaderFile
|