Class CadLayout
Inheritance
System.Object
CadLayout
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Assembly: Experior.Core.dll
Syntax
public class CadLayout : ViewModelBase, ICadLayout, INotifyPropertyChanged, IDisposable
Constructors
CadLayout()
Declaration
CadLayout(CadLayoutInfo)
Declaration
public CadLayout(CadLayoutInfo info)
Parameters
Properties
CadProperties
Declaration
[Browsable(false)]
public object CadProperties { get; }
Property Value
Type |
Description |
System.Object |
|
CadVisibility
Declaration
[TypeConverter(typeof(bool))]
[PropertyOrder(8)]
public CadLayoutVisibility CadVisibility { get; set; }
Property Value
Center
Declaration
[PropertyOrder(5)]
public bool Center { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Color
Declaration
[PropertyAttributesProvider("DynamicPropertyShowColor")]
[PropertyOrder(7)]
public Color Color { get; set; }
Property Value
Type |
Description |
System.Windows.Media.Color |
|
Disposed
Declaration
[Browsable(false)]
public bool Disposed { get; }
Property Value
Type |
Description |
System.Boolean |
|
Empty
Declaration
[Browsable(false)]
public bool Empty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Flatten
Declaration
[PropertyOrder(5)]
public bool Flatten { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Layers
Declaration
public List<ICadLayer> Layers { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<ICadLayer> |
|
Length
Declaration
[Browsable(false)]
public float Length { get; }
Property Value
Type |
Description |
System.Single |
|
MaxX
Declaration
[Browsable(false)]
public float MaxX { get; }
Property Value
Type |
Description |
System.Single |
|
MaxZ
Declaration
[Browsable(false)]
public float MaxZ { get; }
Property Value
Type |
Description |
System.Single |
|
MinX
Declaration
[Browsable(false)]
public float MinX { get; }
Property Value
Type |
Description |
System.Single |
|
MinZ
Declaration
[Browsable(false)]
public float MinZ { get; }
Property Value
Type |
Description |
System.Single |
|
Offset
Declaration
[TypeConverter(typeof(Vector3MeterToMillimeter))]
[PropertyOrder(2)]
public Vector3 Offset { get; set; }
Property Value
Type |
Description |
System.Numerics.Vector3 |
|
Scale
Declaration
[PropertyOrder(3)]
public float Scale { get; set; }
Property Value
Type |
Description |
System.Single |
|
UseCustomColor
Declaration
[PropertyOrder(6)]
public bool UseCustomColor { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
VerticeCount
Declaration
[Browsable(false)]
public int VerticeCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
VisibleLayers
Declaration
[Browsable(false)]
public IEnumerable VisibleLayers { get; set; }
Property Value
Type |
Description |
System.Collections.IEnumerable |
|
Width
Declaration
[Browsable(false)]
public float Width { get; }
Property Value
Type |
Description |
System.Single |
|
Yaw
Declaration
[PropertyOrder(4)]
[TypeConverter(typeof(Degrees))]
public float Yaw { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
CenterOffset()
Calculate and set Offset so it will center the CAD layout
Declaration
public void CenterOffset()
Clear()
Declaration
Dispose()
Declaration
InvokePropertyChanged(String)
Declaration
[NotifyPropertyChangedInvocator]
protected virtual void InvokePropertyChanged(string propertyName = null)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Read(String)
Declaration
public void Read(string file)
Parameters
Type |
Name |
Description |
System.String |
file |
|
SyncState()
Declaration
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Visible(Boolean)
Declaration
public void Visible(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable