📄 shapeobj.java
字号:
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version: 1.3.21 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */package edu.umn.gis.mapscript;public class shapeObj { private long swigCPtr; protected boolean swigCMemOwn; protected shapeObj(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected shapeObj() { this(0, false); } protected void finalize() { delete(); } public void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; mapscriptJNI.delete_shapeObj(swigCPtr); } swigCPtr = 0; } protected static long getCPtr(shapeObj obj) { return (obj == null) ? 0 : obj.swigCPtr; } public int getNumlines() { return mapscriptJNI.get_shapeObj_numlines(swigCPtr); } public int getNumvalues() { return mapscriptJNI.get_shapeObj_numvalues(swigCPtr); } public lineObj getLine() { long cPtr = mapscriptJNI.get_shapeObj_line(swigCPtr); return (cPtr == 0) ? null : new lineObj(cPtr, false); } public SWIGTYPE_p_p_char getValues() { long cPtr = mapscriptJNI.get_shapeObj_values(swigCPtr); return (cPtr == 0) ? null : new SWIGTYPE_p_p_char(cPtr, false); } public void setBounds(rectObj bounds) { mapscriptJNI.set_shapeObj_bounds(swigCPtr, rectObj.getCPtr(bounds)); } public rectObj getBounds() { long cPtr = mapscriptJNI.get_shapeObj_bounds(swigCPtr); return (cPtr == 0) ? null : new rectObj(cPtr, false); } public void setType(int type) { mapscriptJNI.set_shapeObj_type(swigCPtr, type); } public int getType() { return mapscriptJNI.get_shapeObj_type(swigCPtr); } public void setIndex(int index) { mapscriptJNI.set_shapeObj_index(swigCPtr, index); } public int getIndex() { return mapscriptJNI.get_shapeObj_index(swigCPtr); } public void setTileindex(int tileindex) { mapscriptJNI.set_shapeObj_tileindex(swigCPtr, tileindex); } public int getTileindex() { return mapscriptJNI.get_shapeObj_tileindex(swigCPtr); } public void setClassindex(int classindex) { mapscriptJNI.set_shapeObj_classindex(swigCPtr, classindex); } public int getClassindex() { return mapscriptJNI.get_shapeObj_classindex(swigCPtr); } public void setText(String text) { mapscriptJNI.set_shapeObj_text(swigCPtr, text); } public String getText() { return mapscriptJNI.get_shapeObj_text(swigCPtr); } public shapeObj(int type) { this(mapscriptJNI.new_shapeObj(type), true); } public static shapeObj fromWKT(String wkt) { long cPtr = mapscriptJNI.shapeObj_fromWKT(wkt); return (cPtr == 0) ? null : new shapeObj(cPtr, true); } public int project(projectionObj projin, projectionObj projout) { return mapscriptJNI.shapeObj_project(swigCPtr, projectionObj.getCPtr(projin), projectionObj.getCPtr(projout)); } public lineObj get(int i) { long cPtr = mapscriptJNI.shapeObj_get(swigCPtr, i); return (cPtr == 0) ? null : new lineObj(cPtr, false); } public int add(lineObj line) { return mapscriptJNI.shapeObj_add(swigCPtr, lineObj.getCPtr(line)); } public int draw(mapObj map, layerObj layer, imageObj image) { return mapscriptJNI.shapeObj_draw(swigCPtr, mapObj.getCPtr(map), layerObj.getCPtr(layer), imageObj.getCPtr(image)); } public void setBounds() { mapscriptJNI.shapeObj_setBounds(swigCPtr); } public shapeObj cloneShape() { long cPtr = mapscriptJNI.shapeObj_cloneShape(swigCPtr); return (cPtr == 0) ? null : new shapeObj(cPtr, true); } public int copy(shapeObj dest) { return mapscriptJNI.shapeObj_copy(swigCPtr, shapeObj.getCPtr(dest)); } public String toWKT() { return mapscriptJNI.shapeObj_toWKT(swigCPtr); } public shapeObj buffer(int width) { long cPtr = mapscriptJNI.shapeObj_buffer(swigCPtr, width); return (cPtr == 0) ? null : new shapeObj(cPtr, true); } public shapeObj convexHull() { long cPtr = mapscriptJNI.shapeObj_convexHull(swigCPtr); return (cPtr == 0) ? null : new shapeObj(cPtr, true); } public String getValue(int i) { return mapscriptJNI.shapeObj_getValue(swigCPtr, i); } public int contains(pointObj point) { return mapscriptJNI.shapeObj_contains(swigCPtr, pointObj.getCPtr(point)); } public double distanceToPoint(pointObj point) { return mapscriptJNI.shapeObj_distanceToPoint(swigCPtr, pointObj.getCPtr(point)); } public double distanceToShape(shapeObj shape) { return mapscriptJNI.shapeObj_distanceToShape(swigCPtr, shapeObj.getCPtr(shape)); } public int intersects(shapeObj shape) { return mapscriptJNI.shapeObj_intersects(swigCPtr, shapeObj.getCPtr(shape)); } public int setValue(int i, String value) { return mapscriptJNI.shapeObj_setValue(swigCPtr, i, value); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -