libsurf
Programmer's Documentation
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).
#include <igesfile.h>
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 | |
IgesDirectorySection & | directory () |
access directory | |
const IgesDirectorySection & | directory () const |
access directory | |
IgesParameterSection & | parameters () |
access parameter section | |
const IgesParameterSection & | parameters () 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 | |