Shape Components
 
CODPointComponent
Many of the primitive components in Objective Views are based on geometrical shapes that depend on a set of vertices. CODPointComponent contains all the logic for maintaining the points of components such as lines, polygons and curves.
If you needed to create a new component, such as a triangle, you would use CODPointComponent as your base. If you wanted to create a component that doesn’t use vertices, you would use CODComponent as a base. Note that the CODSymbolComponent class is derived directly from CODComponent.
CODCurveComponent
The curve component defines a series of control points for a bezier curve. Like a line, a curve can be assigned a color and style.
CODClosedCurveComponent
The closed curve component is derived from the curve component. Like a curve component, it defines a series of control points to form a bezier curve. Since the curve is always closed, it can be assigned a fill color and style as well as a line color and style.
CODEllipseComponent
The ellipse component defines a series of control points that form a bezier curve in the shape of an ellipse. The ellipse component remains an ellipse even when the user moves its points. Like a closed curve, the ellipse can be assigned a line color and style as well as a fill color and style.
CODEllipseComponent2
This class provides an alternative to the CODEllipseComponent. It uses the Windows GDI Ellipse() function to draw the ellipse instead of approximating the ellipse using bezier curves. The Windows Ellipse() function does not support rotation, so it is not possible to rotate CODEllipseComponent2 objects. The advantage to using this class is that in certain situations it will scale more accurately than CODEllipseComponent, because the CODEllipseComponent approximates the ellipse using bezier curves.
CODLineComponent
The line component defines a series of line segments. A line can have a color and style.
CODRectComponent
The rectangle component defines a series of line segments that form a rectangle. A rectangle remains a rectangle even when you manipulate its vertices. Like a polygon, a rectangle can be assigned a line color and style or a fill color and style.
CODPolygonComponent
The polygon component defines a series of line segments to form a polygon. You can assign a polygon line color and style, and fill color and style.