public class LocalVectorDataSource extends VectorDataSource
swigCMemOwn| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
VectorElementVector |
loadElements(CullState cullState)
Loads all the elements within the defined envelope.
|
boolean |
remove(VectorElement elementToRemove)
Removes a vector element from the data source.
|
VectorElementVector |
removeAll()
Removes all 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, notifyElementsChangedpublic 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 in class VectorDataSourcepublic void delete()
delete in class VectorDataSourceprotected void swigDirectorDisconnect()
swigDirectorDisconnect in class VectorDataSourcepublic void swigReleaseOwnership()
swigReleaseOwnership in class VectorDataSourcepublic void swigTakeOwnership()
swigTakeOwnership in class VectorDataSourcepublic static LocalVectorDataSource swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public VectorElementVector loadElements(CullState cullState)
VectorDataSourceloadElements in class VectorDataSourcecullState - State for describing view parameters and conservative view envelope.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 vector of vector elements to be added.public boolean remove(VectorElement elementToRemove)
elementToRemove - The vector element to be removed.public VectorElementVector removeAll()
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 in class VectorDataSourcepublic java.lang.Object swigGetDirectorObject()
swigGetDirectorObject in class VectorDataSource