|
Open CASCADE Technology
6.5.4
|
defines IGES UnitsData Entity, Type <316> Form <0>
in package IGESDefs
This class stores data about a model's fundamental units.
#include <IGESDefs_UnitsData.hxx>

Public Member Functions | |
| IGESDefs_UnitsData () | |
| void | Init (const Handle< Interface_HArray1OfHAsciiString > &unitTypes, const Handle< Interface_HArray1OfHAsciiString > &unitValues, const Handle< TColStd_HArray1OfReal > &unitScales) |
| This method is used to set the fields of the class UnitsData | |
| Standard_Integer | NbUnits () const |
| returns the Number of units defined by this entity | |
| Handle_TCollection_HAsciiString | UnitType (const Standard_Integer UnitNum) const |
| returns the Type of the UnitNum'th unit being defined raises exception if UnitNum <= 0 or UnitNum > NbUnits() | |
| Handle_TCollection_HAsciiString | UnitValue (const Standard_Integer UnitNum) const |
| returns the Units of the UnitNum'th unit being defined raises exception if UnitNum <= 0 or UnitNum > NbUnits() | |
| Standard_Real | ScaleFactor (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() | |
| void IGESDefs_UnitsData::Init | ( | const Handle< Interface_HArray1OfHAsciiString > & | unitTypes, |
| const Handle< Interface_HArray1OfHAsciiString > & | unitValues, | ||
| const Handle< TColStd_HArray1OfReal > & | unitScales | ||
| ) |
- 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
unitScale are not same
| Standard_Integer IGESDefs_UnitsData::NbUnits | ( | ) | const |
| Standard_Real IGESDefs_UnitsData::ScaleFactor | ( | const Standard_Integer | UnitNum | ) | const |
| Handle_TCollection_HAsciiString IGESDefs_UnitsData::UnitType | ( | const Standard_Integer | UnitNum | ) | const |
| Handle_TCollection_HAsciiString IGESDefs_UnitsData::UnitValue | ( | const Standard_Integer | UnitNum | ) | const |
1.8.0