public class VectorInfo extends BaseInfo
Modifier and Type | Class and Description |
---|---|
static class |
VectorInfo.TextureProjection
When using textures on areal features, you can project the texture a couple of different ways.
|
Modifier and Type | Field and Description |
---|---|
static int |
VectorPriorityDefault
Default draw priority for vector features.
|
disposeAfterUse, nativeHandle
Constructor and Description |
---|
VectorInfo()
Construct the vector info empty with default values.
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
void |
setColor(float r,
float g,
float b,
float a)
Set the color used by the geometry.
|
void |
setColor(int color)
Set the color used by the geometry.
|
void |
setFilled(boolean filled)
Set whether or not areal features are tesselated and draw as filled.
|
void |
setLineWidth(float lineWidth)
This is the line width for vector features.
|
void |
setSampleEpsilon(double eps)
Vectors can be subdivided to follow a globe.
|
void |
setSubdivEps(double eps)
If set, we'll subdivide areal features on top of the globe
using a grid to figure out the optimal subdivision.
|
void |
setTexScale(double u,
double v)
These control the scale of the texture application.
|
void |
setTexture(MaplyTexture tex)
If set and filled is set, we will apply the given texture across any areal features.
|
void |
setTextureProjection(VectorInfo.TextureProjection texProjection) |
void |
setUseCenter()
If set, we'll calculate a center for the vector geometry and
use that in building the visual geometry.
|
void |
setVecCenter(Point2d center)
These control the center of a texture application.
|
java.lang.String |
toString() |
getDrawOffset, getDrawPriority, getEnable, getFadeIn, getFadeOut, getFadeOutTime, getShaderID, getViewDistRangeMax, getViewDistRangeMin, getViewerCenter, getVisibleHeightMax, getVisibleHeightMin, setDrawOffset, setDrawPriority, setEnable, setEnableTimes, setFade, setFadeInOut, setFadeOutTime, setMaxVis, setMinVis, setRenderTarget, setShader, setShaderID, setViewDistRange, setViewerCenter, setVisibleHeightRange, setZBufferRead, setZBufferWrite
public static int VectorPriorityDefault
public VectorInfo()
public void finalize()
finalize
in class java.lang.Object
public void setFilled(boolean filled)
public void setSampleEpsilon(double eps)
public void setTexture(MaplyTexture tex)
public void setTexScale(double u, double v)
public void setSubdivEps(double eps)
public void setTextureProjection(VectorInfo.TextureProjection texProjection)
public void setColor(int color)
color
- Color in Android format, including alpha.public void setColor(float r, float g, float b, float a)
r
- Red component.g
- Green component.b
- Blue component.a
- Alpha component.public void setLineWidth(float lineWidth)
public void setUseCenter()
public void setVecCenter(Point2d center)
public java.lang.String toString()
toString
in class java.lang.Object