libsurf
Programmer's Documentation

iges110.h (r6227/r5634)
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_IGES110_H
16 #define SURF_IGES110_H
17 
18 #include "forward.h"
19 #include "igesentity.h"
20 
38 class IgesLineEntity : public IgesEntity
39 {
40  public:
41 
44 
46  IgesLineEntity(const Vct3 &a, const Vct3 &b);
47 
49  void setup(const double a[], const double b[]) {
50  for (int k=0; k<3; ++k) {
51  p1[k] = a[k]; p2[k] = b[k];
52  }
53  }
54 
56  const double *point1() const {return p1;}
57 
59  const double *point2() const {return p2;}
60 
62  void definition(IgesFile & file);
63 
65  uint parse(const std::string & pds, const Indices & vpos);
66 
67  private:
68 
70  double p1[3], p2[3];
71 };
72 
73 
74 #endif // IGES110_H
void definition(IgesFile &file)
assemble definition
Definition: iges110.cpp:24
Base class for entities in IGES files.
Definition: igesentity.h:32
uint parse(const std::string &pds, const Indices &vpos)
parse entity data
Definition: iges110.cpp:33
void setup(const double a[], const double b[])
copy data from provider
Definition: iges110.h:49
Main interface to IGES files.
Definition: igesfile.h:32
const double * point2() const
access point 2
Definition: iges110.h:59
IGES 110 : Line.
Definition: iges110.h:38
const double * point1() const
access point 1
Definition: iges110.h:56
IgesLineEntity()
create line entity
Definition: iges110.h:43
double p1[3]
defined by two points
Definition: iges110.h:70
Generated on Wed Jan 19 2022 03:03:15 for libsurf by   doxygen 1.8.5