forked from mtysgithub/Qualcomm.Vuforia.UnityExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCloudRecoImageTargetImpl.cs
66 lines (54 loc) · 1.71 KB
/
CloudRecoImageTargetImpl.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using UnityEngine;
internal class CloudRecoImageTargetImpl : TrackableImpl, ImageTarget, ExtendedTrackable, Trackable
{
private readonly Vector2 mSize;
public CloudRecoImageTargetImpl(string name, int id, Vector2 size) : base(name, id)
{
this.mSize = size;
}
public VirtualButton CreateVirtualButton(string name, RectangleData area)
{
Debug.LogError("Virtual buttons are currently not supported for cloud reco targets.");
return null;
}
public bool DestroyVirtualButton(VirtualButton vb)
{
Debug.LogError("Virtual buttons are currently not supported for cloud reco targets.");
return false;
}
public Vector2 GetSize()
{
return this.mSize;
}
public VirtualButton GetVirtualButtonByName(string name)
{
Debug.LogError("Virtual buttons are currently not supported for cloud reco targets.");
return null;
}
public IEnumerable<VirtualButton> GetVirtualButtons()
{
Debug.LogError("Virtual buttons are currently not supported for cloud reco targets.");
return new List<VirtualButton>();
}
public void SetSize(Vector2 size)
{
Debug.LogError("Setting the size of cloud reco targets is currently not supported.");
}
public bool StartExtendedTracking()
{
return (QCARWrapper.Instance.StartExtendedTracking(IntPtr.Zero, base.ID) > 0);
}
public bool StopExtendedTracking()
{
return (QCARWrapper.Instance.StopExtendedTracking(IntPtr.Zero, base.ID) > 0);
}
public ImageTargetType ImageTargetType
{
get
{
return ImageTargetType.CLOUD_RECO;
}
}
}