VR-Forces 4.2 Class Documentation
archivable3DPoint.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: archivable3DPoint.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef ARCHIVABLE3DPOINT_H_
13 #define ARCHIVABLE3DPOINT_H_
14 
16 #include <geometry/point.h>
18 
19 class DT_DLL_archiver DtArchivePoint : public DtPoint
20 {
21 public:
22  DtArchivePoint() : DtPoint() {};
23  DtArchivePoint(const DtPoint& pnt) : DtPoint(pnt) {};
24  DtArchivePoint(const DtArchivePoint& pnt) : DtPoint(pnt) {};
25 
27  //double* xValue() { return const_cast<double *>(&x()); };
28  double* xValue() { return &myRep[0]; };
29  double* yValue() { return &myRep[1]; };
30  double* zValue() { return &myRep[2]; };
31 };
32 
34 {
35 public:
38  DtArchivable3DPoint(const DtPoint& pnt);
39  virtual ~DtArchivable3DPoint();
40 
41  virtual DtArchivable3DPoint& operator=(const DtArchivable3DPoint& orig);
42 
43  virtual operator DtPoint*() const;
44  virtual operator DtPoint&() const;
45 
46  virtual DtPoint* point();
47 
48  static DtArchivableObject* create();
49 
51 
52 protected:
54 };
55 
56 #endif
57 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)