VR-Forces 4.1 Class Documentation
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/specMgr.h"
13 
14 class DtShapePointZ;
15 class DtShapePoint;
16 class DtShapeReader;
18 class DtGroup;
19 
20 // class DtShapeMultipatch:
21 //
22 
24 {
31 };
32 
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];
73  DtNetFloat64 myZRange[2];
74 
75 };
76 
77 #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)