public class GLInstanceData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
GeoPoint |
_anchor |
| Constructor and Description |
|---|
GLInstanceData() |
| Modifier and Type | Method and Description |
|---|---|
GeoPoint |
getAnchor()
Get the position of this instance
|
float[] |
getColor()
Get the color modulation
|
Matrix |
getLocalECEF()
Get the matrix for converting to ECEF (3D globe mode)
|
Matrix |
getLocalFrame()
Get the local frame matrix
|
long |
getUID()
Get the UID of this instance data
|
boolean |
isDirty()
Check if this instance data has been updated and needs to be re-read
|
void |
setAnchor(GeoPoint anchor)
Set the anchor point
|
void |
setColor(float r,
float g,
float b,
float a)
Set the color modulation
|
void |
setDirty(boolean dirty)
Flag this instance data for an update
|
void |
setLocalFrame(Matrix localFrame,
Matrix localECEF)
Set the local frame transformation
|
public void setLocalFrame(Matrix localFrame,
Matrix localECEF)
localFrame - Local frame matrix (LLA)public void setAnchor(GeoPoint anchor)
anchor - Anchor point (LLA)public void setColor(float r,
float g,
float b,
float a)
r - Red value (0.0 to 1.0)g - Green valueb - Blue valuea - Alpha valuepublic void setDirty(boolean dirty)
dirty - True to updatepublic long getUID()
public Matrix getLocalFrame()
public Matrix getLocalECEF()
public GeoPoint getAnchor()
public float[] getColor()
public boolean isDirty()