Container that collects geometry objects belonging to the same logical group in the three-brain viewer. Manages shared data, an optional 4-by-4 transformation matrix, spatial position, and a local file cache.
Public fields
nameUnique character name of the group.
layerCamera layer(s); 0 = main camera only, 1 = all cameras, 13 = invisible.
positionNumeric vector of length 3: group origin in world space.
group_dataNamed list of shared data attached to the group.
trans_matOptional 4-by-4 transformation matrix (
NULLfor identity).cached_itemsCharacter vector of group data keys stored in the file cache.
cache_envLocal environment used for in-memory caching of loaded cache files.
cache_pathDirectory path for the file cache.
disable_trans_matLogical; when
TRUEthe transformation matrix is ignored during rendering.parent_groupName of the parent group, or
NULL.subject_codeSubject identifier string, or
NULL..cache_nameOverride for the sanitized cache directory name. When
NULLthe name is derived from$nameby replacing non-alphanumeric characters with underscores.
Methods
GeomGroup$cache_name()
Return the sanitized cache directory name for this group.
Uses .cache_name when set, otherwise derives the name from
$name by replacing non-alphanumeric characters with
underscores.
GeomGroup$set_group_data()
Attach a named data object to the group, optionally storing it in the file cache.
GeomGroup$get_data()
Retrieve a data object from the group by key, loading from the file cache when necessary.