feat(studio): 历史记录中增加了预置灰度图信息

This commit is contained in:
李东云
2022-09-06 19:53:34 +08:00
parent ffdf896826
commit b5039c3d76

View File

@@ -14,8 +14,8 @@ namespace Singularity\HDK\Studio\Resource\Workspace\Tasks\Item;
use Singularity\HDK\Studio\Resource\Field;
use Singularity\HDK\Studio\Resource\File;
use Singularity\HDK\Studio\Resource\FileCollection;
use Singularity\HDK\Studio\Resource\Workspace\Tasks\OrderItem;
use Singularity\HDK\Studio\Resource\Lattice as LatticeResource;
use Singularity\HDK\Studio\Resource\Workspace\Tasks\OrderItem;
/**
* 用于历史记录列表的渐变晶格任务
@@ -29,27 +29,28 @@ use Singularity\HDK\Studio\Resource\Lattice as LatticeResource;
*
* @inheritDoc
*
* @property string $fileId 要处理的模型文件 ID
* @property string $fileUrl 要处理的模型文件完整路径
* @property string $latticeId 晶格
* @property float $scalingRatio 密度比,两位小数
* @property float $size 晶格尺寸
* @property float $wideDarkest 杆径粗细-极黑
* @property float $wideLightest 杆径粗细-极白
* @property string $projection 投影方向
* @property string $grayscaleUrl 灰度图链接
* @property string|null $modelName
* @property int $fieldId
* @property Field $field
* @property LatticeResource $lattice
* @property File $source
* @property File $output
* @property File $outputSmall
* @property \Hyperf\Database\Model\Collection $showPicIds
* @property string $completeFileId
* @property string $completeFileUrl
* @property string $frameFileId
* @property string $frameFileUrl
* @property string $fileId 要处理的模型文件 ID
* @property string $fileUrl 要处理的模型文件完整路径
* @property string $latticeId 晶格
* @property float $scalingRatio 密度比,两位小数
* @property float $size 晶格尺寸
* @property float $wideDarkest 杆径粗细-极黑
* @property float $wideLightest 杆径粗细-极白
* @property string $projection 投影方向
* @property \Singularity\HDK\Studio\Resource\Grayscale $grayscale 选择的预置灰度图信息
* @property string $grayscaleUrl 灰度图链接
* @property string|null $modelName
* @property int $fieldId
* @property Field $field
* @property LatticeResource $lattice
* @property File $source
* @property File $output
* @property File $outputSmall
* @property \Hyperf\Database\Model\Collection $showPicIds
* @property string $completeFileId
* @property string $completeFileUrl
* @property string $frameFileId
* @property string $frameFileUrl
*/
class GradientLattice extends OrderItem
{
@@ -68,6 +69,7 @@ class GradientLattice extends OrderItem
'wideDarkest' => $this->when(isset($this->wideDarkest), $this->wideDarkest),
'wideLightest' => $this->when(isset($this->wideLightest), $this->wideLightest),
'projection' => $this->projection,
'grayscale' => $this->when(isset($this->grayscale), $this->grayscale),
'grayscaleUrl' => $this->grayscaleUrl,
$this->mergeWhen(!empty($this->frameFileId), [
'frameFileId' => $this->frameFileId,