public class Layers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
| Constructor and Description |
|---|
Layers(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Layer layer)
Adds a new layer to the layer stack.
|
int |
count()
Returns the current layer count.
|
void |
delete() |
protected void |
finalize() |
Layer |
get(int index)
Returns the layer at the specified index.
|
static long |
getCPtr(Layers obj) |
LayerVector |
getLayers()
Returns a list of layers.
|
void |
insert(int index,
Layer layer)
Inserts a new layer at the specified position.
All previous layers starting from this index will be moved to the next position. |
boolean |
remove(Layer layer)
Removes a layer to the layer stack.
|
public static long getCPtr(Layers obj)
protected void finalize()
finalize in class java.lang.Objectpublic void delete()
public int count()
public Layer get(int index)
index - The layer index to return. Must be between 0 and count (exclusive).public void insert(int index,
Layer layer)
index - The layer index. Must be between 0 and count (inclusive).layer - The new layer.public void add(Layer layer)
layer - The layer to be added.public boolean remove(Layer layer)
layer - The layer to be removed.public LayerVector getLayers()