Class MARSDatabase
Syntax
public class MARSDatabase : IModuleMarsUpdate, IModule, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IUsesCameraPose, IFunctionalitySubscriber<IProvidesCameraPose>, IFunctionalitySubscriber
Fields
MinimumPassingConditionRating
So that conditions which barely pass have a more than negligible effect on the total
match rating, we have a minimum value that a passing condition should be rated
Declaration
public const float MinimumPassingConditionRating = 0.05F
Field Value
MinimumRatingMinusOne
Used in linear interpolation going from 1 to the minimum rating in place of (to - from)
Declaration
public const float MinimumRatingMinusOne = -0.95F
Field Value
Properties
faceData
Declaration
public MARSTrackableDataProvider<IMRFace> faceData { get; protected set; }
Property Value
markerData
Declaration
public MARSTrackableDataProvider<MRMarker> markerData { get; protected set; }
Property Value
planeData
Declaration
public MARSTrackableDataProvider<MRPlane> planeData { get; protected set; }
Property Value
referencePointData
Declaration
public MARSTrackableDataProvider<MRReferencePoint> referencePointData { get; protected set; }
Property Value
synthesizedObjectData
Declaration
public MARSDataProvider<SynthesizedObject> synthesizedObjectData { get; protected set; }
Property Value
Methods
Clear()
Declaration
IsSetQueryDataDirty(QueryMatchID)
Declaration
public bool IsSetQueryDataDirty(QueryMatchID queryMatchId)
Parameters
Returns
LoadModule()
Declaration
Implements
MarkDataUsedForUpdates(Int32, QueryMatchID, Exclusivity)
Declaration
public void MarkDataUsedForUpdates(int dataID, QueryMatchID queryMatchID, Exclusivity exclusivity)
Parameters
MarkSetDataUsedForUpdates(QueryMatchID, HashSet<Int32>)
Declaration
public void MarkSetDataUsedForUpdates(QueryMatchID queryMatchId, HashSet<int> data)
Parameters
OnBehaviorDestroy()
Declaration
public void OnBehaviorDestroy()
OnBehaviorDisable()
Declaration
public void OnBehaviorDisable()
OnMarsUpdate()
Declaration
public void OnMarsUpdate()
Implements
QueryDataDirty(QueryMatchID)
Declaration
public bool QueryDataDirty(QueryMatchID queryMatchID)
Parameters
Returns
RateConditionMatches<T>(ICondition<T>[], MARSTraitDataProvider<T>, List<Dictionary<Int32, Single>>)
Declaration
public bool RateConditionMatches<T>(ICondition<T>[] conditions, MARSTraitDataProvider<T> traitProvider, List<Dictionary<int, float>> preAllocatedRatingStorage)
Parameters
Returns
Type Parameters
TryUpdateQueryMatchData(Int32, Conditions, ProxyTraitRequirements, QueryResult)
See if the value for a given data ID still meets a set of Conditions
Declaration
public bool TryUpdateQueryMatchData(int dataID, Conditions conditions, ProxyTraitRequirements requirements, QueryResult result)
Parameters
Returns
Type |
Description |
Boolean |
True if the query data still matches, false otherwise
|
TryUpdateSetQueryMatchData(SetMatchData, Relations, SetQueryResult, Boolean)
Declaration
public bool TryUpdateSetQueryMatchData(SetMatchData data, Relations relations, SetQueryResult result, bool failOnNonRequiredChildren = false)
Parameters
Returns
UnloadModule()
Declaration
public void UnloadModule()
Implements
UnmarkDataUsedForUpdates(QueryMatchID)
Declaration
public void UnmarkDataUsedForUpdates(QueryMatchID queryMatchID)
Parameters
UnmarkPartialSetDataUsedForUpdates(QueryMatchID, ICollection<IMRObject>)
Declaration
public void UnmarkPartialSetDataUsedForUpdates(QueryMatchID queryMatchId, ICollection<IMRObject> childrenToUnmark)
Parameters
UnmarkSetDataUsedForUpdates(QueryMatchID)
Declaration
public void UnmarkSetDataUsedForUpdates(QueryMatchID queryMatchId)
Parameters
Explicit Interface Implementations
Declaration
IProvidesCameraOffset IFunctionalitySubscriber<IProvidesCameraOffset>.provider { get; set; }
Returns
Implements
Declaration
IProvidesCameraPose IFunctionalitySubscriber<IProvidesCameraPose>.provider { get; set; }
Returns
Implements
Extension Methods