Figure Class |
Namespace: DigitalRune.Graphics
The Figure type exposes the following members.
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Invalidate |
Invalidates cached render data. (Must be called when properties of a figure are changed.)
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
BoundingShape |
Gets the collision shape for bounding volume tests and culling.
| |
HitShape |
Gets the collision shape for hit tests.
| |
MaxNumberOfIterations |
Gets or sets the maximum number of iterations which are taken when flattening smooth curves.
| |
Tolerance |
Gets or sets the tolerance which is allowed when flattening smooth curves.
|
A figure is a drawing composed of lines and shapes.
A figure may contain smooth curves such as Bézier splines. These smooth curves are "flattened" for rendering, which means they are approximated using line segments. The properties MaxNumberOfIterations and Tolerance determine how detailed the approximations will be. See also Flatten(ICollectionTPoint, Int32, TParam).
The figure has BoundingShape which can be used for culling and a HitShape which can be used for more accurate hit testing ("picking").