libsurf
Programmer's Documentation

iges402.h (r6227/r5927)
1 
2 /* Copyright (C) 2017 David Eller <david@larosterna.com>
3  *
4  * Commercial License Usage
5  * Licensees holding valid commercial licenses may use this file in accordance
6  * with the terms contained in their respective non-exclusive license agreement.
7  * For further information contact david@larosterna.com .
8  *
9  * GNU General Public License Usage
10  * Alternatively, this file may be used under the terms of the GNU General
11  * Public License version 3.0 as published by the Free Software Foundation and
12  * appearing in the file gpl.txt included in the packaging of this file.
13  */
14 
15 #ifndef SURF_IGES402_H
16 #define SURF_IGES402_H
17 
18 #include <genua/defines.h>
19 #include "igesentity.h"
20 
30 {
31  public:
32 
35 
37  bool ordered() const;
38 
40  bool backpointers() const;
41 
43  uint size() const {return deps.size();}
44 
46  uint operator[] (uint k) const {
47  assert(k < deps.size());
48  return deps[k];
49  }
50 
52  const Indices & subEntities() const {return deps;}
53 
55  void copy(const Indices & idx) {deps = idx;}
56 
58  void appendEntity(uint k) {deps.push_back(k);}
59 
61  void definition(IgesFile & file);
62 
64  uint parse(const std::string & pds, const Indices & vpos);
65 
66  private:
67 
69  Indices deps;
70 };
71 
72 #endif // IGES402_H
73 
IGES 402: Associativity Instance.
Definition: iges402.h:29
uint operator[](uint k) const
access DE index k
Definition: iges402.h:46
const Indices & subEntities() const
access dependencies
Definition: iges402.h:52
Base class for entities in IGES files.
Definition: igesentity.h:32
Main interface to IGES files.
Definition: igesfile.h:32
Indices deps
directory entries of sub-entities
Definition: iges402.h:69
void definition(IgesFile &file)
assemble definition
Definition: iges402.cpp:32
uint parse(const std::string &pds, const Indices &vpos)
parse entity data
Definition: iges402.cpp:42
void appendEntity(uint k)
append single entity
Definition: iges402.h:58
bool backpointers() const
back-pointers or not?
Definition: iges402.cpp:26
IgesAssociativity()
create empty subfigure
Definition: iges402.h:34
void copy(const Indices &idx)
copy entities
Definition: iges402.h:55
bool ordered() const
ordered or not?
Definition: iges402.cpp:20
uint size() const
number of DEs referenced
Definition: iges402.h:43
Generated on Wed Jan 19 2022 03:03:15 for libsurf by   doxygen 1.8.5