CloneImagesOrVideos
class CloneImagesOrVideos extends Job implements ShouldQueue
Traits
Properties
Project | $project | The target project. |
|
$copy | |||
Volume | $volume | The volume to clone. |
|
array | $onlyFiles | Array containing file ids. |
|
bool | $cloneAnnotations | Boolean for cloning annotation labels. |
|
array | $onlyAnnotationLabels | Array containing annotation label ids. |
|
bool | $cloneFileLabels | Boolean for cloning file labels. |
|
array | $onlyFileLabels | Array containing file label ids. |
|
protected bool | $deleteWhenMissingModels | Ignore this job if the project or volume does not exist any more. |
Methods
Determine if a value is not null and not an empty string.
No description
Copies (selected) images from given volume to volume copy.
Copies (selected) image annotation and annotation labels from volume to volume copy.
Copies (selected) image labels from given volume to volume copy.
Copies (selected) videos from given volume to volume copy.
Copies (selected) video annotations and annotation labels from given volume to volume copy.
Copies (selected) video labels from volume to volume copy.
Copies ifDo-Files from given volume to volume copy.
Details
in
ChecksMetadataStrings at line 10
isFilledString($x)
Determine if a value is not null and not an empty string.
at line 97
void
__construct(CloneVolume|Request $request, $copy)
Create a new job instance.
at line 110
handle()
No description
at line 161
void
postProcessCloning(Volume $volume)
Initiate file thumbnail creation
at line 193
private
copyImages(Volume $volume, Volume $copy, int[] $selectedImageIds)
Copies (selected) images from given volume to volume copy.
at line 221
private
copyImageAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) image annotation and annotation labels from volume to volume copy.
at line 312
private
copyImageLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) image labels from given volume to volume copy.
at line 347
private
copyVideos(Volume $volume, Volume $copy, int[] $selectedVideoIds)
Copies (selected) videos from given volume to volume copy.
at line 375
private
copyVideoAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) video annotations and annotation labels from given volume to volume copy.
at line 466
private
copyVideoLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)
Copies (selected) video labels from volume to volume copy.
at line 499
private
copyIfdoFile(int $volumeId, int $copyId)
Copies ifDo-Files from given volume to volume copy.