public interface ToolpathRenderer
Modifier and Type | Method and Description |
---|---|
void |
concatToolMove(boolean cut,
boolean spindleOn,
double radius,
double[] axisPos)
adds (concatenates) the given axis positions to this toolpath.
|
void |
onOpenGlSurfaceChanged()
is called every time the OpenGL rendering surface has been changed.
|
void |
renderToolPath(boolean plan,
GL gl,
javax.vecmath.Vector3f zo)
renders the tool-path to the given OpenGL context
|
void |
resetToolPath(boolean spindleOn)
clears (empties) the tool-path represented by this object and sets the initial spindle state.
|
void resetToolPath(boolean spindleOn)
spindleOn
- true if the spindle is on at the beginning of this tool-pathvoid concatToolMove(boolean cut, boolean spindleOn, double radius, double[] axisPos)
This typically involves creating triangled shapes to represent the tool movement and storing them in Vertex Buffer Objects.
cut
- true if this move represents an actual cut (as opposed to a planned move)spindleOn
- true if the spindle is on for this tool movementradius
- the radius of the tool as specified by the G-codes tool word or radius compensationaxisPos
- the axis positionsvoid renderToolPath(boolean plan, GL gl, javax.vecmath.Vector3f zo)
plan
- true if the path is to be represented as planned path (as opposed to actually cut path)gl
- the OpenGL contextzo
- is deprecatedvoid onOpenGlSurfaceChanged()