Programmer's Documentation

Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
IgesFile Class Reference

Detailed Description

Main interface to IGES files.

This class is employed both to import existing IGES 5.3 files and to assemble compliant files from geometry objects. Note that each object to be written to file generates a directory entry (IgesDirEntry) and a block of parameter data (IgesEntity).

See Also
IgesDirEntry, IgesEntity

#include <igesfile.h>

Collaboration diagram for IgesFile:

Public Member Functions

 IgesFile ()
 empty IGES file
void startContent (const std::string &s)
 set start section content
void productName (const std::string &s)
 change product name
double modelTolerance () const
 access model tolerance
void modelTolerance (double tol)
 change model tolerance
void fileName (const std::string &s)
 change file name in global section
void nativeSystem (const std::string &s)
 change native system name in global section
void preprocessorVersion (const std::string &s)
 change preprocessor version in global section
const std::string & unitName () const
 access length unit name
void unitName (const std::string &s)
 set unit name
int nDirEntries () const
 number of directory entries currently present
void dirEntry (uint de, IgesDirEntry &entry) const
 access directory entry by iges index
IgesEntityPtr createEntity (const IgesDirEntry &entry) const
 create entity corresponding to to entry
IgesEntityPtr createEntity (uint de) const
 create entity corresponding to to entry index
template<class EntityType >
bool createEntity (const IgesDirEntry &entry, EntityType &et) const
 convenience function
template<class EntityType >
bool createEntity (uint de, EntityType &et) const
 convenience function
IgesDirectorySectiondirectory ()
 access directory
const IgesDirectorySectiondirectory () const
 access directory
IgesParameterSectionparameters ()
 access parameter section
const IgesParameterSectionparameters () const
 access parameter section
void write (const std::string &fname)
 write to file
void read (const std::string &fname)
 read sections from file

Static Public Member Functions

static bool isIges (const std::string &fname)
 check if the file 'fname' looks like IGES format

Private Attributes

IgesStartSection startSec
 start section with user-readable header
IgesGlobalSection globalSec
 global section with file-wide parameters
IgesDirectorySection dirSec
 entity directory section
IgesParameterSection parSec
 parameter data section

The documentation for this class was generated from the following files:
Generated on Mon May 23 2022 03:03:16 for libsurf by   doxygen 1.8.5