VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
shape
shapePoint.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef SHAPEPOINT_H
7
#define SHAPEPOINT_H
8
9
#include "
shape/shapeDefines.h
"
10
#include <stdio.h>
11
#include "
geometry/point.h
"
12
#include "
shape/shapeElement.h
"
13
#include "
gdb/specMgr.h
"
14
15
class
DtShapeReader
;
16
class
DtShapeVectorReader
;
17
class
DtGroup
;
18
class
DtShapeProjection
;
19
20
// class DtShapePoint:
21
//
22
class
DT_DLL_shape
DtShapePoint
:
public
DtShapeElement
23
{
24
25
public
:
26
27
// default constructor.
28
DtShapePoint
();
29
30
DtShapePoint
(
double
elevationFactor);
31
32
// destructor
33
virtual
~
DtShapePoint
();
34
35
virtual
bool
load
(FILE* f,
bool
loadMeasures =
false
,
const
DtShapeProjection
* projection = NULL);
36
37
virtual
DtPoint
&
point
();
38
39
virtual
double
x();
40
virtual
double
y();
41
virtual
double
z();
42
43
virtual
void
setX(
double
x);
44
virtual
void
setY(
double
y);
45
virtual
void
setZ(
double
z);
46
47
virtual
void
setElevation
(
double
elev);
48
virtual
void
calculateMaxMins
(
double
& myMaxHigh,
double
& myMinHigh);
49
50
virtual
DtGroup
*
import
(
DtShapeReader
* reader);
51
virtual
bool
importAsFeature
(
DtShapeVectorReader
* reader,
52
DtSpecificationID
specID,
53
DtSpecification
& specification);
54
55
virtual
DtShapePoint
*
point
(
int
i);
56
virtual
DtInt32
numPoints
();
57
58
protected
:
59
60
DtPoint
myPoint
;
61
};
62
63
#endif
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
)