libsurf
Programmer's Documentation

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

Detailed Description

IGES 308 : Subfigure.

Although named in a strange manner, this entity type is commonly employed to generate assemblies, that is, to group components and map hierarchical part-in-assembly relationships.

See Also
IgesEntity, IgesFile

#include <iges308.h>

Inheritance diagram for IgesSubfigure:
[legend]
Collaboration diagram for IgesSubfigure:
[legend]

Public Member Functions

 IgesSubfigure ()
 create empty subfigure
 
const std::string & name () const
 subfigure name
 
void rename (const std::string &s)
 rename subfigure
 
void nestingDepth (uint d)
 assign nesting depth
 
uint size () const
 number of DEs referenced
 
uint operator[] (uint k) const
 access DE index k
 
const Indices & subEntities () const
 access dependencies
 
void copy (const Indices &idx)
 copy entities
 
void appendEntity (uint k)
 append single entity
 
void definition (IgesFile &file)
 assemble definition
 
uint parse (const std::string &pds, const Indices &vpos)
 parse entity data
 
- Public Member Functions inherited from IgesEntity
 IgesEntity (int ety)
 create entity type etype
 
virtual ~IgesEntity ()
 destroy
 
int etype () const
 entity type
 
int classOf () const
 entity class identifier
 
void form (int f)
 access the form field of the directory entry
 
void blank (int b)
 access status field: blank (0/1)
 
void subswitch (int b)
 access status field: subordinate switch (0-3)
 
void useflag (int b)
 access status field: use flag (0-6)
 
void hierarchy (int b)
 access status field: hierachy flag (0-2)
 
void trafoMatrix (int tfi)
 access transformation matrix field
 
int trafoMatrix ()
 access transformation matrix field
 
void label (const char *s)
 set entity label (use only 8 characters)
 
std::string label () const
 return label, if present
 
void subscript (int s)
 set entity subscript
 
void addNoteRef (int ide)
 add reference to assoc/note DE
 
void addPropRef (int ide)
 add reference to property/attribute table DE
 
uint pindex () const
 parameter data index
 
uint nNoteRef () const
 number of notes
 
uint nPropRef () const
 number of property references
 
int noteRef (uint k) const
 access note reference k
 
int propRef (uint k) const
 access property reference k
 
int append (IgesFile &igfile)
 append entity to file
 
bool retrieve (const IgesFile &igfile)
 retrieve entity from file
 

Private Attributes

std::string id
 subfigure name
 
uint depth
 nesting depth
 
Indices deps
 directory entries of sub-entities
 

Additional Inherited Members

- Public Types inherited from IgesEntity
enum  IgesEntityClass {
  NoClass = 0, PointClass = 1, LineClass = 2, CurveClass = 4,
  SurfaceClass = 8, StructureClass = 16, AnyClass = 31
}
 
- Static Public Member Functions inherited from IgesEntity
static IgesEntitycreate (const IgesDirEntry &e)
 generate a new entity from code, return zero if not implemented
 
template<class EType >
static bool as (const IgesEntityPtr &ep, EType &t)
 convenience function
 
static int classOf (int etype)
 identity class of entity number
 
- Static Protected Member Functions inherited from IgesEntity
static int asInt (const char *s, int k)
 convenience conversion function
 
static double asDouble (const char *s, int k)
 convenience conversion function
 
- Protected Attributes inherited from IgesEntity
IgesDirEntry entry
 directory entry
 
int plcpre
 line counts in parameter section
 
int plcpost
 
std::vector< int > addprop1
 additional properties (two groups)
 
std::vector< int > addprop2
 

The documentation for this class was generated from the following files:
Generated on Fri Dec 2 2022 03:03:16 for libsurf by   doxygen 1.8.5