CADability dotNET

The IPaintTo3D type exposes the following members.

Methods

  NameDescription
Public methodArc
Draws an (elliptical) arc according to the provided parameters. May only be used when the implementation supports arcs (see CanDoArcs.
Public methodAvoidColor
Never use this color for drawing (because it is the background color)
Public methodBlending
OpenGL specific, set blending mode
Public methodClear
Clear the whole area with this color. Used before painting objects.
Public methodCloseFigure
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.
Public methodCloseList
Close the display list OpenList()()()().
Public methodClosePath
Closes the path which was started with OpenPath()()()() and fills the interior with the provided color.
Public methodDisconnect
Will be called when the control is about to disappear.
Public methodDisplayBitmap
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.
Public methodDisplayIcon
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.
Public methodDispose
Will be called when the assoziated control is closed.
Public methodFilledPolyline
Deprecated, will not be used from within CADability.
Public methodFillRect2D
Fill the axis oriented rectangle with the current color. Usually used for background painting.
Public methodFinishPaint
Call when a frame is finished and the display buffers should now be switched (if using two display buffers)
Public methodFreeUnusedLists
Only used internally, no need to call.
Public methodInit
Will be called before any other paint methods are called.
Public methodLine2D(PointF, PointF)
Paint a 2D line in the pixel coordinates system of the display. Usually used for background painting. Currently not used.
Public methodLine2D(Int32, Int32, Int32, Int32)
Paint a 2D line in the pixel coordinates system of the display. Usually used for background painting.
Public methodList
Paint the provided display list.
Public methodMakeCurrent
Will be called before any other paint methods are called. May be called multiple times after Init(Control) has been called
Public methodMakeList
Makes a new display list as an assembly of the provided lists.
Public methodNurbs
Deprecated, not used anymore and not implemented by the CADability display drivers.
Public methodOpenList
Public methodOpenPath
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.
Public methodPaintFaces
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.
Public methodPoint2D
Deprecated, currently not used and not implemented
Public methodPoints
Draws simple pixel based points e.g. for background grid display.
Public methodPolyline
Draws a sequence of lines.
Public methodPopModOp
Undoes the previously called PushMultModOp(ModOp)
Public methodPopState
Restores the previously saved state
Public methodPrepareBitmap(Bitmap)
Similar to PrepareBitmap(Bitmap, Int32, Int32) with origin set to (0,0)
Public methodPrepareBitmap(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)
Public methodPrepareIcon
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)
Public methodPrepareText
Assure that the charactres in textString will be available when Text(GeoVector, GeoVector, GeoPoint, String, String, FontStyle, Text..::..AlignMode, Text..::..LineAlignMode) is called.
Public methodPushMultModOp
Sets a matrix to multiply all objects beeing displayed with. This matrix will be applied additionally to the current matrix
Public methodPushState
Saves the current state.
Public methodRectangularBitmap
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.
Public methodResize
Called when the size of the [!:Windows.Forms.Control] associated with this interface changes.
Public methodSelectedList
Paint the provided display list using the display mode.
Public methodSetClip
Sets a clip rectangle for subsequent paint commands. If clipRectangle is empty, no clipping will occur.
Public methodSetColor
Sets the color for the next paint methods
Public methodSetLinePattern
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.
Public methodSetLineWidth
Sets the line width for subsequent curve drawing
Public methodSetProjection
Sets the projection to use in subsequent calls to paint methods.
Public methodText
Draw a text with the provided parameters and the current color.
Public methodTriangle
Draw a set of solid-filled triangles with the current color.
Public methodUseZBuffer
Usually set to true, switch off to paint coordinate axis etc.

Properties

  NameDescription
Public propertyCapabilities
Returns the capabilities of this implementation of the paint interface
Public propertyDelayAll
Depricated, not implemented in any current paint interface
Public propertyDelayText
Depricated, not implemented in any current paint interface
Public propertyDontRecalcTriangulation
Deprecated, currently not used
Public propertyFacesBehindEdgesOffset
Internal use only.
Public propertyPaintEdges
Determins whether curves are included in painting
Public propertyPaintSurfaceEdges
Determins whether edges of faces should also be painted
Public propertyPaintSurfaces
Determins whether surfaces (triangles) are included in painting
Public propertyPixelToWorld
Returns a factor that translates a one pixel distance into world coordinates
Public propertyPrecision
Gets or sets the precision of the display. (used for tesselation or curve approximation)
Public propertySelectColor
Gets or sets the select color
Public propertySelectMode
Gets or sets the flag whether the next objects should be painted in the "select mode"
Public propertyTriangulateText
Will text objects be tesselated
Public propertyUseLineWidth
Should the line width be applied to painting curves

See Also