Class Geometry
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.render.airspaces.Geometry
-
public class Geometry extends AVListImpl implements Cacheable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Geometry.CacheKey
-
Constructor Summary
Constructors Constructor Description Geometry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear(int type)
java.nio.Buffer
getBuffer(int type)
int
getCount(int type)
int
getGLType(int type)
int
getMode(int object)
int
getSize(int type)
long
getSizeInBytes()
Retrieves the approximate size of this object in bytes.int
getStride(int type)
void
setData(int type, int size, int stride, int count, float[] src, int srcPos)
void
setData(int type, int size, int glType, int stride, int count, int[] src, int srcPos)
void
setData(int type, int size, int stride, int count, java.nio.FloatBuffer src)
void
setElementData(int mode, int count, int[] src)
void
setElementData(int mode, int count, java.nio.IntBuffer src)
void
setMode(int type, int mode)
void
setNormalData(int count, float[] src)
void
setNormalData(int count, java.nio.FloatBuffer src)
void
setTextureCoordData(int count, float[] src)
void
setTextureCoordData(int count, java.nio.FloatBuffer src)
void
setVertexData(int count, float[] src)
void
setVertexData(int count, java.nio.FloatBuffer src)
-
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
-
-
-
-
Field Detail
-
TEXTURE
public static final int TEXTURE
- See Also:
- Constant Field Values
-
ELEMENT
public static final int ELEMENT
- See Also:
- Constant Field Values
-
VERTEX
public static final int VERTEX
- See Also:
- Constant Field Values
-
NORMAL
public static final int NORMAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMode
public int getMode(int object)
-
setMode
public void setMode(int type, int mode)
-
getCount
public int getCount(int type)
-
getSize
public int getSize(int type)
-
getGLType
public int getGLType(int type)
-
getStride
public int getStride(int type)
-
getBuffer
public java.nio.Buffer getBuffer(int type)
-
setData
public void setData(int type, int size, int glType, int stride, int count, int[] src, int srcPos)
-
setData
public void setData(int type, int size, int stride, int count, float[] src, int srcPos)
-
setData
public void setData(int type, int size, int stride, int count, java.nio.FloatBuffer src)
-
setElementData
public void setElementData(int mode, int count, int[] src)
-
setElementData
public void setElementData(int mode, int count, java.nio.IntBuffer src)
-
setVertexData
public void setVertexData(int count, float[] src)
-
setVertexData
public void setVertexData(int count, java.nio.FloatBuffer src)
-
setNormalData
public void setNormalData(int count, float[] src)
-
setNormalData
public void setNormalData(int count, java.nio.FloatBuffer src)
-
setTextureCoordData
public void setTextureCoordData(int count, float[] src)
-
setTextureCoordData
public void setTextureCoordData(int count, java.nio.FloatBuffer src)
-
clear
public void clear(int type)
-
getSizeInBytes
public long getSizeInBytes()
Description copied from interface:Cacheable
Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size for smaller objects, but use approximate values for objects that include such large components that the approximation would produce an error so small that the extra computation would be wasteful.- Specified by:
getSizeInBytes
in interfaceCacheable
- Returns:
- this
Cacheable
object's size in bytes
-
-