public class LocalVectorDataSource extends VectorDataSource
swigCMemOwn
构造器和说明 |
---|
LocalVectorDataSource(long cPtr,
boolean cMemoryOwn) |
LocalVectorDataSource(Projection projection)
Constructs an LocalVectorDataSource object with no spatial index.
|
LocalVectorDataSource(Projection projection,
LocalSpatialIndexType spatialIndexType)
Constructs an LocalVectorDataSource object with specified spatial index.
|
限定符和类型 | 方法和说明 |
---|---|
void |
add(VectorElement element)
Adds a vector element to the data source.
|
void |
addAll(VectorElementVector elements)
Adds multiple vector elements to the data source.
|
void |
clear()
Clear the data source by removing all elements.
|
void |
delete() |
protected void |
finalize() |
VectorElementVector |
getAll()
Returns all vector elements added to this data source using add() and addAll() methods.
|
static long |
getCPtr(LocalVectorDataSource obj) |
MapBounds |
getDataExtent()
Returns the extent of this data source.
|
GeometrySimplifier |
getGeometrySimplifier()
Returns the active geometry simplifier of the data source.
|
VectorData |
loadElements(CullState cullState)
Loads all the elements within the defined envelope.
|
VectorElementVector |
query(MapBounds bounds) |
boolean |
remove(VectorElement element)
Removes a vector element from the data source.
|
boolean |
removeAll(VectorElementVector elements)
Removes multiple vector elements from the data source.
|
void |
setAll(VectorElementVector elements)
Replaces all vector elements in the data source with the given list of vector elements.
|
void |
setGeometrySimplifier(GeometrySimplifier simplifier)
Attaches geometry simplifier to the data source.
|
static LocalVectorDataSource |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
protected void |
swigDirectorDisconnect() |
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
getCPtr, getProjection, notifyElementChanged, notifyElementsChanged, notifyElementsChanged
public LocalVectorDataSource(long cPtr, boolean cMemoryOwn)
public LocalVectorDataSource(Projection projection)
projection
- The projection used by this data source.public LocalVectorDataSource(Projection projection, LocalSpatialIndexType spatialIndexType)
projection
- The projection used by this data source.spatialIndexType
- The spatial index type to use.public static long getCPtr(LocalVectorDataSource obj)
protected void finalize()
finalize
在类中 VectorDataSource
public void delete()
delete
在类中 VectorDataSource
protected void swigDirectorDisconnect()
public void swigReleaseOwnership()
swigReleaseOwnership
在类中 VectorDataSource
public void swigTakeOwnership()
swigTakeOwnership
在类中 VectorDataSource
public static LocalVectorDataSource swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
cPtr
- The native pointer of the instance.cMemoryOwn
- The ownership flag.public VectorElementVector query(MapBounds bounds)
public VectorData loadElements(CullState cullState)
VectorDataSource
loadElements
在类中 VectorDataSource
cullState
- State for describing view parameters and conservative view envelope.public void clear()
public VectorElementVector getAll()
public void setAll(VectorElementVector elements)
elements
- The list of new vector elementspublic void add(VectorElement element)
element
- The vector element to be added.public void addAll(VectorElementVector elements)
elements
- A list of vector elements to be added.public boolean remove(VectorElement element)
element
- The vector element to be removed.public boolean removeAll(VectorElementVector elements)
elements
- A list of vector elements to be removed.public GeometrySimplifier getGeometrySimplifier()
public void setGeometrySimplifier(GeometrySimplifier simplifier)
simplifier
- The new geometry simplifier to use (can be null).public MapBounds getDataExtent()
public java.lang.String swigGetClassName()
swigGetClassName
在类中 VectorDataSource
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
在类中 VectorDataSource