Class LayerType
Represents a type description with inherited information
about the properties, the constructor to create an instance of that type
as well as their expected parameters with the parameter type
Inheritance
System.Object
LayerType
Assembly: Mars.Interfaces.dll
Syntax
public class LayerType : TypeElement, IEquatable<TypeElement>
Constructors
LayerType(Type)
Declaration
public LayerType(Type metaType)
Parameters
Type |
Name |
Description |
Type |
metaType |
|
Properties
ActiveConstructor
The constructor which will be used to create new instances
according to the parameters its expects
Declaration
public override ConstructorType ActiveConstructor { get; }
Property Value
Overrides
AgentTypes
All the agents which lies on this layer
Declaration
public ISet<AgentType> AgentTypes { get; }
Property Value
IsActive
Checks whether this layer can be executed
Declaration
public bool IsActive { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsDataLayer
Checks whether this layer provides data
Declaration
public bool IsDataLayer { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsRaster
Checks whether this type is a spatial raster layer
Declaration
public bool IsRaster { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsVector
Checks whether this type is spatial vector layer
Declaration
public bool IsVector { get; }
Property Value
Type |
Description |
System.Boolean |
|
LayerDependencies
Declaration
public IEnumerable<LayerType> LayerDependencies { get; }
Property Value
Mapping
The input for this layer type to create a new instance
Declaration
public LayerMapping Mapping { get; set; }
Property Value
TypeDependencies
Declaration
public List<Type> TypeDependencies { get; set; }
Property Value
Type |
Description |
List<Type> |
|
TypeMapping
Declaration
public override TypeMapping TypeMapping { get; }
Property Value
Overrides
VectorFeatureType
Gets the internal vector-feature type or null if no generic type for
IVectorLayer<T> generic is defined.
Declaration
public FeatureType VectorFeatureType { get; set; }
Property Value
Methods
IsLayerType(Type)
Checks whether this type is a supported layer type
Declaration
public static bool IsLayerType(Type t)
Parameters
Type |
Name |
Description |
Type |
t |
The CLR type description. |
Returns
Type |
Description |
System.Boolean |
Return true when the type implements the interface ILayer. |
Implements
IEquatable<>