|
Open CASCADE Technology 6.5.2
|
Tool for creation (encoding) and decoding (for writing and reading
accordingly) context defining units and tolerances (uncerntanties)
#include <STEPConstruct_UnitContext.hxx>
Public Member Functions | |
| void * | operator new (size_t, void *anAddress) |
| void * | operator new (size_t size) |
| void | operator delete (void *anAddress) |
| STEPConstruct_UnitContext () | |
| Creates empty tool | |
| void | Init (const Standard_Real Tol3d) |
| Creates new context (units are MM and radians, uncertainty equal to Tol3d) | |
| Standard_Boolean | IsDone () const |
| Returns True if Init was called successfully | |
| Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx | Value () const |
| Returns context (or Null if not done) | |
| Standard_Integer | ComputeFactors (const Handle< StepRepr_GlobalUnitAssignedContext > &aContext) |
| Computes the length, plane angle and solid angle conversion factor . Returns a status, 0 if OK | |
| Standard_Integer | ComputeFactors (const Handle< StepBasic_NamedUnit > &aUnit) |
| Standard_Integer | ComputeTolerance (const Handle< StepRepr_GlobalUncertaintyAssignedContext > &aContext) |
| Computes the uncertainty value (for length) | |
| Standard_Real | LengthFactor () const |
| Returns the lengthFactor | |
| Standard_Real | PlaneAngleFactor () const |
| Returns the planeAngleFactor | |
| Standard_Real | SolidAngleFactor () const |
| Returns the solidAngleFactor | |
| Standard_Real | Uncertainty () const |
| Returns the Uncertainty value (for length) It has been converted with LengthFactor | |
| Standard_Real | AreaFactor () const |
| Returns the areaFactor | |
| Standard_Real | VolumeFactor () const |
| Returns the volumeFactor | |
| Standard_Boolean | HasUncertainty () const |
| Tells if a Uncertainty (for length) is recorded | |
| Standard_Boolean | LengthDone () const |
| Returns true if ComputeFactors has calculated a LengthFactor | |
| Standard_Boolean | PlaneAngleDone () const |
| Returns true if ComputeFactors has calculated a PlaneAngleFactor | |
| Standard_Boolean | SolidAngleDone () const |
| Returns true if ComputeFactors has calculated a SolidAngleFactor | |
| Standard_Boolean | AreaDone () const |
| Returns true if areaFactor is computed | |
| Standard_Boolean | VolumeDone () const |
| Returns true if volumeFactor is computed | |
| Standard_CString | StatusMessage (const Standard_Integer status) const |
| Returns a message for a given status (0 - empty) This message can then be added as warning for transfer | |
Static Public Member Functions | |
| static Standard_Real | ConvertSiPrefix (const StepBasic_SiPrefix aPrefix) |
| Convert SI prefix defined by enumertaion to corresponding real factor (e.g. 1e6 for mega) | |
| STEPConstruct_UnitContext::STEPConstruct_UnitContext | ( | ) |
| Standard_Boolean STEPConstruct_UnitContext::AreaDone | ( | ) | const |
| Standard_Real STEPConstruct_UnitContext::AreaFactor | ( | ) | const |
| Standard_Integer STEPConstruct_UnitContext::ComputeFactors | ( | const Handle< StepBasic_NamedUnit > & | aUnit | ) |
| Standard_Integer STEPConstruct_UnitContext::ComputeFactors | ( | const Handle< StepRepr_GlobalUnitAssignedContext > & | aContext | ) |
| Standard_Integer STEPConstruct_UnitContext::ComputeTolerance | ( | const Handle< StepRepr_GlobalUncertaintyAssignedContext > & | aContext | ) |
| static Standard_Real STEPConstruct_UnitContext::ConvertSiPrefix | ( | const StepBasic_SiPrefix | aPrefix | ) | [static] |
| Standard_Boolean STEPConstruct_UnitContext::HasUncertainty | ( | ) | const |
| void STEPConstruct_UnitContext::Init | ( | const Standard_Real | Tol3d | ) |
| Standard_Boolean STEPConstruct_UnitContext::IsDone | ( | ) | const |
| Standard_Boolean STEPConstruct_UnitContext::LengthDone | ( | ) | const |
| Standard_Real STEPConstruct_UnitContext::LengthFactor | ( | ) | const |
| void STEPConstruct_UnitContext::operator delete | ( | void * | anAddress | ) | [inline] |
| void* STEPConstruct_UnitContext::operator new | ( | size_t | size | ) | [inline] |
| void* STEPConstruct_UnitContext::operator new | ( | size_t | , |
| void * | anAddress | ||
| ) | [inline] |
| Standard_Boolean STEPConstruct_UnitContext::PlaneAngleDone | ( | ) | const |
| Standard_Real STEPConstruct_UnitContext::PlaneAngleFactor | ( | ) | const |
| Standard_Boolean STEPConstruct_UnitContext::SolidAngleDone | ( | ) | const |
| Standard_Real STEPConstruct_UnitContext::SolidAngleFactor | ( | ) | const |
| Standard_CString STEPConstruct_UnitContext::StatusMessage | ( | const Standard_Integer | status | ) | const |
| Standard_Real STEPConstruct_UnitContext::Uncertainty | ( | ) | const |
| Handle_StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx STEPConstruct_UnitContext::Value | ( | ) | const |
| Standard_Boolean STEPConstruct_UnitContext::VolumeDone | ( | ) | const |
| Standard_Real STEPConstruct_UnitContext::VolumeFactor | ( | ) | const |
1.7.4