These functions write
out HTML code to control WebGL displays based
using the obsolete writeWebGL
. Use
playwidget
and related functions instead.
propertySlider(setter = propertySetter,
minS = NULL, maxS = NULL, step = 1, init = NULL,
labels,
id = basename(tempfile("input")), name = id,
outputid = paste0(id, "text"),
index = NULL,
...)
propertySetter(values = NULL, entries, properties, objids, prefixes = "",
param = seq_len(NROW(values)), interp = TRUE, digits = 7)
par3dinterpSetter(fn, from, to, steps, subscene, omitConstant = TRUE,
rename = character(), ...)matrixSetter(fns, from, to, steps, subscene = currentSubscene3d(),
matrix = "userMatrix", omitConstant = TRUE, prefix = "", ...)
vertexSetter(values, vertices = 1, attributes, objid, prefix = "",
param = seq_len(NROW(values)), interp = TRUE,
digits = 7)
A function to write Javascript code, or its output, or a list containing several of these.
Slider values to be displayed. Reasonable defaults are used if missing.
Labels to display for each slider value. The
defaults are calculated using internal variables. If NULL
,
no labels will be shown.
The id
of the input control that will be generated.
The name of the input control that will be generated.
The id
of the output control that
will display the slider value, or NULL
for none.
The 1-based index of this slider: it controls the
corresponding entry in an indexed setter such as matrixSetter
.
Other parameters.
An array of values; rows correspond to slider positions. Alternatively, NULL
; the generated function takes a
single value or array of values and applies them directly.
Vectors describing
the columns of values
.
Parameter values corresponding to each row of values
.
Whether to interpolate values. If FALSE
,
the Javascript function will expect non-negative integer values.
Ignored if values
is NULL
.
How many significant digits to emit in the Javascript code.
A function returned from par3dinterp
.
Values where fn
should be evaluated.
Which subscene's properties should be modified?
If TRUE
, do not set values that are
constant across the range.
A named character vector of names of Javascript properties to modify.
A list containing functions returned from
par3dinterp
.
A character string giving the Javascript property name of the matrix to modify.
The prefix of the scene containing matrix
.
A vector of vertex numbers (1-based) within an object.
A vector of attributes of a vertex,
from c("x", "y", "z", "r", "g", "b", "a", "nx", "ny", "nz",
"radius", "ox", "oy", "oz", "ts", "tt")
.
The object containing the vertices to be modified.
Duncan Murdoch
rglwidget
, playwidget