Show / Hide Table of Contents

Class LayerFilter

Inheritance
System.Object
MapboxDataProperty
LayerFilter
Inherited Members
MapboxDataProperty.PropertyHasChanged
MapboxDataProperty.OnPropertyHasChanged(EventArgs)
MapboxDataProperty.HasChanged
MapboxDataProperty.NeedsForceUpdate()
MapboxDataProperty.UpdateProperty(UnityTile)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace:Mapbox.Unity.MeshGeneration.Filters
Assembly:cs.temp.dll.dll
Syntax
[Serializable]
public class LayerFilter : MapboxDataProperty, ILayerFilter

Constructors

LayerFilter(LayerFilterOperationType)

Declaration
public LayerFilter(LayerFilterOperationType filterOperation = LayerFilterOperationType.Contains)
Parameters
Type Name Description
LayerFilterOperationType filterOperation

Fields

filterOperator

Declaration
public LayerFilterOperationType filterOperator
Field Value
Type Description
LayerFilterOperationType

Key

Declaration
public string Key
Field Value
Type Description
System.String

Max

Declaration
public float Max
Field Value
Type Description
System.Single

Min

Declaration
public float Min
Field Value
Type Description
System.Single

PropertyValue

Declaration
public string PropertyValue
Field Value
Type Description
System.String

Properties

GetFilterOperationType

Gets the type of the filter operation.

Declaration
public virtual LayerFilterOperationType GetFilterOperationType { get; }
Property Value
Type Description
LayerFilterOperationType

The filter operation type.

Implements
ILayerFilter.GetFilterOperationType

GetKey

Gets the key.

Declaration
public virtual string GetKey { get; }
Property Value
Type Description
System.String

The key.

Implements
ILayerFilter.GetKey

GetMaxValue

Gets the max value.

Declaration
public virtual float GetMaxValue { get; }
Property Value
Type Description
System.Single

The max value.

Implements
ILayerFilter.GetMaxValue

GetMinValue

Gets the minimum value.

Declaration
public virtual float GetMinValue { get; }
Property Value
Type Description
System.Single

The minimum value.

Implements
ILayerFilter.GetMinValue

GetNumberValue

Gets the minimum value.

Declaration
public virtual float GetNumberValue { get; }
Property Value
Type Description
System.Single

The minimum value.

Implements
ILayerFilter.GetNumberValue

GetPropertyValue

Gets the property value.

Declaration
public virtual string GetPropertyValue { get; }
Property Value
Type Description
System.String

The property value.

Implements
ILayerFilter.GetPropertyValue

Methods

FilterIsInRangeValueContains(Single)

Returns true if filter range values contain a given number.

Declaration
public virtual bool FilterIsInRangeValueContains(float value)
Parameters
Type Name Description
System.Single value

Value.

Returns
Type Description
System.Boolean

true, if is in range value contains was filtered, false otherwise.

Implements
ILayerFilter.FilterIsInRangeValueContains(Single)

FilterKeyContains(String)

Returns true if filter key contains a given string.

Declaration
public virtual bool FilterKeyContains(string key)
Parameters
Type Name Description
System.String key

Key.

Returns
Type Description
System.Boolean

true, if key contains was filtered, false otherwise.

Implements
ILayerFilter.FilterKeyContains(String)

FilterKeyMatchesExact(String)

Returns true if filter key matches a given string exactly.

Declaration
public virtual bool FilterKeyMatchesExact(string key)
Parameters
Type Name Description
System.String key

Key.

Returns
Type Description
System.Boolean

true, if key matches exact was filtered, false otherwise.

Implements
ILayerFilter.FilterKeyMatchesExact(String)

FilterNumberValueEquals(Single)

Returns true if filter number value is equal to a given number.

Declaration
public virtual bool FilterNumberValueEquals(float value)
Parameters
Type Name Description
System.Single value

Value.

Returns
Type Description
System.Boolean

true, if number value equals was filtered, false otherwise.

Implements
ILayerFilter.FilterNumberValueEquals(Single)

FilterNumberValueIsGreaterThan(Single)

Returns true if filter number value is greater than a given number.

Declaration
public virtual bool FilterNumberValueIsGreaterThan(float value)
Parameters
Type Name Description
System.Single value

Value.

Returns
Type Description
System.Boolean

true, if number value is greater than was filtered, false otherwise.

Implements
ILayerFilter.FilterNumberValueIsGreaterThan(Single)

FilterNumberValueIsLessThan(Single)

Returns true if filter number value is less than a given number.

Declaration
public virtual bool FilterNumberValueIsLessThan(float value)
Parameters
Type Name Description
System.Single value

Value.

Returns
Type Description
System.Boolean

true, if number value is less than was filtered, false otherwise.

Implements
ILayerFilter.FilterNumberValueIsLessThan(Single)

FilterPropertyContains(String)

Returns true if filter property contains a given string.

Declaration
public virtual bool FilterPropertyContains(string property)
Parameters
Type Name Description
System.String property

Property.

Returns
Type Description
System.Boolean

true, if property contains was filtered, false otherwise.

Implements
ILayerFilter.FilterPropertyContains(String)

FilterPropertyMatchesExact(String)

Returns true if filter property matches a given string exactly.

Declaration
public virtual bool FilterPropertyMatchesExact(string property)
Parameters
Type Name Description
System.String property

Property.

Returns
Type Description
System.Boolean

true, if property matches exact was filtered, false otherwise.

Implements
ILayerFilter.FilterPropertyMatchesExact(String)

FilterUsesOperationType(LayerFilterOperationType)

Returns true if filter uses a given operation type.

Declaration
public virtual bool FilterUsesOperationType(LayerFilterOperationType layerFilterOperationType)
Parameters
Type Name Description
LayerFilterOperationType layerFilterOperationType

Layer filter operation type.

Returns
Type Description
System.Boolean

true, if uses operation type was filtered, false otherwise.

Implements
ILayerFilter.FilterUsesOperationType(LayerFilterOperationType)

GetFilterComparer()

Declaration
public ILayerFeatureFilterComparer GetFilterComparer()
Returns
Type Description
ILayerFeatureFilterComparer

SetNumberIsEqual(String, Single)

Sets the number is equal.

Declaration
public virtual void SetNumberIsEqual(string key, float value)
Parameters
Type Name Description
System.String key

Key.

System.Single value

Value.

Implements
ILayerFilter.SetNumberIsEqual(String, Single)

SetNumberIsGreaterThan(String, Single)

Sets the number is greater than.

Declaration
public virtual void SetNumberIsGreaterThan(string key, float value)
Parameters
Type Name Description
System.String key

Key.

System.Single value

Value.

Implements
ILayerFilter.SetNumberIsGreaterThan(String, Single)

SetNumberIsInRange(String, Single, Single)

Sets the number is in range.

Declaration
public virtual void SetNumberIsInRange(string key, float min, float max)
Parameters
Type Name Description
System.String key

Key.

System.Single min

Minimum.

System.Single max

Max.

Implements
ILayerFilter.SetNumberIsInRange(String, Single, Single)

SetNumberIsLessThan(String, Single)

Sets the number is less than.

Declaration
public virtual void SetNumberIsLessThan(string key, float value)
Parameters
Type Name Description
System.String key

Key.

System.Single value

Value.

Implements
ILayerFilter.SetNumberIsLessThan(String, Single)

SetStringContains(String, String)

Sets the string contains.

Declaration
public virtual void SetStringContains(string key, string property)
Parameters
Type Name Description
System.String key

Key.

System.String property

Property.

Implements
ILayerFilter.SetStringContains(String, String)
Back to top © 2017 Mapbox