Class HandBrush
Links with Hand recognition component and creates mark image
Inheritance
Namespace: TofAr.V0.MarkRecog
Assembly: TofArMarkRecogAssembly.dll
Syntax
public class HandBrush : MonoBehaviour
Fields
autoRotation
true: Rotate drawing according to device rotation
false: Drawing does not automatically rotate
Default: false
Declaration
public bool autoRotation
Field Value
Type |
---|
System.Boolean |
DrawPointAdded
Added drawing point event
Declaration
public HandBrush.DrawPointAddedEventHandler DrawPointAdded
Field Value
Type |
---|
HandBrush.DrawPointAddedEventHandler |
DrawStarted
Drawing started event
Declaration
public HandBrush.DrawStartedEventHandler DrawStarted
Field Value
Type |
---|
HandBrush.DrawStartedEventHandler |
DrawStopped
Drawing stopped event
Declaration
public HandBrush.DrawStoppedEventHandler DrawStopped
Field Value
Type |
---|
HandBrush.DrawStoppedEventHandler |
significantMotion
Drawing update threshold. The drawing is updated once the distance traveled by the finger between frames is above this threshold.
Default: 0.01
Declaration
public float significantMotion
Field Value
Type |
---|
System.Single |
startPose1
Start drawing pose 1
Declaration
public PoseIndex startPose1
Field Value
Type |
---|
PoseIndex |
startPose2
Start drawing pose 2
Declaration
public PoseIndex startPose2
Field Value
Type |
---|
PoseIndex |
stopPose1
Stop drawing pose 1
Declaration
public PoseIndex stopPose1
Field Value
Type |
---|
PoseIndex |
stopPose2
Stop drawing pose 2
Declaration
public PoseIndex stopPose2
Field Value
Type |
---|
PoseIndex |
Properties
CurrentMarkRenderer
Current mark renderer
Declaration
public GameObject CurrentMarkRenderer { get; }
Property Value
Type |
---|
UnityEngine.GameObject |
DrawEnabled
true if mark drawing is enabled
Declaration
public bool DrawEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
SetRenderer(GameObject)
Sets Renderer
Declaration
public void SetRenderer(GameObject renderer)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | renderer | Renderer |
StartDrawing()
Start drawing
Declaration
public void StartDrawing()
StopDrawing()
Stop drawing
Declaration
public void StopDrawing()