1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0023009: Request of a new feature for units management during step import

Added method to get units from STEP file
This commit is contained in:
gka
2012-03-29 16:36:15 +04:00
parent 5fdb6d685b
commit d402d481e5
3 changed files with 344 additions and 4 deletions

View File

@@ -63,8 +63,12 @@ uses
CString, OStream, Transient, SequenceOfTransient from TColStd,
StepModel from StepData, WorkSession from XSControl,
ReturnStatus from IFSelect, PrintCount from IFSelect,
Shape from TopoDS, SequenceOfShape from TopTools
Shape from TopoDS, SequenceOfShape from TopTools,
SequenceOfAsciiString from TColStd,
Array1OfAsciiString from TColStd,
Array1OfReal from TColStd,
SequenceOfAsciiString from TColStd,
RepresentationContext from StepRepr
is
Create returns Reader;
@@ -88,5 +92,17 @@ is
NbRootsForTransfer (me : in out) returns Integer is redefined;
---Purpose : Determines the list of root entities from Model which are candidate for
-- a transfer to a Shape (type of entities is PRODUCT)
FileUnits(me : in out; theUnitLengthNames : in out SequenceOfAsciiString from TColStd;
theUnitAngleNames : in out SequenceOfAsciiString from TColStd;
theUnitSolidAngleNames : in out SequenceOfAsciiString from TColStd );
---Purpose : Returns sequence of all unit names for shape representations
-- found in file
findUnits(me : in out ; theReprContext : RepresentationContext from StepRepr;
theNameUnits : in out Array1OfAsciiString from TColStd;
theFactorUnits : in out Array1OfReal from TColStd) returns Boolean is private;
---Purpose : Returns units for length , angle and solidangle for shape representations
end Reader;