VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
shape
shapePolyLine.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef SHAPEPOLYLINE_H
7
#define SHAPEPOLYLINE_H
8
9
#include "
shape/shapeDefines.h
"
10
#include <stdio.h>
11
#include "
shape/shapeElement.h
"
12
#include "
gdb/specMgr.h
"
13
14
class
DtShapePoint
;
15
class
DtShapeReader
;
16
class
DtShapeVectorReader
;
17
class
DtGroup
;
18
19
// class DtShapePolyLine:
20
//
21
22
class
DT_DLL_shape
DtShapePolyLine
:
public
DtShapeElement
23
{
24
25
public
:
26
27
// default constructor.
28
DtShapePolyLine
(
double
elevationFactor,
bool
isPoly =
false
);
29
30
// destructor
31
virtual
~
DtShapePolyLine
();
32
33
virtual
bool
load
(FILE* f,
bool
loadMeasures =
false
,
const
DtShapeProjection
* projection = NULL);
34
virtual
DtShapePoint
*
point
(
int
i);
35
virtual
DtInt32
numPoints
();
36
virtual
DtInt32
numPoints
(
int
part);
37
virtual
DtInt32
numParts();
38
virtual
DtInt32
initialVertex(
int
part);
39
virtual
void
setElevation
(
double
elev);
40
virtual
void
calculateMaxMins
(
double
& myMaxHigh,
double
& myMinHigh);
41
42
virtual
DtGroup
*
import
(
DtShapeReader
* reader);
43
44
virtual
bool
importAsFeature
(
DtShapeVectorReader
* reader,
45
DtSpecificationID
specID,
46
DtSpecification
& specification);
47
48
protected
:
49
50
virtual
bool
importPolygonAsFeature(
DtShapeVectorReader
* reader,
51
DtSpecificationID
specID,
52
DtSpecification
& s);
53
54
virtual
bool
importPolyLineAsFeature(
DtShapeVectorReader
* reader,
55
DtSpecificationID
specID,
56
DtSpecification
& s);
57
58
DtNetFloat64 myBoundingBox[4];
59
DtNetInt32
myNumParts
;
60
DtNetInt32
myNumPoints
;
61
DtNetInt32*
myParts
;
62
DtShapePoint
*
myPoints
;
63
64
bool
myAmIPolygon
;
65
66
};
67
68
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)