// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool Xbim.CodeGeneration 
//  
//     Changes to this file may cause incorrect behaviour and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

using Xbim.Ifc4.Interfaces;
using System.Collections.Generic;
using System.Linq;
using Xbim.Common;

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc2x3.PresentationAppearanceResource
{
	public partial class @IfcSurfaceTexture : IIfcSurfaceTexture
	{

		[CrossSchemaAttribute(typeof(IIfcSurfaceTexture), 1)]
		Ifc4.MeasureResource.IfcBoolean IIfcSurfaceTexture.RepeatS 
		{ 
			get
			{
				//## Handle return of RepeatS for which no match was found
			    return new Ifc4.MeasureResource.IfcBoolean(RepeatS);
			    //##
			} 
			set
			{
				RepeatS = value;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcSurfaceTexture), 2)]
		Ifc4.MeasureResource.IfcBoolean IIfcSurfaceTexture.RepeatT 
		{ 
			get
			{
				//## Handle return of RepeatT for which no match was found
                return new Ifc4.MeasureResource.IfcBoolean(RepeatT);
				//##
			} 
			set
			{
				RepeatT = value;
				
			}
		}

		private  Ifc4.MeasureResource.IfcIdentifier? _mode;


		[CrossSchemaAttribute(typeof(IIfcSurfaceTexture), 3)]
		Ifc4.MeasureResource.IfcIdentifier? IIfcSurfaceTexture.Mode 
		{ 
			get
			{
				return _mode;
			} 
			set
			{
				SetValue(v => _mode = v, _mode, value, "Mode", -3);
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcSurfaceTexture), 4)]
		IIfcCartesianTransformationOperator2D IIfcSurfaceTexture.TextureTransform 
		{ 
			get
			{
				return TextureTransform;
			} 
			set
			{
				TextureTransform = value as GeometryResource.IfcCartesianTransformationOperator2D;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcSurfaceTexture), 5)]
		IItemSet<Xbim.Ifc4.MeasureResource.IfcIdentifier> IIfcSurfaceTexture.Parameter 
		{ 
			get
			{
				//## Handle return of Parameter for which no match was found
				return null;
				//##
			} 
		}
		IEnumerable<IIfcTextureCoordinate> IIfcSurfaceTexture.IsMappedBy 
		{ 
			get
			{
				return Model.Instances.Where<IIfcTextureCoordinate>(e => e.Maps != null &&  e.Maps.Contains(this), "Maps", this);
			} 
		}
		IEnumerable<IIfcSurfaceStyleWithTextures> IIfcSurfaceTexture.UsedInStyles 
		{ 
			get
			{
				return Model.Instances.Where<IIfcSurfaceStyleWithTextures>(e => e.Textures != null &&  e.Textures.Contains(this), "Textures", this);
			} 
		}
	//## Custom code
	//##
	}
}