Main Page   Class Hierarchy   Compound List   File List   Compound Members  

UCSTable.h

00001 /**************************************************************************\
00002  * 
00003  *  FILE: UCSTable.h
00004  *
00005  *  This source file is part of DIME.
00006  *  Copyright (C) 1998-1999 by Systems In Motion.  All rights reserved.
00007  *
00008  *  This library is free software; you can redistribute it and/or modify it
00009  *  under the terms of the GNU General Public License, version 2, as
00010  *  published by the Free Software Foundation.
00011  *
00012  *  This library is distributed in the hope that it will be useful, but
00013  *  WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  *  General Public License (the accompanying file named COPYING) for more
00016  *  details.
00017  *
00018  **************************************************************************
00019  *
00020  *  If you need DIME for a non-GPL project, contact Systems In Motion
00021  *  to acquire a Professional Edition License:
00022  *
00023  *  Systems In Motion                                   http://www.sim.no/
00024  *  Prof. Brochs gate 6                                       sales@sim.no
00025  *  N-7030 Trondheim                                   Voice: +47 22114160
00026  *  NORWAY                                               Fax: +47 67172912
00027  *
00028 \**************************************************************************/
00029 
00030 #ifndef DIME_UCSTABLE_H
00031 #define DIME_UCSTABLE_H
00032 
00033 #include <dime/tables/TableEntry.h>
00034 #include <dime/util/Linear.h>
00035 
00036 class dimeUCSTable : public dimeTableEntry 
00037 {
00038 public:
00039   dimeUCSTable();
00040 
00041   virtual dimeTableEntry *copy(dimeModel * const model) const;
00042   virtual const char *getTableName() const;
00043 
00044   const dimeVec3f &getOrigin() const;
00045   const dimeVec3f &getXaxis() const;
00046   const dimeVec3f &getYaxis() const;
00047   
00048   void setOrigin(const dimeVec3f &v);
00049   void setXaxis(const dimeVec3f &v);
00050   void setYaxis(const dimeVec3f &v);
00051   
00052   virtual bool write(dimeOutput * const out);
00053   virtual int typeId() const;
00054   virtual int countRecords() const;
00055 
00056 protected:
00057   virtual bool handleRecord(const int groupcodes,
00058                             const dimeParam &param,
00059                             dimeMemHandler * const memhandler);
00060   
00061 private:
00062   dimeVec3f origin;
00063   dimeVec3f xaxis;
00064   dimeVec3f yaxis;
00065 
00066 }; // class dimeUCSTable
00067 
00068 inline const dimeVec3f &
00069 dimeUCSTable::getOrigin() const
00070 {
00071   return this->origin;
00072 }
00073 
00074 inline const dimeVec3f &
00075 dimeUCSTable::getXaxis() const
00076 {
00077   return this->xaxis;
00078 }
00079 
00080 inline const dimeVec3f &
00081 dimeUCSTable::getYaxis() const
00082 {
00083   return this->yaxis;
00084 }
00085 
00086 inline void 
00087 dimeUCSTable::setOrigin(const dimeVec3f &v)
00088 {
00089   this->origin = v;
00090 }
00091 
00092 inline void 
00093 dimeUCSTable::setXaxis(const dimeVec3f &v)
00094 {
00095   this->origin = v;
00096 }
00097 
00098 inline void 
00099 dimeUCSTable::setYaxis(const dimeVec3f &v)
00100 {
00101   this->origin = v;
00102 }
00103 
00104 #endif // ! DIME_UCSTABLE_H
00105 

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