Class LayerFilter
Inherited Members
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
GetKey
Gets the key.
Declaration
public virtual string GetKey { get; }
Property Value
Type | Description |
---|---|
System.String | The key. |
Implements
GetMaxValue
Gets the max value.
Declaration
public virtual float GetMaxValue { get; }
Property Value
Type | Description |
---|---|
System.Single | The max value. |
Implements
GetMinValue
Gets the minimum value.
Declaration
public virtual float GetMinValue { get; }
Property Value
Type | Description |
---|---|
System.Single | The minimum value. |
Implements
GetNumberValue
Gets the minimum value.
Declaration
public virtual float GetNumberValue { get; }
Property Value
Type | Description |
---|---|
System.Single | The minimum value. |
Implements
GetPropertyValue
Gets the property value.
Declaration
public virtual string GetPropertyValue { get; }
Property Value
Type | Description |
---|---|
System.String | The property value. |
Implements
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 |
|
Implements
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 |
|
Implements
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 |
|
Implements
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 |
|
Implements
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 |
|
Implements
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 |
|
Implements
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 |
|
Implements
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 |
|
Implements
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 |
|
Implements
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
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
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
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
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. |