Show / Hide Table of Contents

Class Section

Inheritance
System.Object
Section
Implements
ISection
IPersistablePropertyOwner
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Experior.Core
Assembly: Experior.Core.dll
Syntax
[TypeConverter(typeof(SectionConverter))]
public sealed class Section : ISection, IPersistablePropertyOwner, IDisposable

Constructors

Section(SectionInfo)

Declaration
public Section(SectionInfo info)
Parameters
Type Name Description
SectionInfo info

Section(String)

Declaration
public Section(string name)
Parameters
Type Name Description
System.String name

Section(String, Single, Single)

Declaration
public Section(string name, float length, float width)
Parameters
Type Name Description
System.String name
System.Single length
System.Single width

Properties

ActiveSection

Declaration
public static ISection ActiveSection { get; set; }
Property Value
Type Description
ISection

Assemblies

Declaration
[Browsable(false)]
public IReadOnlyCollection<IAssembly> Assemblies { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyCollection<IAssembly>

AssemblyCount

Declaration
[Display(Order = 3, GroupName = "Assemblies")]
[PropertyOrder(1)]
public int AssemblyCount { get; }
Property Value
Type Description
System.Int32

AutoCadFileName

Declaration
[Display(Order = 5, GroupName = "AutoCAD")]
[PropertyOrder(1)]
[PropertyAttributesProvider("DynamicPropertyFloorAutocad")]
public string AutoCadFileName { get; set; }
Property Value
Type Description
System.String

AutoFit

Declaration
[Display(Order = 1, GroupName = "Size")]
[PropertyOrder(3)]
[PropertyAttributesProvider("DynamicPropertyAutoFit")]
public bool AutoFit { get; set; }
Property Value
Type Description
System.Boolean

AutoSizeIgnoreYPostion

Declaration
[Display(Order = 1, GroupName = "Size")]
[PropertyOrder(4)]
[PropertyAttributesProvider("DynamicPropertyAutoSizeRestrictYPostion")]
public bool AutoSizeIgnoreYPostion { get; set; }
Property Value
Type Description
System.Boolean

BoundsVisible

Declaration
[Display(Order = 4, GroupName = "Grid")]
[PropertyOrder(2)]
[PropertyAttributesProvider("DynamicPropertyFloorBoundsVisible")]
public bool BoundsVisible { get; set; }
Property Value
Type Description
System.Boolean

Color

Declaration
[Display(Order = 2, GroupName = "Floor")]
[PropertyOrder(51)]
[PropertyAttributesProvider("DynamicPropertyFloorColor")]
public Color Color { get; set; }
Property Value
Type Description
System.Windows.Media.Color

Disposed

Declaration
[Display(Order = 5, GroupName = "AutoCAD")]
[PropertyOrder(10)]
[PropertyAttributesProvider("DynamicPropertyAutoCadDisposed")]
public bool Disposed { get; set; }
Property Value
Type Description
System.Boolean

Enabled

Declaration
[Display(Order = 3, GroupName = "Assemblies")]
[PropertyOrder(21)]
public bool Enabled { get; set; }
Property Value
Type Description
System.Boolean

FloorImage

Declaration
[Display(Order = 3, GroupName = "Floor")]
[PropertyOrder(54)]
[PropertyAttributesProvider("DynamicPropertyFloorImage")]
public BitmapSource FloorImage { set; }
Property Value
Type Description
System.Windows.Media.Imaging.BitmapSource

FloorImageFile

Declaration
[Display(Order = 2, GroupName = "Floor")]
[PropertyOrder(53)]
[PropertyAttributesProvider("DynamicPropertyFloorImageFile")]
public string FloorImageFile { get; set; }
Property Value
Type Description
System.String

FloorTextureFile

Declaration
[Display(Order = 2, GroupName = "Floor")]
[PropertyOrder(52)]
[PropertyAttributesProvider("DynamicPropertyFloorTextureFile")]
[TypeConverter(typeof(SectionFloorTextureProvider))]
public string FloorTextureFile { get; set; }
Property Value
Type Description
System.String

FloorType

Declaration
[Display(Order = 2, GroupName = "Floor")]
[PropertyOrder(50)]
public Section.SectionFloorType FloorType { get; set; }
Property Value
Type Description
Section.SectionFloorType

GridEnabled

Declaration
[Display(Order = 4, GroupName = "Grid")]
[PropertyOrder(1)]
[PropertyAttributesProvider("DynamicPropertyFloorGrid")]
public bool GridEnabled { get; set; }
Property Value
Type Description
System.Boolean

Items

Declaration
public static ISectionCollection Items { get; }
Property Value
Type Description
ISectionCollection

Layout

Declaration
[Display(Order = 5, GroupName = "AutoCAD")]
[PropertyOrder(3)]
[PropertyAttributesProvider("DynamicPropertyAutoCadProperties")]
[TypeConverter(typeof(ObjectConverter))]
public CadLayout Layout { get; set; }
Property Value
Type Description
CadLayout

Length

Declaration
[Display(Order = 1, GroupName = "Size")]
[PropertyOrder(2)]
[TypeConverter(typeof(FloatMeterToMillimeter))]
public float Length { get; set; }
Property Value
Type Description
System.Single

Locked

Declaration
[Display(Order = 3, GroupName = "Assemblies")]
[PropertyOrder(20)]
public bool Locked { get; set; }
Property Value
Type Description
System.Boolean

MarkAssembliesOnSelect

Declaration
[Display(Order = 3, GroupName = "Assemblies")]
[PropertyOrder(30)]
public bool MarkAssembliesOnSelect { get; set; }
Property Value
Type Description
System.Boolean

Max

Declaration
[Browsable(false)]
public Vector3 Max { get; }
Property Value
Type Description
System.Numerics.Vector3

Min

Declaration
[Browsable(false)]
public Vector3 Min { get; }
Property Value
Type Description
System.Numerics.Vector3

MoveAssemblies

Declaration
[Display(Order = 2, GroupName = "Position")]
[PropertyOrder(2)]
[PropertyAttributesProvider("DynamicPropertyMoveAssemblies")]
public bool MoveAssemblies { get; set; }
Property Value
Type Description
System.Boolean

Name

Declaration
[Display(Order = 0, GroupName = "Section")]
[PropertyOrder(0)]
public string Name { get; set; }
Property Value
Type Description
System.String

Position

Declaration
[Display(Order = 2, GroupName = "Properties")]
[PropertyOrder(0)]
[TypeConverter(typeof(Vector3MeterToMillimeter))]
public Vector3 Position { get; set; }
Property Value
Type Description
System.Numerics.Vector3

VerticeCount

Declaration
[Display(Order = 5, GroupName = "AutoCAD")]
[PropertyOrder(2)]
[PropertyAttributesProvider("DynamicPropertyAutoCadVerticeCount")]
public int VerticeCount { get; }
Property Value
Type Description
System.Int32

Visible

Declaration
[Display(Order = 0, GroupName = "Section")]
[PropertyOrder(10)]
[AlwaysEditable]
public bool Visible { get; set; }
Property Value
Type Description
System.Boolean

VisibleFloor

Declaration
[Browsable(false)]
[Display(Order = 2, GroupName = "Floor")]
[PropertyOrder(40)]
[PropertyAttributesProvider("DynamicPropertyFloorVisible")]
public bool VisibleFloor { get; set; }
Property Value
Type Description
System.Boolean

Width

Declaration
[Display(Order = 1, GroupName = "Size")]
[PropertyOrder(1)]
[TypeConverter(typeof(FloatMeterToMillimeter))]
public float Width { get; set; }
Property Value
Type Description
System.Single

Yaw

Declaration
[Display(Order = 2, GroupName = "Position")]
[PropertyOrder(1)]
[TypeConverter(typeof(RadiansToDegreesPI))]
public float Yaw { get; set; }
Property Value
Type Description
System.Single

Methods

Add(IAssembly)

Declaration
public void Add(IAssembly assembly)
Parameters
Type Name Description
IAssembly assembly

Add(IReadOnlyCollection<IAssembly>)

Declaration
public void Add(IReadOnlyCollection<IAssembly> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IReadOnlyCollection<IAssembly> assemblies

Clear()

Declaration
public void Clear()

Clear(ClearFilter)

Declaration
public void Clear(ClearFilter filter)
Parameters
Type Name Description
ClearFilter filter

ClearFloorAutocad()

Declaration
public void ClearFloorAutocad()

Create()

Declaration
public static Section Create()
Returns
Type Description
Section

Create(SectionInfo, Boolean)

Declaration
public static Section Create(SectionInfo info, bool setAsSelectedSection = false)
Parameters
Type Name Description
SectionInfo info
System.Boolean setAsSelectedSection
Returns
Type Description
Section

Create(String)

Declaration
public static Section Create(string prefix)
Parameters
Type Name Description
System.String prefix
Returns
Type Description
Section

Create(String, Boolean)

Declaration
public static Section Create(string prefix, bool setAsSelectedSection)
Parameters
Type Name Description
System.String prefix
System.Boolean setAsSelectedSection
Returns
Type Description
Section

Dispose()

Declaration
public void Dispose()

Exist(String)

Declaration
public static bool Exist(string sectionName)
Parameters
Type Name Description
System.String sectionName
Returns
Type Description
System.Boolean

Fit()

Declaration
public void Fit()

Fit(Boolean)

Declaration
public void Fit(bool constrainToSquare)
Parameters
Type Name Description
System.Boolean constrainToSquare

Get(String)

Declaration
public static Section Get(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
Section

GetValidName(String)

Declaration
public static string GetValidName(string suggestion)
Parameters
Type Name Description
System.String suggestion
Returns
Type Description
System.String

ImageToByteArray(Image)

Declaration
public byte[] ImageToByteArray(Image imageIn)
Parameters
Type Name Description
System.Drawing.Image imageIn
Returns
Type Description
System.Byte[]

IsNameUsed(String)

Declaration
public static bool IsNameUsed(string suggestion)
Parameters
Type Name Description
System.String suggestion
Returns
Type Description
System.Boolean

IsValidNameSuggestion(String)

Declaration
public static bool IsValidNameSuggestion(string suggestion)
Parameters
Type Name Description
System.String suggestion
Returns
Type Description
System.Boolean

Remove(IAssembly)

Declaration
public void Remove(IAssembly assembly)
Parameters
Type Name Description
IAssembly assembly

Remove(IReadOnlyCollection<IAssembly>)

Declaration
public void Remove(IReadOnlyCollection<IAssembly> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IReadOnlyCollection<IAssembly> assemblies

SetSize(Single, Single)

Declaration
public void SetSize(float length, float width)
Parameters
Type Name Description
System.Single length
System.Single width

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

TryPick(Vector3, Vector3, out Vector3)

Declaration
public bool TryPick(Vector3 rayStart, Vector3 rayDirection, out Vector3 hitPosition)
Parameters
Type Name Description
System.Numerics.Vector3 rayStart
System.Numerics.Vector3 rayDirection
System.Numerics.Vector3 hitPosition
Returns
Type Description
System.Boolean

Events

OnDisposed

Declaration
public event EventHandler OnDisposed
Event Type
Type Description
System.EventHandler

OnEnabledChanged

Declaration
public event EventHandler<Section.SectionEventArgs> OnEnabledChanged
Event Type
Type Description
System.EventHandler<Section.SectionEventArgs>

OnLockedChanged

Declaration
public event EventHandler<Section.SectionEventArgs> OnLockedChanged
Event Type
Type Description
System.EventHandler<Section.SectionEventArgs>

OnNameChanged

Declaration
public event EventHandler<NameChangedEventArgs> OnNameChanged
Event Type
Type Description
System.EventHandler<NameChangedEventArgs>

OnOffsetChanged

Declaration
public event Section.OffsetChangedEvent OnOffsetChanged
Event Type
Type Description
Section.OffsetChangedEvent

OnPropertyChanged

Declaration
public event PropertyChangedEventHandler OnPropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

OnVisibilityChanged

Declaration
public event EventHandler<Section.SectionEventArgs> OnVisibilityChanged
Event Type
Type Description
System.EventHandler<Section.SectionEventArgs>

OnYawChanged

Declaration
public event Section.YawChangedEvent OnYawChanged
Event Type
Type Description
Section.YawChangedEvent

Implements

ISection
IPersistablePropertyOwner
System.IDisposable
Back to top Generated by DocFX