-
class
OverlayViewer
: public Viewer
(Return to index)
-
specialized Viewer.
Type:
Base Classes:
Derived Classes
Include file:
OverlayUnidraw/ovviewer.h
Public:
- virtual void
Adjust (Perspective&)
- void
CenterToScreen (int sx, int sy)
pan xo that 'sx','sy' is at the center of the screen.
- void
Chain (boolean pan = true, boolean zoom = true)
chain the panning or zooming of this viewer to other chained viewers.
- boolean
Chained ()
true if panning or zooming chained.
- boolean
ChainedPan ()
- boolean
ChainedZoom ()
- void
Draw ()
double-buffered drawing of entire screen.
- void
DrawingToScreen (float xdraw, float ydraw, Coord& xscreen, Coord& yscreen)
utility method for converting drawing coordinates to screen coordinates.
- void
DrawingToScreen (float xdraw, float ydraw, float& xscreen, float& yscreen)
utility method for converting drawing coordinates to screen coordinates.
- void
ExecuteCmd (Command* cmd)
indirect command execution for distributed whiteboard mechanism.
bulk of mechanism implemented in ComEditor.
- virtual void
FinishBuffering (boolean)
finish up double buffering, and copy modified part of buffer to the screen.
- virtual OverlayView*
GetCurrent ()
- virtual GraphicView*
GetCurrentGraphicView ()
allow for other than the top-level graphic view
- virtual OverlayView*
GetOverlayView ()
- void
GraphicToScreen (Graphic* gr, float xgr, float ygr, float &xscreen, float& yscreen)
utility method for converting graphic relative coordinates to screen
coordinates. The graphic coordinates are relative to the origin of the
screen when the graphic was originally drawn , expect for rasters, stencils,
and text which use their own origin instead.
- void
GraphicToScreen (Graphic* gr, float xgr, float ygr, int &xscreen, int& yscreen)
utility method for converting graphic relative coordinates to screen
coordinates.
-
OverlayViewer ( Editor*, GraphicView*, UPage*, Grid* = nil, Coord = 0, Coord = 0, Orientation = Normal, Alignment = Center, Zooming = Continuous )
- void
Redraw (Coord, Coord, Coord, Coord)
double-buffered drawing of sub-screen.
- void
Resize ()
called after screen canvas is allocated. From here the ::Configure
method is called on any components, and the OverlayEditor::InitCommands
is called as well.
- void
ScreenToDrawing (Coord xscreen, Coord yscreen, float& xdraw, float& ydraw)
utility method for converting screen coordinates to drawing coordinates.
- void
ScreenToDrawing (float xscreen, float yscreen, float& xdraw, float& ydraw)
utility method for converting screen coordinates to drawing coordinates.
- void
ScreenToGraphic (Coord xscreen, Coord yscreen, Graphic* gr, float& xgr, float& ygr)
utility method for converting screen coordinates to graphic relative
coordinates.
- void
ScreenToGraphic (float xscreen, float yscreen, Graphic* gr, float& xgr, float& ygr)
utility method for converting screen coordinates to graphic relative
coordinates. The graphic coordinates are relative to the origin of the
screen when the graphic was originally drawn , expect for rasters, stencils,
and text which use their own origin instead.
- void
SetColorMap ()
handle these command line arguments: -color6, -color5, -gray7, -gray6, -gray5.
- virtual void
SetMagnification (float)
- virtual void
StartBuffering ()
start up double buffering. All subsequent draws go to an offscreen buffer.
- void
Unchain (boolean pan = true, boolean zoom = true)
unchain the panning or zooming of this viewer from the other chained viewers.
- void
Update ()
double-buffered damage repair.
- virtual void
UseTool (Tool*, Event&)
- boolean
scribble_pointer ()
return flag that indicates whether the mouse is in continuous mode,
for smooth drawing of polygons and other multi-point graphics.
- void
scribble_pointer (boolean flag)
set flag that indicates whether the mouse is in continuous mode,
for smooth drawing of polygons and other multi-point graphics.
- virtual
~OverlayViewer ()
Protected:
(more documentation)