Class FindMaterialByNameQueryNode
Class FindMaterialByNameQueryNode.
Inherited Members
Namespace: Unity.Industrial.Forma.Core.Variants
Syntax
public class FindMaterialByNameQueryNode : MaterialQueryNode, IQuery<Material>, IQuery
Properties
defaultMaterial
Gets or sets the default material.
Declaration
public Material defaultMaterial { get; set; }
Property Value
Type | Description |
---|---|
Material | The default material. |
searchName
Gets or sets the name of the search.
Declaration
public string searchName { get; set; }
Property Value
Type | Description |
---|---|
String | The name of the search. |
Methods
FindMaterialsForName(QueryContext)
Finds the name of the materials for.
Declaration
public IEnumerable<Material> FindMaterialsForName(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
IEnumerable<Material> | IEnumerable<Material>. |
Query(QueryContext)
Find material of this name within the context
Declaration
public override Material Query(QueryContext context)
Parameters
Type | Name | Description |
---|---|---|
QueryContext | context | The context. |
Returns
Type | Description |
---|---|
Material | The first material which a matching name |
Overrides
Unity.Industrial.Forma.Core.Variants.QueryNode<Material>.Query(Unity.Industrial.Forma.Core.Variants.QueryContext)
SetQuery(Material, QueryContext)
Sets the query.
Declaration
public override void SetQuery(Material material, QueryContext context = null)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material. |
QueryContext | context | The context. |
Overrides
Unity.Industrial.Forma.Core.Variants.QueryNode<Material>.SetQuery(Material, Unity.Industrial.Forma.Core.Variants.QueryContext)