Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
IGESData_IGESReaderData Class Reference

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 correspondent recognized Entity (inherited from FileReaderData) Parameters are accessed through specific objects, ParamReaders More...

#include <IGESData_IGESReaderData.hxx>

Inheritance diagram for IGESData_IGESReaderData:

Public Member Functions

 IGESData_IGESReaderData (const int nbe, const int nbp)
 creates IGESReaderData correctly dimensioned (for arrays) <nbe> count of entities, that is, half nb of directory lines <nbp> : count of parameters
void AddStartLine (const char *const aval)
 adds a start line to start section
occ::handle< NCollection_HSequence< occ::handle< TCollection_HAsciiString > > > StartSection () const
 Returns the Start Section in once.
void AddGlobal (const Interface_ParamType atype, const char *const 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 int num, const int i1, const int i2, const int i3, const int i4, const int i5, const int i6, const int i7, const int i8, const int i9, const int i10, const int i11, const int i12, const int i13, const int i14, const int i15, const int i16, const int i17, const char *const res1, const char *const res2, const char *const label, const char *const 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 int num) const
 returns DirPart identified by record no (half Dsect number)
void DirValues (const int num, int &i1, int &i2, int &i3, int &i4, int &i5, int &i6, int &i7, int &i8, int &i9, int &i10, int &i11, int &i12, int &i13, int &i14, int &i15, int &i16, int &i17, char *res1, char *res2, char *label, char *subs) const
 returns values recorded in directory part n0 <num>
IGESData_IGESType DirType (const int num) const
 returns "type" and "form" info from a directory part
int NbEntities () const override
 Returns count of recorded Entities (i.e. size of Directory)
int FindNextRecord (const int num) const override
 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)
occ::handle< Interface_Check > GlobalCheck () const
 Returns the recorded Global Check.
void SetDefaultLineWeight (const double defw)
 allows to set a default line weight, will be later applied at load time, on Entities which have no specified line weight
double DefaultLineWeight () const
 Returns the recorded Default Line Weight, if there is (else, returns 0)
Public Member Functions inherited from Interface_FileReaderData
virtual int NbRecords () const
 Returns the count of registered records That is, value given for Initialization (can be redefined)
void InitParams (const int num)
 attaches an empty ParamList to a Record
void AddParam (const int num, const char *const aval, const Interface_ParamType atype, const int nument=0)
 Adds a parameter to record no "num" and fills its fields (EntityNumber is optional) Warning : <aval> is assumed to be memory-managed elsewhere : it is NOT copied. This gives a best speed : strings remain stored in pages of characters.
void AddParam (const int num, const TCollection_AsciiString &aval, const Interface_ParamType atype, const int nument=0)
 Same as above, but gets a AsciiString from TCollection Remark that the content of the AsciiString is locally copied (because its content is most often lost after using)
void AddParam (const int num, const Interface_FileParameter &FP)
 Same as above, but gets a complete FileParameter Warning : Content of <FP> is NOT copied : its original address and space in memory are assumed to be managed elsewhere (see ParamSet)
void SetParam (const int num, const int nump, const Interface_FileParameter &FP)
 Sets a new value for a parameter of a record, given by : num : record number; nump : parameter number in the record.
int NbParams (const int num) const
 Returns count of parameters attached to record "num" If <num> = 0, returns the total recorded count of parameters.
occ::handle< Interface_ParamList > Params (const int num) const
 Returns the complete ParamList of a record (read only) num = 0 to return the whole param list for the file.
const Interface_FileParameter & Param (const int num, const int nump) const
 Returns parameter "nump" of record "num", as a complete FileParameter.
Interface_FileParameter & ChangeParam (const int num, const int nump)
 Same as above, but in order to be modified on place.
Interface_ParamType ParamType (const int num, const int nump) const
 Returns type of parameter "nump" of record "num" Returns literal value of parameter "nump" of record "num" was C++ : return const &.
const char * ParamCValue (const int num, const int nump) const
 Same as above, but as a CString was C++ : return const.
bool IsParamDefined (const int num, const int nump) const
 Returns True if parameter "nump" of record "num" is defined (it is not if its type is ParamVoid)
int ParamNumber (const int num, const int nump) const
 Returns record number of an entity referenced by a parameter of type Ident; 0 if no EntityNumber has been determined Note that it is used to reference Entities but also Sublists (sublists are not objects, but internal descriptions)
const occ::handle< Standard_Transient > & ParamEntity (const int num, const int nump) const
 Returns the StepEntity referenced by a parameter Error if none.
int ParamFirstRank (const int num) const
 Returns the absolute rank of the beginning of a record (its list is from ParamFirstRank+1 to ParamFirstRank+NbParams)
const occ::handle< Standard_Transient > & BoundEntity (const int num) const
 Returns the entity bound to a record, set by SetEntities.
void BindEntity (const int num, const occ::handle< Standard_Transient > &ent)
 Binds an entity to a record.
void SetErrorLoad (const bool val)
 Sets the status "Error Load" on, to overside check fails <val> True : declares unloaded <val> False : declares loaded If not called before loading (see FileReaderTool), check fails give the status IsErrorLoad says if SetErrorLoad has been called by user ResetErrorLoad resets it (called by FileReaderTool) This allows to specify that the currently loaded entity remains unloaded (because of syntactic fail)
bool IsErrorLoad () const
 Returns True if the status "Error Load" has been set (to True or False)
bool ResetErrorLoad ()
 Returns the former value of status "Error Load" then resets it Used to read the status then ensure it is reset.
void Destroy ()
 Destructor (waiting for memory management)
 ~Interface_FileReaderData () override
Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
Standard_Transient & operator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
virtual ~Standard_Transient ()=default
 Destructor must be virtual.
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
bool IsInstance (const char *const theTypeName) const
 Returns a true value if this is an instance of TypeName.
bool IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
bool IsKind (const char *const theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
Standard_Transient * This () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
int GetRefCount () const noexcept
 Get the reference counter of this object.
void IncrementRefCounter () noexcept
 Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
int DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
virtual void Delete () const
 Memory deallocator for transient classes.

Additional Inherited Members

typedef void base_type
 Returns a type descriptor about this object.
Static Public Member Functions inherited from Interface_FileReaderData
static double Fastof (const char *const str)
 Same spec.s as standard <atof> but 5 times faster.
static constexpr const char * get_type_name ()
 Returns a type descriptor about this object.
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
Protected Member Functions inherited from Interface_FileReaderData
 Interface_FileReaderData (const int nbr, const int npar)
 Initializes arrays of Entities and of ParamLists attached to registered records <nbr> must be the maximum number of records to get (no way to extend it at run-time) : count entities and sub-entities ... <npar> is the total count of parameters (if it is not exact, it will be extended as necessary)
Interface_FileParameter & ChangeParameter (const int numpar)
 Returns a parameter given its absolute rank in the file in order to be consulted or modified in specilaized actions.
void ParamPosition (const int numpar, int &num, int &nump) const
 For a given absolute rank of parameter, determines the record to which its belongs, and the parameter number for it.

Detailed Description

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 correspondent recognized Entity (inherited from FileReaderData) Parameters are accessed through specific objects, ParamReaders

Constructor & Destructor Documentation

◆ IGESData_IGESReaderData()

IGESData_IGESReaderData::IGESData_IGESReaderData ( const int nbe,
const int nbp )

creates IGESReaderData correctly dimensioned (for arrays) <nbe> count of entities, that is, half nb of directory lines <nbp> : count of parameters

Member Function Documentation

◆ AddGlobal()

void IGESData_IGESReaderData::AddGlobal ( const Interface_ParamType atype,
const char *const aval )

adds a parameter to global section's parameter list

◆ AddStartLine()

void IGESData_IGESReaderData::AddStartLine ( const char *const aval)

adds a start line to start section

◆ DefaultLineWeight()

double IGESData_IGESReaderData::DefaultLineWeight ( ) const

Returns the recorded Default Line Weight, if there is (else, returns 0)

◆ DirPart()

const IGESData_DirPart & IGESData_IGESReaderData::DirPart ( const int num) const

returns DirPart identified by record no (half Dsect number)

◆ DirType()

IGESData_IGESType IGESData_IGESReaderData::DirType ( const int num) const

returns "type" and "form" info from a directory part

◆ DirValues()

void IGESData_IGESReaderData::DirValues ( const int num,
int & i1,
int & i2,
int & i3,
int & i4,
int & i5,
int & i6,
int & i7,
int & i8,
int & i9,
int & i10,
int & i11,
int & i12,
int & i13,
int & i14,
int & i15,
int & i16,
int & i17,
char * res1,
char * res2,
char * label,
char * subs ) const

returns values recorded in directory part n0 <num>

◆ FindNextRecord()

int IGESData_IGESReaderData::FindNextRecord ( const int num) const
overridevirtual

determines next suitable record from num; that is num+1 except for last one which gives 0

Implements Interface_FileReaderData.

◆ GlobalCheck()

occ::handle< Interface_Check > IGESData_IGESReaderData::GlobalCheck ( ) const

Returns the recorded Global Check.

◆ GlobalSection()

const IGESData_GlobalSection & IGESData_IGESReaderData::GlobalSection ( ) const

returns header as GlobalSection

◆ NbEntities()

int IGESData_IGESReaderData::NbEntities ( ) const
overridevirtual

Returns count of recorded Entities (i.e. size of Directory)

Reimplemented from Interface_FileReaderData.

◆ SetDefaultLineWeight()

void IGESData_IGESReaderData::SetDefaultLineWeight ( const double defw)

allows to set a default line weight, will be later applied at load time, on Entities which have no specified line weight

◆ SetDirPart()

void IGESData_IGESReaderData::SetDirPart ( const int num,
const int i1,
const int i2,
const int i3,
const int i4,
const int i5,
const int i6,
const int i7,
const int i8,
const int i9,
const int i10,
const int i11,
const int i12,
const int i13,
const int i14,
const int i15,
const int i16,
const int i17,
const char *const res1,
const char *const res2,
const char *const label,
const char *const subs )

fills a DirPart, designated by its rank (that is, (N+1)/2 if N is its first number in section D)

◆ SetEntityNumbers()

void IGESData_IGESReaderData::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)

◆ SetGlobalSection()

void IGESData_IGESReaderData::SetGlobalSection ( )

reads header (as GlobalSection) content from the ParamSet after it has been filled by successive calls to AddGlobal

◆ StartSection()

occ::handle< NCollection_HSequence< occ::handle< TCollection_HAsciiString > > > IGESData_IGESReaderData::StartSection ( ) const

Returns the Start Section in once.


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