public void SetPropertyValue(VarjoCameraPropertyType type, VarjoCameraPropertyValue value) { VarjoPluginMR.LockCameraConfig(); VarjoPluginMR.SetCameraPropertyValue(type, value); UpdateValues(); VarjoPluginMR.UnlockCameraConfig(); }
public void SetPropertyMode(VarjoCameraPropertyType type, VarjoCameraPropertyMode mode) { VarjoPluginMR.LockCameraConfig(); VarjoPluginMR.SetCameraPropertyMode(type, mode); UpdateModes(); VarjoPluginMR.UnlockCameraConfig(); }
/// <summary> /// Resets the given camera property back to its default. /// </summary> /// <param name="type">The camera property type.</param> public static void ResetCameraProperty(VarjoCameraPropertyType type) { if (!IsMRAvailable(true)) { return; } varjo_MRResetCameraProperty(GetSession(), type); }
/// <summary> /// Retrieves the number of possible values for the camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <returns>The number of possible values for the camera property.</returns> public static int GetCameraPropertyValueCount(VarjoCameraPropertyType type) { if (!IsMRAvailable(true)) { return(0); } return(varjo_MRGetCameraPropertyValueCount(GetSession(), type)); }
public void ResetProperty(VarjoCameraPropertyType type) { VarjoPluginMR.LockCameraConfig(); VarjoPluginMR.ResetCameraProperty(type); UpdateValues(); UpdateModes(); VarjoPluginMR.UnlockCameraConfig(); }
/// <summary> /// Retrieves the number of possible values for the camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <returns>The number of possible values for the camera property.</returns> public static int GetCameraPropertyValueCount(VarjoCameraPropertyType type) { if (!IsMRReady()) { return(0); } return(varjo_MRGetCameraPropertyValueCount(GetVarjoSession(), type)); }
/// <summary> /// Resets the given camera property back to its default. /// </summary> /// <param name="type">The camera property type.</param> public static void ResetCameraProperty(VarjoCameraPropertyType type) { if (!IsMRReady()) { return; } varjo_MRResetCameraProperty(GetVarjoSession(), type); }
/// <summary> /// Sets the current value for the given camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <param name="value">The value to set.</param> /// <returns>True, if no errors. Otherwise false.</returns> public static bool SetCameraPropertyValue(VarjoCameraPropertyType type, VarjoCameraPropertyValue value) { if (!IsMRReady()) { return(false); } varjo_MRSetCameraPropertyValue(GetVarjoSession(), type, ref value); return(CheckError()); }
/// <summary> /// Sets the current mode for the camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <param name="mode">The mode to set.</param> /// <returns>True, if no errors. Otherwise false.</returns> public static bool SetCameraPropertyMode(VarjoCameraPropertyType type, VarjoCameraPropertyMode mode) { if (!IsMRReady()) { return(false); } varjo_MRSetCameraPropertyMode(GetSession(), type, mode); return(CheckError()); }
VarjoCameraPropertyMode GetPropertyMode(VarjoCameraPropertyType type) { VarjoCameraPropertyMode mode; if (VarjoPluginMR.GetCameraPropertyMode(type, out mode)) { return(mode); } return(VarjoCameraPropertyMode.Off); }
VarjoCameraPropertyValue GetPropertyValue(VarjoCameraPropertyType type) { VarjoCameraPropertyValue value; if (VarjoPluginMR.GetCameraPropertyValue(type, out value)) { return(value); } return(default(VarjoCameraPropertyValue)); }
VarjoCameraPropertyValue[] GetPropertyValues(VarjoCameraPropertyType type) { List <VarjoCameraPropertyValue> list = new List <VarjoCameraPropertyValue>(); VarjoCameraPropertyValue[] values = new VarjoCameraPropertyValue[VarjoPluginMR.GetCameraPropertyValueCount(type)]; if (VarjoPluginMR.GetCameraPropertyValues(type, out list)) { values = list.ToArray(); } return(values); }
/// <summary> /// Retrieves the current value for the given camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <param name="value">The current value of the camera property.</param> /// <returns>True, if no errors. Otherwise false.</returns> public static bool GetCameraPropertyValue(VarjoCameraPropertyType type, out VarjoCameraPropertyValue value) { if (!IsMRReady()) { value = new VarjoCameraPropertyValue(); return(false); } value = varjo_MRGetCameraPropertyValue(GetVarjoSession(), type); return(CheckError()); }
VarjoCameraPropertyMode[] GetPropertyModes(VarjoCameraPropertyType type) { List <VarjoCameraPropertyMode> list = new List <VarjoCameraPropertyMode>(); VarjoCameraPropertyMode[] modes = new VarjoCameraPropertyMode[VarjoPluginMR.GetCameraPropertyModeCount(type)]; if (VarjoPluginMR.GetCameraPropertyModes(type, out list)) { modes = list.ToArray(); } return(modes); }
/// <summary> /// Retrieves the camera property's configuration type, i.e. does it accept only selected list values or /// a range of values. /// </summary> /// <param name="prop">The camera property type.</param> /// <param name="configType">The camera property's configuration type.</param> /// <returns>True, if no errors. Otherwise false.</returns> public static bool GetCameraPropertyConfigType(VarjoCameraPropertyType prop, out VarjoCameraPropertyConfigType configType) { if (!IsMRReady()) { configType = VarjoCameraPropertyConfigType.List; return(false); } configType = (VarjoCameraPropertyConfigType)varjo_MRGetCameraPropertyConfigType(GetVarjoSession(), prop); return(CheckError()); }
/// <summary> /// Retrieves the current mode for the camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <param name="mode">The current mode for the camera property.</param> /// <returns>True, if no errors. Otherwise false.</returns> public static bool GetCameraPropertyMode(VarjoCameraPropertyType type, out VarjoCameraPropertyMode mode) { if (!IsMRReady()) { mode = VarjoCameraPropertyMode.Off; return(false); } mode = (VarjoCameraPropertyMode)varjo_MRGetCameraPropertyMode(GetVarjoSession(), type); return(CheckError()); }
/// <summary> /// Retrieves all possible values for the given camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <param name="values">The list of possible values for the camera property.</param> /// <returns>True, if no errors. Otherwise false.</returns> public static bool GetCameraPropertyValues(VarjoCameraPropertyType type, out List <VarjoCameraPropertyValue> values) { if (!IsMRReady()) { values = new List <VarjoCameraPropertyValue>(); return(false); } int count = GetCameraPropertyValueCount(type); VarjoCameraPropertyValue[] valueArray = new VarjoCameraPropertyValue[count]; varjo_MRGetCameraPropertyValues(GetVarjoSession(), type, valueArray, count); values = valueArray.ToList(); return(CheckError()); }
/// <summary> /// Retrieves all available modes for the given camera property. /// </summary> /// <param name="type">The camera property type.</param> /// <param name="modes">The available modes for the camera property.</param> /// <returns>True, if no errors. Otherwise false.</returns> public static bool GetCameraPropertyModes(VarjoCameraPropertyType type, out List <VarjoCameraPropertyMode> modes) { if (!IsMRReady()) { modes = new List <VarjoCameraPropertyMode>(); return(false); } int count = GetCameraPropertyModeCount(type); VarjoCameraPropertyMode[] modesArray = new VarjoCameraPropertyMode[count]; varjo_MRGetCameraPropertyModes(GetVarjoSession(), type, modesArray, count); modes = modesArray.ToList(); return(CheckError()); }
public void SetMode(VarjoCameraPropertyType type, VarjoCameraPropertyMode mode) { settings.SetPropertyMode(type, mode); UpdateModes(); UpdateValues(); }
private static extern int varjo_MRGetCameraPropertyValueCount(IntPtr session, VarjoCameraPropertyType prop);
private static extern void varjo_MRSetCameraPropertyMode(IntPtr session, VarjoCameraPropertyType type, VarjoCameraPropertyMode mode);
private static extern void varjo_MRGetCameraPropertyModes(IntPtr session, VarjoCameraPropertyType prop, [In, Out] VarjoCameraPropertyMode[] modes, int maxSize);
public void ResetValue(VarjoCameraPropertyType type) { settings.ResetProperty(type); UpdateModes(); UpdateValues(); }
public void SetValue(VarjoCameraPropertyType type, VarjoCameraPropertyValue value) { settings.SetPropertyValue(type, value); UpdateValues(); }
private static extern long varjo_MRGetCameraPropertyMode(IntPtr session, VarjoCameraPropertyType type);
private static extern VarjoCameraPropertyValue varjo_MRGetCameraPropertyValue(IntPtr session, VarjoCameraPropertyType type);
private static extern long varjo_MRGetCameraPropertyConfigType(IntPtr session, VarjoCameraPropertyType prop);
private static extern void varjo_MRSetCameraPropertyValue(IntPtr session, VarjoCameraPropertyType type, ref VarjoCameraPropertyValue value);
private static extern int varjo_MRGetCameraPropertyValues(IntPtr session, VarjoCameraPropertyType prop, [In, Out] VarjoCameraPropertyValue[] values, int maxSize);
private static extern void varjo_MRResetCameraProperty(IntPtr session, VarjoCameraPropertyType type);