<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\Gallery3DRepo")
* @ORM\Table(name="gallery_3d")
*/
class Gallery3D
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $gallery3DId=0;
/**
* @ORM\Column(type="string", length=100)
*/
protected $gallery3DName;
/**
* @ORM\Column(type="integer", length=100)
*/
protected $userId=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $gallery3DDescription;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $dateCreated;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $xmlSourcePath;
/**
* @ORM\ManyToOne(targetEntity="Gallery")
* @ORM\JoinColumn(name="gallery_id", referencedColumnName="gallery_id")
*/
protected $gallery;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $galleryLogoUrl;
/**
* @ORM\ManyToOne(targetEntity="Gallery")
* @ORM\JoinColumn(name="texture_gallery_id", referencedColumnName="gallery_id")
*/
protected $textureGallery;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $template3DPath = "galleryBasic3D.vrml.php";
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isStartGuide=false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isMediumResize=false;
/**
* @ORM\Column(type="integer", length=5, nullable=true)
*/
protected $guideCycle=30;
/**
* @ORM\ManyToOne(targetEntity="FreeWorld3D")
* @ORM\JoinColumn(name="free_world3did", referencedColumnName="free_world3_did")
*/
protected $freeWorld;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $preferredViewpointPosition='0 0 0';
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $preferredViewpointRotation='0 0 0 0';
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $preferredBackgroundSkyColor='0.8 0.8 0.2 0.8 0.8 0.2 0.1 0.1 0.6 0.1 0.1 0.6 0.1 0.25 0.8 0.6 0.6 0.9';
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $preferredBackgroundGroundColor='0.2 0.2 0 0.3 0.3 0 0.5 0.5 0.3 0.1 0.3 0.4 0 0.2 0.4';
public function getGallery3DId(): ?int
{
return $this->gallery3DId;
}
public function getGallery3DName(): ?string
{
return $this->gallery3DName;
}
public function setGallery3DName(string $gallery3DName): static
{
$this->gallery3DName = $gallery3DName;
return $this;
}
public function getUserId(): ?int
{
return $this->userId;
}
public function setUserId(int $userId): static
{
$this->userId = $userId;
return $this;
}
public function getGallery3DDescription(): ?string
{
return $this->gallery3DDescription;
}
public function setGallery3DDescription(?string $gallery3DDescription): static
{
$this->gallery3DDescription = $gallery3DDescription;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->dateCreated;
}
public function setDateCreated(?\DateTimeInterface $dateCreated): static
{
$this->dateCreated = $dateCreated;
return $this;
}
public function getXmlSourcePath(): ?string
{
return $this->xmlSourcePath;
}
public function setXmlSourcePath(?string $xmlSourcePath): static
{
$this->xmlSourcePath = $xmlSourcePath;
return $this;
}
public function getGalleryLogoUrl(): ?string
{
return $this->galleryLogoUrl;
}
public function setGalleryLogoUrl(?string $galleryLogoUrl): static
{
$this->galleryLogoUrl = $galleryLogoUrl;
return $this;
}
public function getTemplate3DPath(): ?string
{
return $this->template3DPath;
}
public function setTemplate3DPath(?string $template3DPath): static
{
$this->template3DPath = $template3DPath;
return $this;
}
public function isIsStartGuide(): ?bool
{
return $this->isStartGuide;
}
public function setIsStartGuide(?bool $isStartGuide): static
{
$this->isStartGuide = $isStartGuide;
return $this;
}
public function isIsMediumResize(): ?bool
{
return $this->isMediumResize;
}
public function setIsMediumResize(?bool $isMediumResize): static
{
$this->isMediumResize = $isMediumResize;
return $this;
}
public function getGuideCycle(): ?int
{
return $this->guideCycle;
}
public function setGuideCycle(?int $guideCycle): static
{
$this->guideCycle = $guideCycle;
return $this;
}
public function getPreferredViewpointPosition(): ?string
{
return $this->preferredViewpointPosition;
}
public function setPreferredViewpointPosition(?string $preferredViewpointPosition): static
{
$this->preferredViewpointPosition = $preferredViewpointPosition;
return $this;
}
public function getPreferredViewpointRotation(): ?string
{
return $this->preferredViewpointRotation;
}
public function setPreferredViewpointRotation(?string $preferredViewpointRotation): static
{
$this->preferredViewpointRotation = $preferredViewpointRotation;
return $this;
}
public function getPreferredBackgroundSkyColor(): ?string
{
return $this->preferredBackgroundSkyColor;
}
public function setPreferredBackgroundSkyColor(?string $preferredBackgroundSkyColor): static
{
$this->preferredBackgroundSkyColor = $preferredBackgroundSkyColor;
return $this;
}
public function getPreferredBackgroundGroundColor(): ?string
{
return $this->preferredBackgroundGroundColor;
}
public function setPreferredBackgroundGroundColor(?string $preferredBackgroundGroundColor): static
{
$this->preferredBackgroundGroundColor = $preferredBackgroundGroundColor;
return $this;
}
public function getGallery(): ?Gallery
{
return $this->gallery;
}
public function setGallery(?Gallery $gallery): static
{
$this->gallery = $gallery;
return $this;
}
public function getTextureGallery(): ?Gallery
{
return $this->textureGallery;
}
public function setTextureGallery(?Gallery $textureGallery): static
{
$this->textureGallery = $textureGallery;
return $this;
}
public function getFreeWorld(): ?FreeWorld3D
{
return $this->freeWorld;
}
public function setFreeWorld(?FreeWorld3D $freeWorld): static
{
$this->freeWorld = $freeWorld;
return $this;
}
}