Open CASCADE Technology
6.5.4
|
specific FileReaderData for IGES
contains header as GlobalSection, and for each Entity, its
directory part as DirPart, list of Parameters as ParamSet
Each Item has a DirPart, plus classically a ParamSet and the
correspondant recognized Entity (inherited from FileReaderData)
Parameters are accessed through specific objects, ParamReaders
#include <IGESData_IGESReaderData.hxx>
Public Member Functions | |
IGESData_IGESReaderData (const Standard_Integer nbe, const Standard_Integer nbp) | |
creates IGESReaderData correctly dimensionned (for arrays) <nbe> count of entities, that is, half nb of directory lines <nbp> : count of parameters | |
void | AddStartLine (const Standard_CString aval) |
adds a start line to start section | |
Handle_TColStd_HSequenceOfHAsciiString | StartSection () const |
Returns the Start Section in once | |
void | AddGlobal (const Interface_ParamType atype, const Standard_CString aval) |
adds a parameter to global section's parameter list | |
void | SetGlobalSection () |
reads header (as GlobalSection) content from the ParamSet after it has been filled by successive calls to AddGlobal | |
const IGESData_GlobalSection & | GlobalSection () const |
returns header as GlobalSection | |
void | SetDirPart (const Standard_Integer num, const Standard_Integer i1, const Standard_Integer i2, const Standard_Integer i3, const Standard_Integer i4, const Standard_Integer i5, const Standard_Integer i6, const Standard_Integer i7, const Standard_Integer i8, const Standard_Integer i9, const Standard_Integer i10, const Standard_Integer i11, const Standard_Integer i12, const Standard_Integer i13, const Standard_Integer i14, const Standard_Integer i15, const Standard_Integer i16, const Standard_Integer i17, const Standard_CString res1, const Standard_CString res2, const Standard_CString label, const Standard_CString subs) |
fills a DirPart, designated by its rank (that is, (N+1)/2 if N is its first number in section D) | |
const IGESData_DirPart & | DirPart (const Standard_Integer num) const |
returns DirPart identified by record no (half Dsect number) | |
void | DirValues (const Standard_Integer num, Standard_Integer &i1, Standard_Integer &i2, Standard_Integer &i3, Standard_Integer &i4, Standard_Integer &i5, Standard_Integer &i6, Standard_Integer &i7, Standard_Integer &i8, Standard_Integer &i9, Standard_Integer &i10, Standard_Integer &i11, Standard_Integer &i12, Standard_Integer &i13, Standard_Integer &i14, Standard_Integer &i15, Standard_Integer &i16, Standard_Integer &i17, Standard_CString &res1, Standard_CString &res2, Standard_CString &label, Standard_CString &subs) const |
returns values recorded in directory part n0 <num> | |
IGESData_IGESType | DirType (const Standard_Integer num) const |
returns "type" and "form" info from a directory part | |
virtual Standard_Integer | NbEntities () const |
Returns count of recorded Entities (i.e. size of Directory) | |
Standard_Integer | FindNextRecord (const Standard_Integer num) const |
determines next suitable record from num; that is num+1 except for last one which gives 0 | |
void | SetEntityNumbers () |
determines reference numbers in EntityNumber fields (called by SetEntities from IGESReaderTool) works on "Integer" type Parameters, because IGES does not distinguish Integer and Entity Refs : every Integer which is odd and less than twice NbRecords can be an Entity Ref ... (Ref Number is then (N+1)/2 if N is the Integer Value) | |
Handle_Interface_Check | GlobalCheck () const |
Returns the recorded Global Check | |
void | SetDefaultLineWeight (const Standard_Real defw) |
allows to set a default line weight, will be later applied at load time, on Entities which have no specified line weight | |
Standard_Real | DefaultLineWeight () const |
Returns the recorded Default Line Weight, if there is (else, returns 0) |
IGESData_IGESReaderData::IGESData_IGESReaderData | ( | const Standard_Integer | nbe, |
const Standard_Integer | nbp | ||
) |
void IGESData_IGESReaderData::AddGlobal | ( | const Interface_ParamType | atype, |
const Standard_CString | aval | ||
) |
void IGESData_IGESReaderData::DirValues | ( | const Standard_Integer | num, |
Standard_Integer & | i1, | ||
Standard_Integer & | i2, | ||
Standard_Integer & | i3, | ||
Standard_Integer & | i4, | ||
Standard_Integer & | i5, | ||
Standard_Integer & | i6, | ||
Standard_Integer & | i7, | ||
Standard_Integer & | i8, | ||
Standard_Integer & | i9, | ||
Standard_Integer & | i10, | ||
Standard_Integer & | i11, | ||
Standard_Integer & | i12, | ||
Standard_Integer & | i13, | ||
Standard_Integer & | i14, | ||
Standard_Integer & | i15, | ||
Standard_Integer & | i16, | ||
Standard_Integer & | i17, | ||
Standard_CString & | res1, | ||
Standard_CString & | res2, | ||
Standard_CString & | label, | ||
Standard_CString & | subs | ||
) | const |
Standard_Integer IGESData_IGESReaderData::FindNextRecord | ( | const Standard_Integer | num | ) | const [virtual] |
Implements Interface_FileReaderData.
Handle_Interface_Check IGESData_IGESReaderData::GlobalCheck | ( | ) | const |
virtual Standard_Integer IGESData_IGESReaderData::NbEntities | ( | ) | const [virtual] |
Reimplemented from Interface_FileReaderData.
void IGESData_IGESReaderData::SetDirPart | ( | const Standard_Integer | num, |
const Standard_Integer | i1, | ||
const Standard_Integer | i2, | ||
const Standard_Integer | i3, | ||
const Standard_Integer | i4, | ||
const Standard_Integer | i5, | ||
const Standard_Integer | i6, | ||
const Standard_Integer | i7, | ||
const Standard_Integer | i8, | ||
const Standard_Integer | i9, | ||
const Standard_Integer | i10, | ||
const Standard_Integer | i11, | ||
const Standard_Integer | i12, | ||
const Standard_Integer | i13, | ||
const Standard_Integer | i14, | ||
const Standard_Integer | i15, | ||
const Standard_Integer | i16, | ||
const Standard_Integer | i17, | ||
const Standard_CString | res1, | ||
const Standard_CString | res2, | ||
const Standard_CString | label, | ||
const Standard_CString | subs | ||
) |
Handle_TColStd_HSequenceOfHAsciiString IGESData_IGESReaderData::StartSection | ( | ) | const |