All Cadcorp SIS API Methods

RedrawExtent Method

Description

Redraws a window, or windows.

Syntax

Visual Basic
Public Function RedrawExtent( _
   ByVal redrawcode As Integer, _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal z1 As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal z2 As Double _
) As Integer

Parameters

redrawcode
SIS_CURRENTWINDOW    Redraw the current window only.
SIS_CURRENTSWD    Redraw all windows which contain the current SWD.
SIS_ALLWINDOWS    Redraw all windows.
SIS_QUICK_REDRAW    Optional flag which makes Map windows blit their cached bitmap, instead of doing a full "regen". For instance, use
(SIS_CURRENTSWD+SIS_QUICK_REDRAW) after moving Items in the Named List "*Sprites".
 
x1
The first x coordinate of the cuboid extent to be redrawn.
 
y1
The first y coordinate of the cuboid extent to be redrawn.
 
z1
The first z coordinate of the cuboid extent to be redrawn.
 
x2
The second x coordinate of the cuboid extent to be redrawn.
 
y2
The second y coordinate of the cuboid extent to be redrawn.
 
z2
The second z coordinate of the cuboid extent to be redrawn.

Remarks

Available: D OD OM

Group:

Example

Example 1:

sis.RedrawExtent (SIS_CURRENTWINDOW, 0, 0, 0, 1000, 1000, 1000)

Example 1 redraws the current window only to the specified extents.


Example 2:

sis.Redraw (SIS_CURRENTWINDOW, 0, 0, 0, 1000, 1000, 1000 Or SIS_QUICK_REDRAW)

Replace "Or" with the bitwise-or operator in your language of choice.

Example 2 causes the cached bitmap to be blitted, then the Sprites Overlays drawn, using the SIS_QUICK_REDRAW flag.