VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
archiver
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
15
#include "
archiver/archiverDefines.h
"
16
#include <
geometry/point.h
>
17
#include "
archiver/archivableObject.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
33
class
DT_DLL_archiver
DtArchivable3DPoint
:
public
DtArchivableObject
34
{
35
public
:
36
DtArchivable3DPoint
();
37
DtArchivable3DPoint
(
const
DtArchivable3DPoint
& pnt);
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
50
DECLARE_ARCHIVABLE_CREATOR
()
51
52
protected
:
53
DtArchivePoint
myPoint
;
54
};
55
56
#endif
57
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)