The IPaintTo3D type exposes the following members.
Draws an (elliptical) arc according to the provided parameters. May only be used when the implementation supports arcs (see CanDoArcs.
Never use this color for drawing (because it is the background color)
OpenGL specific, set blending mode
Clear the whole area with this color. Used before painting objects.
Close the display list OpenList()()()().
Closes the path which was started with OpenPath()()()() and fills the interior with the provided color.
Will be called when the control is about to disappear.
Displays the provided bitmap at the provided location. The bitmap always faces the viewer. PrepareBitmap(Bitmap, Int32, Int32) has been called or must be called prior to this method.
Displays the provided icon at the provided position. PrepareIcon(Bitmap) has been called or must be called before this method is called. The icon aleasy faces the viewer, no perspective of the projection is applied.
Will be called when the assoziated control is closed.
Deprecated, will not be used from within CADability.
Fill the axis oriented rectangle with the current color. Usually used for background painting.
Call when a frame is finished and the display buffers should now be switched (if using two display buffers)
Only used internally, no need to call.
Will be called before any other paint methods are called.
Paint a 2D line in the pixel coordinates system of the display. Usually used for background painting. Currently not used.
|Line2D(Int32, Int32, Int32, Int32)|
Paint a 2D line in the pixel coordinates system of the display. Usually used for background painting.
Paint the provided display list.
Will be called before any other paint methods are called. May be called multiple times after Init(Control) has been called
Makes a new display list as an assembly of the provided lists.
Deprecated, not used anymore and not implemented by the CADability display drivers.
Opens a new display list. All subsequent calls to paint methods will be stred in the list. When CloseList()()()() will be called the object resembling the list will be returned. Only the following method calls are allowed while a displaylist is open: Polyline(array<GeoPoint>()), FilledPolyline(array<GeoPoint>()), Points(array<GeoPoint>(), Single), Triangle(array<GeoPoint>(), array<GeoVector>(), array<Int32>()), RectangularBitmap(Bitmap, GeoPoint, GeoVector, GeoVector), Text(GeoVector, GeoVector, GeoPoint, String, String, FontStyle, Text..::..AlignMode, Text..::..LineAlignMode), DisplayIcon(GeoPoint, Bitmap), DisplayBitmap(GeoPoint, Bitmap), List(IPaintTo3DList)
When the implementation supports Paths (see CanFillPaths), this call will start recording calls to Polyline(array<GeoPoint>()) and Arc(GeoPoint, GeoVector, GeoVector, Double, Double) until ClosePath(Color) is called.
Faces are painted with a small offset to the backgroung, wheras curves are painted with a small offset to the front. This ensures proper visibility of edges that lie on faces.
Deprecated, currently not used and not implemented
Draws simple pixel based points e.g. for background grid display.
Draws a sequence of lines.
Undoes the previously called PushMultModOp(ModOp)
Restores the previously saved state
Similar to PrepareBitmap(Bitmap, Int32, Int32) with origin set to (0,0)
|PrepareBitmap(Bitmap, Int32, Int32)|
Assure that the bitmap will be available when DisplayIcon(GeoPoint, Bitmap) will subsequently be called. (Some implementations cache the bitmap or transform it into an convenient format)
Assure that the icon will be available when DisplayIcon(GeoPoint, Bitmap) will subsequently be called. (Some implementations cache the icon or transform it into an convenient format)
Assure that the charactres in textString will be available when Text(GeoVector, GeoVector, GeoPoint, String, String, FontStyle, Text..::..AlignMode, Text..::..LineAlignMode) is called.
Sets a matrix to multiply all objects beeing displayed with. This matrix will be applied additionally to the current matrix
Saves the current state.
Draws a rectangular bitmap at the provided location with directionWidth specifying the direction of the lower edge of the bitmap and directionHeight specifying the direction of the left edge of the bitmap. PrepareBitmap(Bitmap, Int32, Int32) must be called before this method is called.
Called when the size of theassociated with this interface changes.
Paint the provided display list using the display mode.
Sets a clip rectangle for subsequent paint commands. If clipRectangle is empty, no clipping will occur.
Sets the color for the next paint methods
Sets the line pattern for subsequent curve drawing. A pattern consists of pairs of double values: stroke length followed by gap length. If the parameter is null or an empty array, solidlines or curves will be drawn.
Sets the line width for subsequent curve drawing
Sets the projection to use in subsequent calls to paint methods.
Draw a text with the provided parameters and the current color.
Draw a set of solid-filled triangles with the current color.
Usually set to true, switch off to paint coordinate axis etc.
Returns the capabilities of this implementation of the paint interface
Depricated, not implemented in any current paint interface
Depricated, not implemented in any current paint interface
Deprecated, currently not used
Internal use only.
Determins whether curves are included in painting
Determins whether edges of faces should also be painted
Determins whether surfaces (triangles) are included in painting
Returns a factor that translates a one pixel distance into world coordinates
Gets or sets the precision of the display. (used for tesselation or curve approximation)
Gets or sets the select color
Gets or sets the flag whether the next objects should be painted in the "select mode"
Will text objects be tesselated
Should the line width be applied to painting curves