src/Entity/Gallery3D.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\EntityRepo\Gallery3DRepo")
  7.  * @ORM\Table(name="gallery_3d")
  8.  */
  9. class Gallery3D
  10. {
  11.     /**
  12.      * @ORM\Column(type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */ 
  16.     protected $gallery3DId=0;
  17.     /**
  18.      * @ORM\Column(type="string", length=100)
  19.      */
  20.     protected $gallery3DName;
  21.     /**
  22.      * @ORM\Column(type="integer", length=100)
  23.      */    
  24.     protected $userId=0;
  25.     /**
  26.      * @ORM\Column(type="string", length=100, nullable=true)
  27.      */
  28.     protected $gallery3DDescription;    
  29.         
  30.     /**
  31.      * @ORM\Column(type="date", nullable=true)
  32.      */
  33.     protected $dateCreated;    
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     protected $xmlSourcePath;      
  38.  
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="Gallery")
  41.      * @ORM\JoinColumn(name="gallery_id", referencedColumnName="gallery_id")
  42.      */
  43.     protected $gallery;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     protected $galleryLogoUrl;      
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity="Gallery")
  50.      * @ORM\JoinColumn(name="texture_gallery_id", referencedColumnName="gallery_id")
  51.      */
  52.     protected $textureGallery;     
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     protected $template3DPath "galleryBasic3D.vrml.php"
  57.     /**
  58.      * @ORM\Column(type="boolean", nullable=true)
  59.      */
  60.     protected $isStartGuide=false
  61.     /**
  62.      * @ORM\Column(type="boolean", nullable=true)
  63.      */
  64.     protected $isMediumResize=false;    
  65.     
  66.     /**
  67.      * @ORM\Column(type="integer", length=5, nullable=true)
  68.      */    
  69.     protected $guideCycle=30;      
  70.     
  71.     /**
  72.      * @ORM\ManyToOne(targetEntity="FreeWorld3D")
  73.      * @ORM\JoinColumn(name="free_world3did", referencedColumnName="free_world3_did")
  74.      */
  75.     protected $freeWorld;
  76.     
  77.     /**
  78.      * @ORM\Column(type="string", length=100, nullable=true)
  79.      */
  80.     protected $preferredViewpointPosition='0 0 0';    
  81.     
  82.     /**
  83.      * @ORM\Column(type="string", length=100, nullable=true)
  84.      */
  85.     protected $preferredViewpointRotation='0 0 0 0';         
  86.     
  87.     /**
  88.      * @ORM\Column(type="string", length=100, nullable=true)
  89.      */
  90.     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';   
  91.         
  92.     /**
  93.      * @ORM\Column(type="string", length=100, nullable=true)
  94.      */
  95.     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';
  96.     public function getGallery3DId(): ?int
  97.     {
  98.         return $this->gallery3DId;
  99.     }
  100.     public function getGallery3DName(): ?string
  101.     {
  102.         return $this->gallery3DName;
  103.     }
  104.     public function setGallery3DName(string $gallery3DName): static
  105.     {
  106.         $this->gallery3DName $gallery3DName;
  107.         return $this;
  108.     }
  109.     public function getUserId(): ?int
  110.     {
  111.         return $this->userId;
  112.     }
  113.     public function setUserId(int $userId): static
  114.     {
  115.         $this->userId $userId;
  116.         return $this;
  117.     }
  118.     public function getGallery3DDescription(): ?string
  119.     {
  120.         return $this->gallery3DDescription;
  121.     }
  122.     public function setGallery3DDescription(?string $gallery3DDescription): static
  123.     {
  124.         $this->gallery3DDescription $gallery3DDescription;
  125.         return $this;
  126.     }
  127.     public function getDateCreated(): ?\DateTimeInterface
  128.     {
  129.         return $this->dateCreated;
  130.     }
  131.     public function setDateCreated(?\DateTimeInterface $dateCreated): static
  132.     {
  133.         $this->dateCreated $dateCreated;
  134.         return $this;
  135.     }
  136.     public function getXmlSourcePath(): ?string
  137.     {
  138.         return $this->xmlSourcePath;
  139.     }
  140.     public function setXmlSourcePath(?string $xmlSourcePath): static
  141.     {
  142.         $this->xmlSourcePath $xmlSourcePath;
  143.         return $this;
  144.     }
  145.     public function getGalleryLogoUrl(): ?string
  146.     {
  147.         return $this->galleryLogoUrl;
  148.     }
  149.     public function setGalleryLogoUrl(?string $galleryLogoUrl): static
  150.     {
  151.         $this->galleryLogoUrl $galleryLogoUrl;
  152.         return $this;
  153.     }
  154.     public function getTemplate3DPath(): ?string
  155.     {
  156.         return $this->template3DPath;
  157.     }
  158.     public function setTemplate3DPath(?string $template3DPath): static
  159.     {
  160.         $this->template3DPath $template3DPath;
  161.         return $this;
  162.     }
  163.     public function isIsStartGuide(): ?bool
  164.     {
  165.         return $this->isStartGuide;
  166.     }
  167.     public function setIsStartGuide(?bool $isStartGuide): static
  168.     {
  169.         $this->isStartGuide $isStartGuide;
  170.         return $this;
  171.     }
  172.     public function isIsMediumResize(): ?bool
  173.     {
  174.         return $this->isMediumResize;
  175.     }
  176.     public function setIsMediumResize(?bool $isMediumResize): static
  177.     {
  178.         $this->isMediumResize $isMediumResize;
  179.         return $this;
  180.     }
  181.     public function getGuideCycle(): ?int
  182.     {
  183.         return $this->guideCycle;
  184.     }
  185.     public function setGuideCycle(?int $guideCycle): static
  186.     {
  187.         $this->guideCycle $guideCycle;
  188.         return $this;
  189.     }
  190.     public function getPreferredViewpointPosition(): ?string
  191.     {
  192.         return $this->preferredViewpointPosition;
  193.     }
  194.     public function setPreferredViewpointPosition(?string $preferredViewpointPosition): static
  195.     {
  196.         $this->preferredViewpointPosition $preferredViewpointPosition;
  197.         return $this;
  198.     }
  199.     public function getPreferredViewpointRotation(): ?string
  200.     {
  201.         return $this->preferredViewpointRotation;
  202.     }
  203.     public function setPreferredViewpointRotation(?string $preferredViewpointRotation): static
  204.     {
  205.         $this->preferredViewpointRotation $preferredViewpointRotation;
  206.         return $this;
  207.     }
  208.     public function getPreferredBackgroundSkyColor(): ?string
  209.     {
  210.         return $this->preferredBackgroundSkyColor;
  211.     }
  212.     public function setPreferredBackgroundSkyColor(?string $preferredBackgroundSkyColor): static
  213.     {
  214.         $this->preferredBackgroundSkyColor $preferredBackgroundSkyColor;
  215.         return $this;
  216.     }
  217.     public function getPreferredBackgroundGroundColor(): ?string
  218.     {
  219.         return $this->preferredBackgroundGroundColor;
  220.     }
  221.     public function setPreferredBackgroundGroundColor(?string $preferredBackgroundGroundColor): static
  222.     {
  223.         $this->preferredBackgroundGroundColor $preferredBackgroundGroundColor;
  224.         return $this;
  225.     }
  226.     public function getGallery(): ?Gallery
  227.     {
  228.         return $this->gallery;
  229.     }
  230.     public function setGallery(?Gallery $gallery): static
  231.     {
  232.         $this->gallery $gallery;
  233.         return $this;
  234.     }
  235.     public function getTextureGallery(): ?Gallery
  236.     {
  237.         return $this->textureGallery;
  238.     }
  239.     public function setTextureGallery(?Gallery $textureGallery): static
  240.     {
  241.         $this->textureGallery $textureGallery;
  242.         return $this;
  243.     }
  244.     public function getFreeWorld(): ?FreeWorld3D
  245.     {
  246.         return $this->freeWorld;
  247.     }
  248.     public function setFreeWorld(?FreeWorld3D $freeWorld): static
  249.     {
  250.         $this->freeWorld $freeWorld;
  251.         return $this;
  252.     }           
  253. }