Click or drag to resize
DigitalRuneFigure Class
Represents a drawing composed of lines and 2D shapes.
Inheritance Hierarchy
SystemObject
  DigitalRune.GraphicsFigure
    More...

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public abstract class Figure

The Figure type exposes the following members.

Constructors
  NameDescription
Protected methodFigure
Initializes a new instance of the Figure class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvalidate
Invalidates cached render data. (Must be called when properties of a figure are changed.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyBoundingShape
Gets the collision shape for bounding volume tests and culling.
Public propertyHitShape
Gets the collision shape for hit tests.
Public propertyStatic memberMaxNumberOfIterations
Gets or sets the maximum number of iterations which are taken when flattening smooth curves.
Public propertyStatic memberTolerance
Gets or sets the tolerance which is allowed when flattening smooth curves.
Top
Remarks

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").

See Also
Inheritance Hierarchy