// 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); }
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"); }
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); } }
public SizeHandler(PhotosHandler photosHandler) { this.photosHandler = photosHandler; }
public TexturePainter(PhotosHandler photosHandler) { this.photosHandler = photosHandler; }