Method | Description | |
---|---|---|
Camera ( ITrackableObject trackObject, |
Creates a new instance of the Camera class from the specified TrackObject and TriggerBounds.
|
|
CenterCamera ( ) : void |
This method will immediately move the Camera to center on the ITrackableObject. If you wish to pan smoothly, you should use CenterCamera(float). This is effectively the same as the CenterCamera(float) method with an value of |
|
CenterCamera ( float animationTime ) : void |
This method will smoothly center the Camera to the ITrackableObject. If a value of |
|
Contains ( ITrackableObject testObject, bool entirelyContained ) : bool |
Determines if the current Camera instances contains the ITrackableObject.
|
|
MoveCamera ( Vector2F vector ) : void |
Alters the Position of the current Camera instance by the specified Vector2F.
|
|
ResizeCamera ( Vector2F adjustment ) : void |
Alters the Size of the current Camera instance by the specified Vector2F.
|
|
ScaleCamera ( float adjustment ) : void |
Alters the Scale of the current Camera instance by the specified value.
|
|
SetPosition ( |
Updates the Position of the current Camera instance to the value specified.
|
|
SetScale ( float scale ) : void |
Updates the Scale of the current Camera instance to the specified value.
|
|
SetSize ( |
Updates the Size of the current Camera instance.
|
Method | Description | |
---|---|---|
OnTrackableObjectChanged ( |
||
trackObject_TrackableObjectChanged ( object sender, |
public Camera ( ITrackableObject trackObject, |
||
trackObject | ITrackableObject | An |
triggerBounds | A |
|
return | Evbpc.Framework.Drawing |
public CenterCamera ( float animationTime ) : void | ||
animationTime | float | A value that indicates how long (in seconds) it should take the |
return | void |
public Contains ( ITrackableObject testObject, bool entirelyContained ) : bool | ||
testObject | ITrackableObject | The |
entirelyContained | bool | If true, will only return true if the testObject is entirely contained in the |
return | bool |
public MoveCamera ( Vector2F vector ) : void | ||
vector | Vector2F | The distance to move the |
return | void |
public ResizeCamera ( Vector2F adjustment ) : void | ||
adjustment | Vector2F | The |
return | void |
public ScaleCamera ( float adjustment ) : void | ||
adjustment | float | The value representing how much to zoom/unzoom the |
return | void |
public SetPosition ( |
||
position | A |
|
return | void |
public SetScale ( float scale ) : void | ||
scale | float | The new value for the |
return | void |
public SetSize ( |
||
size | A |
|
return | void |