Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
IGESDefs_UnitsData Class Reference

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>

Inheritance diagram for IGESDefs_UnitsData:
Inheritance graph
[legend]

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()


Constructor & Destructor Documentation


Member Function Documentation

  - 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

Handle_TCollection_HAsciiString IGESDefs_UnitsData::UnitType ( const Standard_Integer  UnitNum) const
Handle_TCollection_HAsciiString IGESDefs_UnitsData::UnitValue ( const Standard_Integer  UnitNum) const

The documentation for this class was generated from the following file: