Description Usage Arguments Details Value See Also Examples
Set graphic options for digitMesh.mesh3d()
and digitMesh.character()
.
1 2 3 4 5 6 7 8 | setGraphicOptions(winNb=1, winSize= rbind(c(0,50,830,904), c(840,50,1672,904)), winSynchro=TRUE,
meshVertCol=TRUE, meshColor=rep("gray",2), meshAlpha=rep(1,2), meshShade=rep(TRUE,2),
meshPoints=c(FALSE,TRUE), meshWire=rep(FALSE,2),
PCplanesDraw=FALSE, PCplanesColor= "cyan", PCplanesAlpha=0.7,
intersectLines=TRUE, intersectPoints=FALSE, intersectColor="red",
spheresRad=0.02, spheresColor=matrix(c("black","blue"),2,2), spheresAlpha=1,
labelCex=2, labelColor="magenta", labelAdj=0.02,
zoomPercDist=0.15, zoomPtsDraw=TRUE, zoomPtsCol="orange", zoomSeeLm=FALSE)
|
winNb |
A numeric value within { |
winSize |
A vector or matrix indicating the size and positioning of graphical device(s): |
winSynchro |
A logical value indicating if user interaction (zoom, rotation) applied on a mesh should be
synchronously applied on the second one (decimated or full mesh). Only Works for |
meshVertCol |
A logical value indicating if the original vertex colors should be kept ( |
meshColor |
A character vector of length 1 or 2 indicating the color(s) for mesh plotting. Values for
|
meshAlpha |
A character vector of length 1 or 2 indicating the alpha value(s) (transparency) for mesh
plotting. It will overwrite the alpha value stored in |
meshShade |
Logical vector of length 1 or 2 indicating if the meshes should be plotted or not via
|
meshPoints |
Identical to |
meshWire |
Identical to |
PCplanesDraw |
A 1-length logical or a character vector of length 1, 2 or 3 indicating if major planes (from
mesh principal components) as well as their intersections with the mesh should be plotted, and
interactively set by user before the landmark digitizing step. Possible settings: |
PCplanesColor |
A character vector taking values within |
PCplanesAlpha |
A numerical vector taking values within [0,1] indicating with which transparency (alpha value)
each plane should be plotted. If only one value is given for more than one plane, the alpha
value is recycled. Otherwise, this vector should have the same length than the number of
plotted planes. |
intersectLines |
A logical vector indicating for each intersection plane if the |
intersectPoints |
Identical to |
intersectColor |
A character vector taking values within |
spheresRad |
A numerical vector or matrix taking values within [0,1] indicating with which radius the spheres
figuring the landmarks should be plotted. Actually, the radius is expressed as a fraction of the
mesh dimensions(so better values are close to 0). Possible settings: |
spheresColor |
A character vector or matrix taking values within |
spheresAlpha |
A numerical vector or matrix taking values within [0,1] indicating with which transparency
(alpha value) the spheres figuring the landmarks should be plotted. See |
labelCex |
A numerical vector or matrix taking positive values indicating with which size the landmark labels
should be plotted. See See |
labelColor |
A character vector or matrix taking values within |
labelAdj |
A numerical vector or matrix or array taking values within [0,1] indicating how to adjust the label
location relative to the landmark sphere. Possible settings: |
zoomPercDist |
A numerical value within [0,1] specifying the extent of the zoomed full mesh. This extent is
computed as the maximal distance between the clicked point and the mesh points multiplied by
|
zoomPtsDraw |
A logical value indicating if the exent of the zoomed mesh should be shown on the decimated mesh.
This extent will be represented as a 3D point cloud. |
zoomPtsCol |
A character value taking values within |
zoomSeeLm |
A logical value indicating if the landmark placed by user on the decimated mesh should be visible
on the zoomed mesh. It will slightly fasten the process of the landmark digitizing enabling the
direct validation (without any manual change) of the placed landmark, but at the risk of a more or
less important approximation on the landmark positioning depending on the degree of decimation
used for the decimated mesh. |
This function allows user to set several parameters for graphical rendering for the landmark digitization
process performed through the call of either digitMesh.mesh3d()
or
digitMesh.character()
. With no arguments, this function returns the default settings for
graphic options. Any of those options can be modified by setting new values for the corresponding
arguments. Non-filled arguments will be set to default. Ill-filled arguments will return errors or
warnings.
The arguments for graphic options are categorized by themes, and concerns: window options, mesh rendering options, major plane options, mesh/major plane intersection options, sphere options, labelling options and zoom options.
- the window options allow to set the number of grahical devices (winNb
), their size and
positioning (winSize
) and the synchronization or not between full and decimated meshes of the
user action (rotation, zoom: winSynchro
);
- the mesh rendering options allow to play on mesh color (meshColor
), its transparency
(meshAlpha
), its mode of representation (shading for meshShade
, 3D points for
meshPoints
, 3D wire for meshWire
);
- the major plane options allow to perform or not the preliminary step of major plane adjustement
before landmark digitization (PCplanesDraw
), to set their color and transparency (
PCplanesColor
, PCplanesAlpha
);
- the mesh/major plane intersection options allow to set the mode of representation for the
intersection lines among major planes and mesh (via 3D lines for intersectLines
or 3D points
for intersectPoints
) and their color (codeintersectColor);
- the sphere options for landmark rendering allow to set their radius (spheresRad
),
their color (spheresColor
), and their transparency (spheresAlpha
);
- the labelling options for landmark numbering allow to set their size (labelCex
),
their color (labelColor
) and their adjustment relative to the sphere (labelAdj
);
- the zoom options allow to set the extent of the zoomed area (zoomPercDist
), to project
or not on the decimated mesh this extent (zoomPtsDraw
) and to set its color (zoomPtsCol
),
and to display or not on the full mesh the landmark pre-positionned on the decimated mesh
(zoomSeeLm
).
A list of those parameters gathered in sublists following the thematic categorization described above.
setDecimOptions
, setFileOptions
, setTemplOptions
.
1 2 3 4 5 6 7 | # returning default settings:
GrOpt<-setGraphicOptions()
# some possible settings (not exhaustive):
GrOpt<-setGraphicOptions(winNb=2, winSynchro= FALSE, PCplanesDraw=c("pc2-pc3"))
GrOpt<-setGraphicOptions(meshColor=c("gray","orange"), meshPoints=FALSE, zoomSeeLm=TRUE)
#...
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.