Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     this.arAPIHandler   = new ARAPIHandler();
     this.photosHandler  = new PhotosHandler();
     this.texturePainter = new TexturePainter(this.photosHandler);
     this.sizeHandler    = new SizeHandler(this.photosHandler);
     Debug.Log("photoNameText.text: " + this.photoNameText.text);
 }
Exemplo n.º 2
0
        public void PerformSessionRequest(string code, PhotosHandler photosHandler)
        {
            // should fill the listPhotos + display the first image on the plane
            List <string> listPhotoNames = this.RequestPhotoNames(code);

            Debug.Log("got photo names");
            foreach (string photoName in listPhotoNames)
            {
                Debug.Log("Name: " + photoName);
                Photo photo = this.RequestPhoto(photoName);
                photosHandler.AddPhoto(photo);
            }
            Debug.Log("session request " + code + " performed");
        }
Exemplo n.º 3
0
        public void LoadPhotos_Add5Photos()
        {
            PhotosHandler photosHandler = new PhotosHandler();

            string[] paths = new string[] { "1.jpg", "2.png", "3.txt", "4.exe", "5" };

            photosHandler.LoadPhotos(paths);

            Assert.Equal(2, photosHandler.Photos.Count);

            for (int i = 0; i < photosHandler.Photos.Count; i++)
            {
                Assert.Equal(paths[i], photosHandler.Photos[i].Path);
            }
        }
Exemplo n.º 4
0
 public SizeHandler(PhotosHandler photosHandler)
 {
     this.photosHandler = photosHandler;
 }
Exemplo n.º 5
0
 public TexturePainter(PhotosHandler photosHandler)
 {
     this.photosHandler = photosHandler;
 }