Changeset 2054 for lang/ruby/RubyESRIShape/Shape_int.h
- Timestamp:
- 11/27/07 16:30:08 (14 months ago)
- Files:
-
- 1 modified
-
lang/ruby/RubyESRIShape/Shape_int.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/RubyESRIShape/Shape_int.h
r2043 r2054 24 24 typedef std::vector<ShpRecordObject*> RecordContentList; 25 25 26 #define SHPPOLYGON_Z 0x1 27 #define SHPPOLYGON_M 0x2 26 class IndexedPointList 27 { 28 public: 29 IndexedPointList(); 30 virtual ~IndexedPointList(); 31 void copyFrom(const IndexedPointList& aSrc); 32 33 void allocBuffers(); 34 void freeBuffers(); 35 36 ESDouble mBounds[4]; 37 ESInt32 mNParts; 38 ESInt32 mNPoints; 39 40 ESInt32* mPartIndexes; 41 ESPointEx* mPoints; 42 43 ESDouble mZRange[2]; 44 ESDouble mMRange[2]; 45 }; 46 47 48 #define SHPRECORD_WITH_Z 0x1 49 #define SHPRECORD_WITH_M 0x2 28 50 29 51 class ShpPolygon : public ShpRecordObject … … 43 65 es_error_t readFromMainFile(FILE* fp, ShpReadContext& rctx); 44 66 private: 45 void allocBuffers(); 46 void freeBuffers(); 67 ESInt32 mType; 68 IndexedPointList mPList; 69 int mOption; 70 }; 47 71 72 class ShpPolyline : public ShpRecordObject 73 { 74 public: 75 ShpPolyline(int option); 76 virtual ~ShpPolyline(); 77 virtual VALUE toRubyObject(); 78 virtual ShpRecordObject* clone(); 79 private: 48 80 ESInt32 mType; 49 ESDouble mBounds[4]; 50 ESInt32 mNParts; 51 ESInt32 mNPoints; 52 53 ESInt32* mPartIndexes; 54 ESPointEx* mPoints; 55 56 ESDouble mZRange[2]; 57 ESDouble mMRange[2]; 58 81 IndexedPointList mPList; 59 82 int mOption; 60 83 };
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)