Class EntityObject
Represents a generic entity.
Inheritance
System.Object
EntityObject
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: CADability.dll
Syntax
public abstract class EntityObject : DxfObject, IHasXData, ICloneable
Constructors
|
Improve this Doc
View Source
EntityObject(EntityType, String)
Declaration
protected EntityObject(EntityType type, string dxfCode)
Parameters
| Type |
Name |
Description |
| EntityType |
type |
|
| System.String |
dxfCode |
|
Properties
|
Improve this Doc
View Source
Color
Declaration
public AciColor Color { get; set; }
Property Value
|
Improve this Doc
View Source
IsVisible
Gets or set the entity visibility.
Declaration
public bool IsVisible { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Layer
Gets or sets the entity Layer.
Declaration
public Layer Layer { get; set; }
Property Value
|
Improve this Doc
View Source
Linetype
Declaration
public Linetype Linetype { get; set; }
Property Value
|
Improve this Doc
View Source
LinetypeScale
Gets or sets the entity line type scale.
Declaration
public double LinetypeScale { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Lineweight
Gets or sets the entity Lineweight, one unit is always 1/100 mm (default = ByLayer).
Declaration
public Lineweight Lineweight { get; set; }
Property Value
|
Improve this Doc
View Source
Normal
Declaration
public Vector3 Normal { get; set; }
Property Value
|
Improve this Doc
View Source
Owner
Gets the owner of the actual DXF object.
Declaration
public Block Owner { get; }
Property Value
|
Improve this Doc
View Source
Reactors
Gets the list of DXF objects that has been attached to this entity.
Declaration
public IReadOnlyList<DxfObject> Reactors { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyList<DxfObject> |
|
|
Improve this Doc
View Source
Transparency
Declaration
public Transparency Transparency { get; set; }
Property Value
|
Improve this Doc
View Source
Type
Declaration
public EntityType Type { get; }
Property Value
|
Improve this Doc
View Source
XData
Declaration
public XDataDictionary XData { get; }
Property Value
Methods
|
Improve this Doc
View Source
Clone()
Creates a new entity that is a copy of the current instance.
Declaration
public abstract object Clone()
Returns
| Type |
Description |
| System.Object |
A new entity that is a copy of this instance.
|
|
Improve this Doc
View Source
OnLayerChangedEvent(Layer, Layer)
Declaration
protected virtual Layer OnLayerChangedEvent(Layer oldLayer, Layer newLayer)
Parameters
| Type |
Name |
Description |
| Layer |
oldLayer |
|
| Layer |
newLayer |
|
Returns
|
Improve this Doc
View Source
OnLinetypeChangedEvent(Linetype, Linetype)
Declaration
protected virtual Linetype OnLinetypeChangedEvent(Linetype oldLinetype, Linetype newLinetype)
Parameters
Returns
|
Improve this Doc
View Source
OnXDataAddAppRegEvent(ApplicationRegistry)
Declaration
protected virtual void OnXDataAddAppRegEvent(ApplicationRegistry item)
Parameters
|
Improve this Doc
View Source
OnXDataRemoveAppRegEvent(ApplicationRegistry)
Declaration
protected virtual void OnXDataRemoveAppRegEvent(ApplicationRegistry item)
Parameters
|
Improve this Doc
View Source
ToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
The string representation.
|
Overrides
|
Improve this Doc
View Source
Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.
Declaration
public abstract void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
| Type |
Name |
Description |
| Matrix3 |
transformation |
Transformation matrix.
|
| Vector3 |
translation |
Translation vector.
|
|
Improve this Doc
View Source
Moves, scales, and/or rotates the current entity given a 4x4 transformation matrix.
Declaration
public void TransformBy(Matrix4 transformation)
Parameters
| Type |
Name |
Description |
| Matrix4 |
transformation |
Transformation matrix.
|
Events
|
Improve this Doc
View Source
LayerChanged
Declaration
public event EntityObject.LayerChangedEventHandler LayerChanged
Event Type
|
Improve this Doc
View Source
LinetypeChanged
Declaration
public event EntityObject.LinetypeChangedEventHandler LinetypeChanged
Event Type
|
Improve this Doc
View Source
XDataAddAppReg
Declaration
public event XDataAddAppRegEventHandler XDataAddAppReg
Event Type
|
Improve this Doc
View Source
XDataRemoveAppReg
Declaration
public event XDataRemoveAppRegEventHandler XDataRemoveAppReg
Event Type
Implements
System.ICloneable