VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
shape
shapeMultipatch.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef SHAPEMULTIPATCH_H
7
#define SHAPEMULTIPATCH_H
8
9
#include "
shape/shapeDefines.h
"
10
#include <stdio.h>
11
#include "
shape/shapeElement.h
"
12
#include "
gdb/specificationManager.h
"
13
14
class
DtShapePointZ
;
15
class
DtShapePoint
;
16
class
DtShapeReader
;
17
class
DtShapeVectorReader
;
18
class
DtGroup
;
19
20
// class DtShapeMultipatch:
21
//
22
23
enum
DtShapeMultipatchPartType
24
{
25
SHAPEMULTIPATCH_STRIP
,
26
SHAPEMULTIPATCH_FAN
,
27
SHAPEMULTIPATCH_OUTER
,
28
SHAPEMULTIPATCH_INNER
,
29
SHAPEMULTIPATCH_FIRST
,
30
SHAPEMULTIPATCH_RING
31
};
32
33
class
DT_DLL_shape
DtShapeMultipatch
:
public
DtShapeElement
34
{
35
36
public
:
37
38
// default constructor.
39
DtShapeMultipatch
(
double
elevationFactor);
40
41
// destructor
42
virtual
~
DtShapeMultipatch
();
43
44
virtual
bool
load
(FILE* f,
bool
loadMeasures =
true
,
const
DtShapeProjection
* projection = NULL);
45
virtual
DtShapePoint
*
point
(
int
i);
46
virtual
DtInt32
numPoints
();
47
virtual
DtInt32
numPoints
(
int
part);
48
virtual
DtInt32
numParts();
49
virtual
DtInt32
initialVertex(
int
part);
50
virtual
DtInt32
partType(
int
part);
51
virtual
void
setElevation
(
double
elev);
52
virtual
void
calculateMaxMins
(
double
& myMaxHigh,
double
& myMinHigh);
53
54
virtual
DtGroup
*
import
(
DtShapeReader
* reader);
55
56
virtual
bool
importAsFeature
(
DtShapeVectorReader
* reader,
57
DtSpecificationID
specID,
58
DtSpecification
& specification);
59
60
protected
:
61
62
virtual
DtGroup
* importStrip(
DtShapeReader
* reader,
int
part);
63
virtual
DtGroup
* importFan(
DtShapeReader
* reader,
int
part);
64
virtual
DtGroup
* importPoly(
DtShapeReader
* reader,
int
part);
65
66
DtNetFloat64 myBoundingBox[4];
67
DtNetInt32
myNumParts
;
68
DtNetInt32
myNumPoints
;
69
DtNetInt32*
myParts
;
70
DtNetInt32*
myPartTypes
;
71
DtNetFloat64 myMinMax[2];
72
DtShapePointZ
*
myPointZs
;
73
DtNetFloat64 myZRange[2];
74
75
};
76
77
#endif
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)