mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKit.git
synced 2026-01-15 00:35:08 +08:00
feat(studio): 增加了历史记录详情中的灰度图字段
This commit is contained in:
@@ -13,7 +13,6 @@ namespace Singularity\HDK\Studio\Resource\Workspace\Tasks\Detail;
|
||||
|
||||
use Singularity\HDK\Studio\Resource\Field;
|
||||
use Singularity\HDK\Studio\Resource\File;
|
||||
use Singularity\HDK\Studio\Resource\FileCollection;
|
||||
use Singularity\HDK\Studio\Resource\Lattice as LatticeResource;
|
||||
use Singularity\HDK\Studio\Resource\Workspace\Tasks\OrderDetail;
|
||||
|
||||
@@ -29,27 +28,28 @@ use Singularity\HDK\Studio\Resource\Workspace\Tasks\OrderDetail;
|
||||
*
|
||||
* @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 OrderDetail
|
||||
{
|
||||
@@ -60,15 +60,13 @@ class GradientLattice extends OrderDetail
|
||||
'wideDarkest' => $this->when(isset($this->wideDarkest), $this->wideDarkest),
|
||||
'wideLightest' => $this->when(isset($this->wideLightest), $this->wideLightest),
|
||||
'projection' => $this->projection,
|
||||
'grayscaleUrl' => $this->grayscaleUrl,
|
||||
'grayscale' => $this->when(isset($this->grayscale), $this->grayscale),
|
||||
'grayscaleUrl' => $this->when(empty($this->grayscale), $this->grayscaleUrl),
|
||||
'field' => Field::make($this->field),
|
||||
'source' => File::make($this?->source),
|
||||
'lattice' => LatticeResource::make($this->lattice),
|
||||
'hardness' => $this->hardness ?? null,
|
||||
'scalingRatio' => $this->scalingRatio,
|
||||
'size' => $this->size,
|
||||
'wide' => $this->wide,
|
||||
'surfaceNum' => $this->surfaceNum,
|
||||
'output' => $this->when(isset($this->output), File::make($this?->output)),
|
||||
'outputPreview' => $this->when(isset($this->outputSmall), File::make($this?->outputSmall)),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user