Namespace CADability.Attribute
Classes
- AttributeException
ApplicationException class raised by various operations with attributes.
- AttributeListContainer
static functions to manage IAttributeListContainer and IAttributeList objects
- ChangeEventArgs
Arguments of the AttributeChangeDelegate events, with which an attribute (currently only ColorDef) announces the change of one of its properties: PropertyName says which property changes and CurrentValue holds its value at the time the event is raised.
- CheckedAttributes
Shows a list of Attributes as checkboxes.
- CheckedLayerList
A collapsable treeview entry for the ControlCenter that presents to the user all layers of the provided list with a checkbox next to each layer. The titel of the entry is specified by the provided resourceId.
- ColorDef
Summary description for ColorDef.
- ColorList
A table of named colours (ColorDef objects). The table is serializable and is usually kept in a Project or in the global Settings. It can be edited interactively in the property grid, where it also handles the context menu commands for its entries.
- DimensionStyle
A named attribute which defines the appearance of Dimension objects: the layout of the dimension line, extension lines and symbols (arrows), the font, size and placement of the dimension text, the number format, units and tolerances, and which dimension types (points, coordinates, angle, radius, diameter, location) it applies to. Dimension styles are kept in the DimensionStyleList of the project and are presented in the property grid, where they can be edited.
- DimensionStyleList
The DimensionStyleList contains the list of available dimension styles (DimensionStyle). It is owned by the project or the global settings. It implements IShowProperty to make it available in the tree voew of the control center.
- Filter
This class filters IGeoObjects according to their attributes or other properties. A Project contains a FilterList which contains Filters. The task of a filter is to decide, whether a IGeoObject is accepted by this filter or not. The FilterList is used by the SelectObjectsAction to decide, whether an object may be selected or not. Filters may also be used for other purposes. In this standard implementation the attributes of a IGeoObject and the type of the object are used to accept or reject an object. You may derive a class from this Filter class and handle the static Constructor delegate by constructing your own filter. In your derived class you can use any criteria of a IGeoObject for filtering, e.g. the contents of UserData.
- FilterList
A FilterList is a list of Filters. The Project owns a FilterList which is used by the SelectObjectsAction to decide which IGeoObjects may be selected or must be rejected. You may add a handler to the PreFilterEvent event to do your own filtering or use the default filtering machanism (or both). The FilterList of the project is displayed in the ControlCenter and may be interactively manipulated.
- HatchStyle
Abstract base class for all hatchstyles. A hatchstyle is used to define the interior of a Hatch object.
- HatchStyleContour
An implementation of a HatchStyle, that defines a style consisting of contours inside the shape.
- HatchStyleLines
An implementation of a HatchStyle, that defines a style consisting of parallel lines.
- HatchStyleList
List of HatchStyle derived objects. Typically a Project or the Settings maintain such a list. The list is serializable and can be shown and modified in the ControlCenter. There can not be two hatch-styles with the same name.
- HatchStyleSolid
A HatchStyle which fills the shape with a solid color. May be used as a base class for different kinds of solid fillings.
- Layer
A Layer is an attribute to IGeoObject objects. With several layers you can group the GeoObjects in a Model. In a ModelView you can select which layers are visible. In a Filter you can select which layers are be pickable The property DisplayOrder affects the order of display or printing if the according feature is enabled in a ModelView or Layout. Layer implements the IShowProperty interface to present ist properties.
- LayerComparer
Equality comparer that treats two Layer objects as equal when they have the same Name, regardless of whether they are the same instance. Useful as the comparer of a dictionary or hash set keyed by layer when the layers may come from different lists (e.g. a project and its clone). A shared instance is available as LayerComparer.
- LayerList
A list of Layers, always sorted alphabetically by name. The names must be unique: adding or renaming a layer so that a name would occur twice throws a NameAlreadyExistsException. The list is owned by a project or by the global settings, keeps a current layer and is displayed in the property page with its layers as sub entries.
- LayerSelectionProperty
Property entry for the control center which lets the user choose a Layer from a LayerList in a drop-down list. When constructed for an object implementing ILayer, the selection is assigned to that object's Layer and the entry follows changes of the object's layer; in any case the selection is reported through LayerChangedEvent. GeoObjects show it among their attribute properties.
- LinePattern
A named attribute which defines a dash pattern for the display of curves: an array of alternating stroke and gap lengths (Pattern) and a LinePattern.Scaling which says whether these lengths are pixels, world units or layout units (mm on paper). An empty pattern means a solid line. Line patterns are kept in the LinePatternList of the project, are referenced by objects implementing ILinePattern and can be edited in the property grid.
- LinePatternList
The list of LinePattern attributes (dash patterns) available in a Project or in the global Settings. The entries are identified by their unique names, one of them is the current pattern that newly constructed objects get, and the list is shown as an editable group in the control center. A new project gets a clone of the global default list.
- LineWidth
Describes a line width. The "onedimensional" GeoObjects (e.g. Line, Ellipse, BSpline) have a line with as an attribute. The main propertie of the line width are the width and the scaling system (LineWidth.Scaling), which defines how to interpret the width.
- LineWidthList
The list of the LineWidth attributes available in a Project or in the global Settings. Line widths are addressed by their unique name; the list keeps track of the current (default) line width, can be edited interactively in the property grid and raises the DidModifyEvent when it changes.
- NamedAttributeComparer
Comparer to sort lists of INamedAttributes (e.g. LayerList).
- Style
A Style is a collection of several attributes like Layer, LineWidth that can be collectively set to an GeoObject.
- StyleList
List of Style objects. The Project and the Settings each own one (StyleList, StyleList); the list of the project is shown in the control center, where styles can be added, renamed and marked as the default for a kind of object. The names of the styles are unique within the list and the entries are ordered alphabetically.
- StyleSelectionProperty
Property entry that lets the user choose a Style from a StyleList in a drop-down list. It is part of the attribute properties of every IGeoObject in the control center and of the properties of a multiple selection. The name of the style is shown as selected only while the attributes of the object still agree with the style (Check(IGeoObject)); when one of them was changed individually, the name is shown as not selected.
Interfaces
- IAttributeList
Interface implemented by lists of attributes, e.g. LayerList.
- IAttributeListContainer
Interface implemented by Project and Settings. Helps to get all kind of attribute lists, e.g. ColorList, LayerList
- IColorDef
Interface to handle the colors of IGeoObject objects
- IHatchStyle
Implemented by objects that carry a HatchStyle attribute, in CADability the Hatch object and the Style. The HatchStyleList, the Style and the Filter use this interface to read and replace the hatch style of an object without knowing its type.
- ILayer
Interface supported by all objects that have a Layer proerty
- ILinePattern
Implemented by GeoObjects that have a LinePattern attribute, e.g. Line, Ellipse, BSpline, Polyline and Path, and by Style. The LinePatternList of the project uses it to find and update the line patterns in use.
- ILineWidth
Implemented by GeoObjects that have a LineWidth attribute, e.g. Line, Ellipse, BSpline, Polyline and Path, and by Style. The LineWidthList of the project uses it to find and update the line widths in use.
- INameChange
Interface used by named objects, like attributes (e.g. FilterList)
- IStyle
Interface to be implemented by objects that have a (changable) Style property
Enums
- AttributeException.AttributeExceptionType
Type of exception
- ColorDef.ColorSource
Says where the colour of an object with this ColorDef comes from. Ordinary entries of a ColorList are fromName; the static CDfromParent and CDfromStyle are placeholders whose own Color value is not meaningful.
- ColorList.StaticFlags
Flags that say which of the special, non-RGB entries a colour selection may offer in addition to the named colours of the list (see Usage and ColorSelectionProperty). Not every object may use every kind of colour: only objects inside a Block can take the colour of their parent, for example.
- DimensionStyle.EAngleFlag
Settings for angle dimensioning as a combination of bits; see AngleFlags.
DimAngleFourPoint: the angle is defined by two lines of two points each;DimAngleBisection: the half angle is dimensioned. Both are stored and shown in the property page but not evaluated by the current Dimension layout.
- DimensionStyle.EAngleText
The way an angle value is written in the text of an angle dimension; see AngleText.
DegreeDecimal: decimal degrees,DegreeMinuteSecond: degrees, minutes and seconds,Grade: gradians (400 per full circle),Radian: radians,ArcLength: the length of the arc instead of the angle.
- DimensionStyle.EFontFlag
Style of the text font as a combination of bits; see FontFlags and the boolean properties DimFontBold, DimFontItalic, DimFontUnderline and DimFontStrikeOut. The font style is not applied by the current Dimension layout, which only uses TextFont, and it is not written to files.
- DimensionStyle.EGeoFlag
Settings for the general appearance of the dimension line and the extension lines as a combination of bits; see GeoFlags. Each bit is also available as a boolean property of the style: DimNoExtLine1, DimNoExtLine2, DimTextOutsideForceDimensionLine, DimNoOutsideSymbols, DimBreakDimLine, DimFixedDimLine and DimNoDimLine.
- DimensionStyle.EPointFlag
Settings for the dimensioning of points as a combination of bits; see PointFlags.
DimMultiLinegives each measured point its own dimension line (see DimMultiLine),DimNoExtLinesuppresses the extension lines (see DimNoExtLine).DimMultiPointis kept from an older system and has no effect.
- DimensionStyle.ERadiusFlag
Settings for radius and diameter dimensioning as a combination of bits; see RadiusFlags.
DimRadiusBendmakes the dimension line bend at the reference point and continue horizontally for the text (see DimRadiusBend).
- DimensionStyle.ESymbol
The symbol drawn at the ends of the dimension line; see Symbol.
DimOpenArrow: two lines forming an arrow head,DimClosedArrow: outlined arrow head,DimFilledArrow: solid arrow head (a Hatch with HatchStyleSolid),DimCircleandDimFilledCircle: a circle with the diameter SymbolSize,DimSlash: a short line crossing the dimension line at 45 degrees,DimSymbol: a user defined symbol, which is not implemented and draws nothing.
- DimensionStyle.ESymbolFlag
Settings for the symbols (arrows) as a combination of bits; see SymbolFlags.
DimSymbolSizePapermeans that SymbolSize refers to paper coordinates; it is stored but not evaluated by the current layout.
- DimensionStyle.ESymbolPlacement
Where the symbols are placed; see SymbolPlacement.
DimInside: between the extension lines pointing outward,DimOutside: outside the extension lines pointing inward,DimAutomatic: inside when the distance between the extension lines is more than twice the symbol width, outside otherwise.
- DimensionStyle.ETextFlag
Settings for the dimension text as a combination of bits; see TextFlags. Each bit is also available as a boolean property of the style (DimTxtOutside, DimTxtRotate90, ...). Some of the bits date from an older system and are stored but not evaluated by the current Dimension layout; see the individual members.
- DimensionStyle.ETypeFlag
The dimension types a style may be used for, as a combination of bits; see Types. The bits are in the order of Dimension.EDimType, so the bit for a type is
1 << (int)dimType:DimPointsdistance between points,DimCoordcoordinate dimensioning,DimAngleangles,DimRadiusradii,DimDiameterdiameters,DimLocationlabelling a location,DimAllTypesall of them.
- HatchStyleContour.EHoleMode
How to proceed with holes in the area to be filled.
- HatchStyleContour.ESpiralMode
Parallel or continous filling modes
- LayerUsage
Selects which layers an operation takes into account: all layers of a LayerList, only the layers that are visible, or only the layers whose objects may be picked. The visibility of layers is kept per view (see CheckedLayerList); CADability itself does not use this enumeration any more, it is kept for applications built on it.
- LinePattern.Scaling
Scaling system of the line pattern.
- DevicePattern specifies the number of pixel, zoom independent
- WorldPattern specifies the pattern of the line in the world coordinate system
- LayoutPattern specifies the pattern of the line in the layout system (mm on the paper when printed)
- LineWidth.Scaling
Scaling system of the line width.
- DeviceWidth specifies the number of pixel, zoom independant
- WorldWidth specifies the width of the line in the world coordinate system
- LayoutWidth specifies the width of the line in the layout system (mm on the paper when printed)
- Style.EDefaultFor
Category of objects to provide different default styles
Delegates
- AttributeChangeDelegate
Handler for the change events of attributes, see ColorWillChangeEvent and ColorDidChangeEvent.
- AttributeChangedDelegate
Signature for notifications that a property of a named attribute (e.g. the RGB value of a ColorDef) was changed. Not used by any event of CADability at present; the lists report such changes with AttributeChanged(INamedAttribute, ReversibleChange) instead.
- CheckedLayerList.CheckStateChangedDelegate
Delegate definition for the CheckStateChangedEvent, which is called when the user changes the checkbox next to a layer
- Filter.ConstructionDelegate
Delegate definition for overridable constructor. Used only for custom filters.
- FilterList.PreFilterDelegate
Delegate definition for an FilterList event to allow pre-filtering of acceptance of IGeoObject objects.
- HatchStyleList.CreateHatchStyleListDelegate
Signature of the handler of the CreateHatchStyleListEvent: creates and returns a (possibly derived) HatchStyleList.
- LayerList.LayerAddedDelegate
Handler for LayerAddedEvent.
- LayerList.LayerRemovedDelegate
Handler for LayerRemovedEvent.
- StyleSelectionProperty.StyleChangedDelegate
Signature of the handler of the StyleChangedEvent.