TsgDXFEntity
Unit:TsgDXFEntity
Description
The TsgDXFEntity
class is the base class for all entities classes. It contains the base properties and methods, overridden in their descendants. Through this class methods and properties you can do all common operations. But entity specific operations, should be handled though the methods and properties of class of that entity.
Syntax
TsgDXFEntity = class(TsgInterfacedObject, IsgListOfEntities)
Properties
Properties | Description |
---|---|
Box | The property determines the 3d box embraced the entity. |
Color | The property gets or sets entity color. |
ColorCAD | The property gets or sets a color for drawing entities. |
Complex | The property determines whether a entity is populated with child entities. |
Converter | The property returns the TsgDXFConverter class object. |
Count | The property indicates the total number of child entities. |
Entities | The property lists all child entities. |
EntType | The property indicates type of an entity. |
Handle | The property is used for finding entity links. |
Layer | The property points to layer, containing given primitive if this layer is given. |
LineType | The property sets and gets line type for an entity. |
LineTypeScale | The property sets and gets the Linetype scale. |
LineWeight | The property sets or gets line weight in millimeters. |
PaperSpace | The property indicates Model Space and Paper Space entity segregation. |
SrcEnd | The property indicates end position of the entity description in the source CAD file. |
SrcStart | The property indicates start position of the entity description in the source CAD file. |
Visibility | The property sets and gets entities visibility. |
Visible | The property determines whether the component appears onscreen. |
Methods
Methods | Description |
---|---|
AddEntity | The method adds a new child entity. |
AssignEntity | The method copies properties of source entity to current entity. |
Clear | The method deletes all child entities. |
Clone | The method copies properties of source entity to current entity (include Handle ). |
Create | The method creates and initializes a new TsgDXFEntity object. |
DeleteEntity | The method deletes entity specified by its index. |
Draw | The method generates the OnDraw event. |
EntName | The method returns an entity name. |
FindEntByName | The method finds the entity by a given name. |
FindEntByHandle | The method finds the entity by a given handle. |
GetBoxPoints | The method is used in drawing cycle for fast checking whether the entity must be drawn. |
GetExtData | The method gets extended data associated with the entity. |
GetThickness | The method returns entity's thickness. |
IndexOfEntity | The method returns index of entity. |
IndexOfHandle | The method returns index of handle. |
IndexOfName | The method returns index of entity by its name. |
InsertEntity | The method adds entity to the list of child entities at the position specified by AIndex . |
RemoveEntity | The method deletes a specified entity. |
SetColor | The method sets color of the entity. |
SetExtData | The method associates a specified extended data with the entity. |
SetLType | The method sets line type of the entity. |
SetLWeight | The method sets line weight width of the entity. |
Events
Events | Description |
---|---|
OnDraw | The event occurs when the Draw method is called. |