public class BaseInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
disposeAfterUse
If set, the toolkit will dispose of the objects that were
added after it's finished.
|
protected long |
nativeHandle |
Modifier | Constructor and Description |
---|---|
protected |
BaseInfo() |
Modifier and Type | Method and Description |
---|---|
double |
getDrawOffset() |
int |
getDrawPriority()
Get the drawPriority for the geometry.
|
boolean |
getEnable() |
float |
getFadeIn()
The amount of time (in seconds) it takes for new geometry
to fade in.
|
float |
getFadeOut()
The amount of time (in seconds) it takes for geometry
to fade out when removed.
|
double |
getFadeOutTime() |
long |
getShaderID()
Return the unique ID for the shader or 0 if there is none.
|
double |
getViewDistRangeMax() |
double |
getViewDistRangeMin() |
Point3d |
getViewerCenter() |
double |
getVisibleHeightMax()
Returns the minimum cutoff for visibility of the feature.
|
double |
getVisibleHeightMin()
Returns the minimum cutoff for visibility of the feature.
|
void |
setDrawOffset(float drawOffset)
Set the drawOffset for geometry.
|
void |
setDrawPriority(int drawPriority)
Set the drawPriority for the geometry.
|
void |
setEnable(boolean newEnable)
Controls whether or not the geometry will be visible.
|
void |
setEnableTimes(double startEnable,
double endEnable)
Geometry can be enabled over a specific time period.
|
void |
setFade(float fade)
The amount of time (in seconds) it takes for new geometry
to fade in and fade out.
|
void |
setFadeInOut(double fadeIn,
double fadeOut)
Geometry can be made to fade in when it appears and fade out when
it's removed.
|
void |
setFadeOutTime(double fadeOutTime)
Geometry can be set to start fading out at a specific time.
|
void |
setMaxVis(double maxVis)
Set the maximum height visibility for a feature.
|
void |
setMinVis(double minVis)
Set the minimum height visibility for a feature.
|
void |
setRenderTarget(RenderTarget target)
By default, all geometry renders to the main screen.
|
void |
setShader(Shader shader)
Set the shader to be used in rendering the given objects.
|
void |
setShaderID(long shaderID)
Set the shader to be used in rendering, by ID
|
void |
setViewDistRange(double minViewerDist,
double maxViewerDist)
If set, the objects created will only be visible when in this range
of distance from the viewer.
|
void |
setViewerCenter(Point3d center)
If the viewer center is defined, all the geometry is centered around it.
|
void |
setVisibleHeightRange(double minVis,
double maxVis)
Set the minimum/maximum cutoff for visibility of the feature.
|
void |
setZBufferRead(boolean newVal)
If set, the renderer will compare this geometry to the z buffer when rendering.
|
void |
setZBufferWrite(boolean newVal)
If set, the geometry will write to the Z buffer when it renders.
|
public boolean disposeAfterUse
protected long nativeHandle
public void setVisibleHeightRange(double minVis, double maxVis)
public void setMinVis(double minVis)
public void setMaxVis(double maxVis)
public double getVisibleHeightMin()
public double getVisibleHeightMax()
public void setViewDistRange(double minViewerDist, double maxViewerDist)
public double getViewDistRangeMin()
public double getViewDistRangeMax()
public void setViewerCenter(Point3d center)
public Point3d getViewerCenter()
public void setDrawOffset(float drawOffset)
public double getDrawOffset()
public void setDrawPriority(int drawPriority)
public int getDrawPriority()
public void setEnable(boolean newEnable)
newEnable
- New value for the enable.public boolean getEnable()
public void setFade(float fade)
public void setFadeInOut(double fadeIn, double fadeOut)
fadeIn
- Time to fade new geometry in.fadeOut
- Time to fade geometry out when removed.public float getFadeIn()
public float getFadeOut()
public void setFadeOutTime(double fadeOutTime)
fadeOutTime
- Time to start fading geometry out in seconds from the beginning epoch.public double getFadeOutTime()
public void setEnableTimes(double startEnable, double endEnable)
startEnable
- When to start drawing the geometry. Seconds from the beginning epoch.endEnable
- When to stop drawing the geometry. Seconds from the beginning epoch.public void setShader(Shader shader)
public void setShaderID(long shaderID)
public long getShaderID()
public void setZBufferRead(boolean newVal)
public void setZBufferWrite(boolean newVal)
public void setRenderTarget(RenderTarget target)