Constructor
new FilterBase(attribute, attributeIndex)
- Source:
Properties:
Name | Type | Description |
---|---|---|
type |
string | The type name of this object (Lore.FilterBase). |
geometry |
Lore.Geometry | The Geometry associated with this filter. |
attribute |
string | The name of the attribute to filter on. |
attributeIndex |
number | The attribute-index to filter on. |
active |
boolean | Whether or not the filter is active. |
Creates an instance of FilterBase.
Parameters:
Name | Type | Description |
---|---|---|
attribute |
string | The name of the attribute to filter on. |
attributeIndex |
name | The attribute-index to filter on. |
Methods
(static) isVisible(geometry, index) → {boolean}
- Source:
Check whether or not a vertex with a given index is visible. A vertex is visible when its color attribute is > 0.0 at attribute-index 2 (the size in HSS).
Parameters:
Name | Type | Description |
---|---|---|
geometry |
Lore.Geometry | A Lore.Geometry with a color attribute. |
index |
number | A vertex index. |
Returns:
A boolean indicating whether or not the vertex specified by index is visible (HSS size > 0.0).
- Type
- boolean
filter()
- Source:
Abstract method.
getGeometry() → {Lore.Geometry}
- Source:
Returns the geometry associated with this filter.
Returns:
The geometry associated with this filter.
- Type
- Lore.Geometry
reset()
- Source:
Abstract method.
setGeometry(value)
- Source:
Sets the geometry associated with this filter.
Parameters:
Name | Type | Description |
---|---|---|
value |
Lore.Geometry | The geometry to be associated with this filter. |