AnyCAD Rapid SDK  2020
The Rapid CAD SDK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Viewer Class Reference
Inheritance diagram for Viewer:
OffscreenCanvas WindowCanvas

Public Member Functions

synchronized void delete ()
void swigReleaseOwnership ()
void swigTakeOwnership ()
EditMode GetEditMode ()
void SetEditMode (EditMode val)
long GetWidth ()
long GetHeight ()
float GetZoomFactor ()
void SetZoomFactor (float val)
boolean Initialize (int hWindow, long width, long height)
void Destroy ()
float GetTimeTicks ()
void OnTime (float timeTick)
int Redraw (float timeTick)
void NewFrame (float timeTick)
ViewContext GetContext ()
void ZoomToExtend ()
boolean CaptureScreenShot (String fileName)
void SetBackgroundColor (Vector4 clr)
void SetBackground (Background background)
Background GetBackground ()
void SetCoordinateGrid (CoordinateGridWidget grid)
CoordinateGridWidget GetCoordinateGrid ()
void ShowCoordinateWidget (boolean bShow)
void SetCoordinateWidgetPosition (short position)
Vector3 ScreenPointToWorldPoint (long x, long y, float z)
Vector3 WorldPointToSceenPoint (Vector3 pt)
void SetStandardView (EnumStandardView view)
void Resize (long width, long height)
void OnMouseDown (InputEvent evt)
void OnMouseUp (InputEvent evt)
void OnMouseMove (InputEvent evt)
void OnMouseWheel (InputEvent evt, int delta)
void OnKeyDown (InputEvent evt)
void OnKeyUp (InputEvent evt)

Static Public Member Functions

static void SetZoomFacotr (float zoomOut, float zoomIn)

Protected Member Functions

 Viewer (long cPtr, boolean cMemoryOwn)
void finalize ()
void swigDirectorDisconnect ()

Static Protected Member Functions

static long getCPtr (Viewer obj)

Protected Attributes

transient boolean swigCMemOwn

Detailed Description

The basic Viewer

Member Function Documentation

void Viewer.OnMouseWheel ( InputEvent  evt,
int  delta 
delta> 0 scroll up, < 0 scroll down
int Viewer.Redraw ( float  timeTick)

Redraw the scene

0 if no drawing needed.
void Viewer.SetCoordinateWidgetPosition ( short  position)

Set the position of the coordinate widget

positionthe position index. [0, 1]