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 classGeometry.CacheKey
-
Constructor Summary
Constructors Constructor Description Geometry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear(int type)java.nio.BuffergetBuffer(int type)intgetCount(int type)intgetGLType(int type)intgetMode(int object)intgetSize(int type)longgetSizeInBytes()Retrieves the approximate size of this object in bytes.intgetStride(int type)voidsetData(int type, int size, int stride, int count, float[] src, int srcPos)voidsetData(int type, int size, int glType, int stride, int count, int[] src, int srcPos)voidsetData(int type, int size, int stride, int count, java.nio.FloatBuffer src)voidsetElementData(int mode, int count, int[] src)voidsetElementData(int mode, int count, java.nio.IntBuffer src)voidsetMode(int type, int mode)voidsetNormalData(int count, float[] src)voidsetNormalData(int count, java.nio.FloatBuffer src)voidsetTextureCoordData(int count, float[] src)voidsetTextureCoordData(int count, java.nio.FloatBuffer src)voidsetVertexData(int count, float[] src)voidsetVertexData(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:CacheableRetrieves 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:
getSizeInBytesin interfaceCacheable- Returns:
- this
Cacheableobject's size in bytes
-
-