libsurf
Programmer's Documentation

iges116.h (r6227/r5618)
1 
2 /* Copyright (C) 2015 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_IGES116_H
16 #define SURF_IGES116_H
17 
18 #include "igesentity.h"
19 #include <genua/point.h>
20 
32 class IgesPoint : public IgesEntity
33 {
34  public:
35 
37  IgesPoint() : IgesEntity(116), symbol(0) {}
38 
40  IgesPoint(const Vct3 &p) : IgesEntity(116), pt(p), symbol(0) {}
41 
43  const Real & operator[] (uint i) const {return pt[i];}
44 
46  Real & operator[] (uint i) {return pt[i];}
47 
49  const Vct3 & location() const {return pt;}
50 
52  uint symbolSubfig() const {return symbol;}
53 
55  void definition(IgesFile & file);
56 
58  uint parse(const std::string & pds, const Indices & vpos);
59 
60  private:
61 
63  Vct3 pt;
64 
66  uint symbol;
67 };
68 
69 #endif // IGES116_H
uint symbolSubfig() const
access the DE of the subfigure representing the symbol
Definition: iges116.h:52
Base class for entities in IGES files.
Definition: igesentity.h:32
Main interface to IGES files.
Definition: igesfile.h:32
const Vct3 & location() const
access location
Definition: iges116.h:49
uint parse(const std::string &pds, const Indices &vpos)
parse entity data
Definition: iges116.cpp:27
void definition(IgesFile &file)
assemble definition
Definition: iges116.cpp:19
uint symbol
pointer to subfigure indicating symbol used
Definition: iges116.h:66
IgesPoint()
create empty entity
Definition: iges116.h:37
Vct3 pt
point coordinates
Definition: iges116.h:63
IgesPoint(const Vct3 &p)
create defined point
Definition: iges116.h:40
IGES 116 : Point.
Definition: iges116.h:32
const Real & operator[](uint i) const
access coordinates
Definition: iges116.h:43
Generated on Wed Jan 19 2022 03:03:15 for libsurf by   doxygen 1.8.5