CADability dotNET
The IPaintTo3D type exposes the following members.
Methods
Name | Description | |
---|---|---|
Arc |
Draws an (elliptical) arc according to the provided parameters. May only be used when the implementation supports arcs (see CanDoArcs.
| |
AvoidColor |
Never use this color for drawing (because it is the background color)
| |
Blending |
OpenGL specific, set blending mode
| |
Clear |
Clear the whole area with this color. Used before painting objects.
| |
CloseFigure |
Closes a subfigure while defining a path. Subfigures are the enclosing path and the holes to be spared.
Only valid after OpenPath()()()() and before ClosePath(Color) have been called.
| |
CloseList |
Close the display list OpenList()()()().
| |
ClosePath |
Closes the path which was started with OpenPath()()()() and fills the interior with the provided color.
| |
Disconnect |
Will be called when the control is about to disappear.
| |
DisplayBitmap |
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.
| |
DisplayIcon |
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.
| |
Dispose |
Will be called when the assoziated control is closed.
| |
FilledPolyline |
Deprecated, will not be used from within CADability.
| |
FillRect2D |
Fill the axis oriented rectangle with the current color. Usually used for background painting.
| |
FinishPaint |
Call when a frame is finished and the display buffers should now be switched (if using two display buffers)
| |
FreeUnusedLists |
Only used internally, no need to call.
| |
Init |
Will be called before any other paint methods are called.
| |
Line2D(PointF, PointF) |
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.
| |
List |
Paint the provided display list.
| |
MakeCurrent |
Will be called before any other paint methods are called. May be called multiple times after Init(Control) has been called
| |
MakeList |
Makes a new display list as an assembly of the provided lists.
| |
Nurbs |
Deprecated, not used anymore and not implemented by the CADability display drivers.
| |
OpenList |
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) | |
OpenPath |
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.
| |
PaintFaces |
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.
| |
Point2D |
Deprecated, currently not used and not implemented
| |
Points |
Draws simple pixel based points e.g. for background grid display.
| |
Polyline |
Draws a sequence of lines.
| |
PopModOp |
Undoes the previously called PushMultModOp(ModOp) | |
PopState |
Restores the previously saved state
| |
PrepareBitmap(Bitmap) |
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)
| |
PrepareIcon |
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)
| |
PrepareText |
Assure that the charactres in textString will be available when
Text(GeoVector, GeoVector, GeoPoint, String, String, FontStyle, Text..::..AlignMode, Text..::..LineAlignMode) is called.
| |
PushMultModOp |
Sets a matrix to multiply all objects beeing displayed with. This matrix will be applied additionally
to the current matrix
| |
PushState |
Saves the current state.
| |
RectangularBitmap |
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.
| |
Resize |
Called when the size of the [!:Windows.Forms.Control] associated with this interface changes.
| |
SelectedList |
Paint the provided display list using the display mode.
| |
SetClip |
Sets a clip rectangle for subsequent paint commands. If clipRectangle is empty,
no clipping will occur.
| |
SetColor |
Sets the color for the next paint methods
| |
SetLinePattern |
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.
| |
SetLineWidth |
Sets the line width for subsequent curve drawing
| |
SetProjection |
Sets the projection to use in subsequent calls to paint methods.
| |
Text |
Draw a text with the provided parameters and the current color.
| |
Triangle |
Draw a set of solid-filled triangles with the current color.
| |
UseZBuffer |
Usually set to true, switch off to paint coordinate axis etc.
|