Solid.h
1 /**************************************************************************\
2  *
3  * FILE: Solid.h
4  *
5  * This source file is part of DIME.
6  * Copyright (C) 1998-1999 by Systems In Motion. All rights reserved.
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU General Public License, version 2, as
10  * published by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License (the accompanying file named COPYING) for more
16  * details.
17  *
18  **************************************************************************
19  *
20  * If you need DIME for a non-GPL project, contact Systems In Motion
21  * to acquire a Professional Edition License:
22  *
23  * Systems In Motion http://www.sim.no/
24  * Prof. Brochs gate 6 sales@sim.no
25  * N-7030 Trondheim Voice: +47 22114160
26  * NORWAY Fax: +47 67172912
27  *
28 \**************************************************************************/
29 
30 #ifndef DIME_SOLID_H
31 #define DIME_SOLID_H
32 
33 #include <dime/entities/FaceEntity.h>
34 #include <dime/util/Linear.h>
35 
36 class DIME_DLL_API dimeSolid : public dimeFaceEntity
37 {
38 public:
39  dimeSolid();
40 
41  virtual dxfdouble getThickness() const;
42  virtual void getExtrusionDir(dimeVec3f &ed) const;
43  void setThickness(const dxfdouble &thickness);
44  void setExtrusionDir(const dimeVec3f &ed);
45 
46  virtual bool write(dimeOutput * const out);
47  virtual int typeId() const;
48  virtual dimeEntity *copy(dimeModel * const model) const;
49  virtual bool getRecord(const int groupcode,
50  dimeParam &param,
51  const int index = 0) const;
52  virtual const char *getEntityName() const;
53  virtual int countRecords() const;
54 
55 protected:
56  virtual bool swapQuadCoords() const;
57 
58  virtual bool handleRecord(const int groupcode,
59  const dimeParam &param,
60  dimeMemHandler * const memhandler);
61 
62 
63 private:
64  dimeVec3f extrusionDir;
65  dxfdouble thickness;
66 
67 }; // class dimeSolid
68 
69 #endif // ! DIME_SOLID_H
70 

Copyright © 1998-1999, Systems In Motion <sales@sim.no>. All rights reserved.
System documentation was generated using doxygen.