DisplacementMap.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final FloatBuffer | |
| private Map | |
| private boolean | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | FloatMap(int
the width of the map, in pixels width, int the height of the map, in pixels height)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public LockableResource | |
| public FloatBuffer | |
| public float[] | |
| public int | |
| public float | Returns: the sample of the specified band at the specified locationthe x location x, int the y location y, int the band to get (must be 1, 2, 3, or 4) band)Gets the sample for a specific band from the given |
| public int | |
| public void | |
| public void | setSample(int
the x location x, int the y location y, int the band to set (must be 1, 2, 3, or 4) band, float the sample value to set sample)Sets the sample for a specific band at the given (x,y) location. |
| public void | setSamples(int
the x location x, int the y location y, float the sample value to set for the first band s0)Sets the sample for the first band at the given (x,y) location. |
| public void | setSamples(int
the x location x, int the y location y, float the sample value to set for the first band s0, float the sample value to set for the second band s1)Sets the sample for the first two bands at the given (x,y) location. |
| public void | setSamples(int
the x location x, int the y location y, float the sample value to set for the first band s0, float the sample value to set for the second band s1, float the sample value to set for the third band s2)Sets the sample for the first three bands at the given (x,y) location. |
| public void | setSamples(int
the x location x, int the y location y, float the sample value to set for the first band s0, float the sample value to set for the second band s1, float the sample value to set for the third band s2, float the sample value to set for the fourth band s3)Sets the sample for each of the four bands at the given (x,y) location. |
| buf | back to summary |
|---|---|
| private final FloatBuffer buf | |
| cache | back to summary |
|---|---|
| private Map<FilterContext, FloatMap. | |
| cacheValid | back to summary |
|---|---|
| private boolean cacheValid | |
| height | back to summary |
|---|---|
| private final int height | |
| width | back to summary |
|---|---|
| private final int width | |
| FloatMap | back to summary |
|---|---|
| public FloatMap(int width, int height) Constructs a new
| |
| getAccelData | back to summary |
|---|---|
| public LockableResource getAccelData(FilterContext fctx) | |
| getBuffer | back to summary |
|---|---|
| public FloatBuffer getBuffer() | |
| getData | back to summary |
|---|---|
| public float[] getData() | |
| getHeight | back to summary |
|---|---|
| public int getHeight() Returns the height of the map, in pixels.
| |
| getSample | back to summary |
|---|---|
| public float getSample(int x, int y, int band) Gets the sample for a specific band from the given
| |
| getWidth | back to summary |
|---|---|
| public int getWidth() Returns the width of the map, in pixels.
| |
| put | back to summary |
|---|---|
| public void put(float[] floatBuf) | |
| setSample | back to summary |
|---|---|
| public void setSample(int x, int y, int band, float sample) Sets the sample for a specific band at the given (x,y) location.
| |
| setSamples | back to summary |
|---|---|
| public void setSamples(int x, int y, float s0) Sets the sample for the first band at the given (x,y) location.
| |
| setSamples | back to summary |
|---|---|
| public void setSamples(int x, int y, float s0, float s1) Sets the sample for the first two bands at the given (x,y) location.
| |
| setSamples | back to summary |
|---|---|
| public void setSamples(int x, int y, float s0, float s1, float s2) Sets the sample for the first three bands at the given (x,y) location.
| |
| setSamples | back to summary |
|---|---|
| public void setSamples(int x, int y, float s0, float s1, float s2, float s3) Sets the sample for each of the four bands at the given (x,y) location.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv LockableResource | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| texture | back to summary |
|---|---|
| pack-priv LockableResource texture | |
| valid | back to summary |
|---|---|
| pack-priv boolean valid | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(LockableResource texture) | |