UCSTable.h
1 /**************************************************************************\
2  *
3  * FILE: UCSTable.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_UCSTABLE_H
31 #define DIME_UCSTABLE_H
32 
33 #include <dime/tables/TableEntry.h>
34 #include <dime/util/Linear.h>
35 
36 class DIME_DLL_API dimeUCSTable : public dimeTableEntry
37 {
38 public:
39  dimeUCSTable();
40 
41  virtual dimeTableEntry *copy(dimeModel * const model) const;
42  virtual const char *getTableName() const;
43 
44  const dimeVec3f &getOrigin() const;
45  const dimeVec3f &getXaxis() const;
46  const dimeVec3f &getYaxis() const;
47 
48  void setOrigin(const dimeVec3f &v);
49  void setXaxis(const dimeVec3f &v);
50  void setYaxis(const dimeVec3f &v);
51 
52  virtual bool write(dimeOutput * const out);
53  virtual int typeId() const;
54  virtual int countRecords() const;
55 
56 protected:
57  virtual bool handleRecord(const int groupcodes,
58  const dimeParam &param,
59  dimeMemHandler * const memhandler);
60 
61 private:
62  dimeVec3f origin;
63  dimeVec3f xaxis;
64  dimeVec3f yaxis;
65 
66 }; // class dimeUCSTable
67 
68 inline const dimeVec3f &
69 dimeUCSTable::getOrigin() const
70 {
71  return this->origin;
72 }
73 
74 inline const dimeVec3f &
75 dimeUCSTable::getXaxis() const
76 {
77  return this->xaxis;
78 }
79 
80 inline const dimeVec3f &
81 dimeUCSTable::getYaxis() const
82 {
83  return this->yaxis;
84 }
85 
86 inline void
87 dimeUCSTable::setOrigin(const dimeVec3f &v)
88 {
89  this->origin = v;
90 }
91 
92 inline void
93 dimeUCSTable::setXaxis(const dimeVec3f &v)
94 {
95  this->origin = v;
96 }
97 
98 inline void
99 dimeUCSTable::setYaxis(const dimeVec3f &v)
100 {
101  this->origin = v;
102 }
103 
104 #endif // ! DIME_UCSTABLE_H
105 

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