public abstract class Line extends Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
Line() |
Simple constructor, only to be called by child.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
hide() |
Set the line invisible on screen.
|
protected abstract void |
hideImpl() |
Set the line invisible in implementation.
|
boolean |
isVisible() |
|
void |
setEndPosition(float x,
float y,
float z) |
Set the position of the line last point.
|
void |
setEndPosition(be.yildizgames.common.geometry.Point3D position) |
Set the position of the line last point.
|
void |
setInitialPosition(be.yildizgames.common.geometry.Point3D position) |
Set the position of the line first point.
|
void |
setMaterial(Material newMaterial) |
Change the line material.
|
protected abstract void |
setMaterialImpl(Material newMaterial) |
Set the new material in implementation.
|
void |
setPositions(be.yildizgames.common.geometry.Point3D originPosition,
be.yildizgames.common.geometry.Point3D endPosition) |
Set the position of the line first and last points.
|
void |
show() |
Set the line visible on screen.
|
protected abstract void |
showImpl() |
Set the line visible in implementation.
|
protected abstract void |
update(float beginX,
float beginY,
float beginZ,
float endX,
float endY,
float endZ) |
Update the line in implementation.
|
public final void setInitialPosition(be.yildizgames.common.geometry.Point3D position)
position - First point coordinates.public final void setEndPosition(be.yildizgames.common.geometry.Point3D position)
position - Last point coordinates.public final void setEndPosition(float x,
float y,
float z)
x - Last point X coordinate.y - Last point Y coordinate.z - Last point Z coordinate.public final void setPositions(be.yildizgames.common.geometry.Point3D originPosition,
be.yildizgames.common.geometry.Point3D endPosition)
originPosition - First point coordinates, copy, modifying from outside wont affect the line.endPosition - Last point coordinates, copy, modifying from outside wont affect the line.public final void show()
public final void hide()
public final void setMaterial(Material newMaterial)
newMaterial - New Material to affect to the line.protected abstract void update(float beginX,
float beginY,
float beginZ,
float endX,
float endY,
float endZ)
beginX - First point X coordinate.beginY - First point Y coordinate.beginZ - First point Z coordinate.endX - Last point X coordinate.endY - Last point Y coordinate.endZ - Last point Z coordinate.protected abstract void hideImpl()
protected abstract void showImpl()
protected abstract void setMaterialImpl(Material newMaterial)
newMaterial - New material to affect.public final boolean isVisible()
true if the line is visible, false otherwise.Copyright © 2014–2018. All rights reserved.