set.reference.obj {espadon}R Documentation

Set the reference objects of a espadon object

Description

The function set.reference.obj adds to an espadon object the information identifying the espadon objects from which it derives.

Usage

set.reference.obj(obj, ref.obj, add = TRUE)

Arguments

obj

espadon object of class "dvh", "fan", "histo", "histo2D", "mesh", "rtplan", "struct", "undef" or "volume".

ref.obj

espadon object of class "dvh", "fan", "histo", "histo2D", "mesh", "rtplan", "struct", "undef" or "volume". List of espadon objects.

add

Boolean. If TRUE, the reference objects are added to those already contained by obj.

Value

Returns the espadon object obj, containing the ref.object.alias and ref.object.info fields identifying its reference objects

Examples

# loading of toy-patient objects (decrease dxyz for better result)
step <- 6
pat <- toy.load.patient (modality = c("ct", "rtdose", "rtstruct"),
                         roi.name = c("eye"), dxyz = rep (step, 3),
                         beam.nb = 3)
display.obj.links(pat)                          
pat$rtstruct[[1]] <- set.reference.obj(pat$rtstruct[[1]],pat$ct[[1]])  
display.obj.links(pat)                          

[Package espadon version 1.7.0 Index]