AnyCAD Rapid API 2023
Help you to create a better world!
ViewContext Class Reference

Public Member Functions

SceneManager GetSceneManager ()
 
Document GetDocument ()
 
void SetDocument (Document val)
 
long GetUpdateTicket ()
 
void SetUpdateTicket (long val)
 
Vector3 GetOrbitPivot ()
 
boolean GetFixedOrbitPivot ()
 
void SetFixedOrbitPivot (boolean val)
 
EnumMouseButton GetPanButton ()
 
void SetPanButton (EnumMouseButton val)
 
EnumMouseButton GetOrbitButton ()
 
void SetOrbitButton (EnumMouseButton val)
 
EnumMouseButton GetPickButton ()
 
void SetPickButton (EnumMouseButton val)
 
EnumKeyModifier GetPanKeyModifier ()
 
void SetPanKeyModifier (EnumKeyModifier val)
 
EnumKeyModifier GetOrbitKeyModifier ()
 
void SetOrbitKeyModifier (EnumKeyModifier val)
 
EnumKeyModifier GetPickKeyModifier ()
 
void SetPickKeyModifier (EnumKeyModifier val)
 
boolean GetRectPick ()
 
void SetRectPick (boolean val)
 
boolean GetFreeOrbit ()
 
void SetFreeOrbit (boolean val)
 
Vector3 GetWorldUp ()
 
void SetWorldUp (Vector3 val)
 
boolean IsSame (ViewContext ctx)
 
Scene GetScene ()
 
Scene2D GetScene2D ()
 
SelectionManager GetSelection ()
 
Camera GetCamera ()
 
void SetOrbitPivot (Vector3 center)
 
void SetUserOrbitPivot (Vector3 center)
 
void ClearPickFilters ()
 
void ResetPickFilters ()
 
void AddPickFilter (EnumShapeFilter filter)
 
void ClearPickFilter (EnumShapeFilter filter)
 
void SetPickFilter (long filter)
 
long GetPickFilter ()
 
void ResetDisplayFilters ()
 
void AddDisplayFilter (EnumShapeFilter filter)
 
void ClearDisplayFilter (EnumShapeFilter filter)
 
void ResetOrbitPivot ()
 
void ClearAll ()
 
void ClearTemp ()
 
void SetDefaultMaterial (EnumShapeFilter type, MaterialInstance material)
 
MaterialInstance GetDefaultMaterial (EnumShapeFilter type)
 
TempViewContext GetTempContext ()
 
RenderSettings GetRenderSettings ()
 
void Destroy ()
 
void Resize (long width, long height)
 
void RequestUpdate (EnumUpdateFlags flag)
 
void ZoomToExtend (float ratio)
 
void Zoom (int x, int y, int delta)
 
void Pan (int offsetX, int offsetY)
 
void Orbit (int offsetX, int offsetY)
 
void UpdateWorld ()
 
Vector3 ScreenPointToWorldPoint (long x, long y, float z)
 
Vector3 WorldPointToSceenPoint (Vector3 pt)
 
Ray WindowPointToRay (long x, long y)
 
Vector3 SnapPoint (long x, long y)
 

Detailed Description

<>
The viewing context.

Member Function Documentation

◆ AddPickFilter()

void ViewContext.AddPickFilter ( EnumShapeFilter  filter)

Add pick filter

Parameters
filterfiter

◆ ClearPickFilter()

void ViewContext.ClearPickFilter ( EnumShapeFilter  filter)

Remove the specified filter

Parameters
filterfilter

◆ ClearPickFilters()

void ViewContext.ClearPickFilters ( )

Clear the pick filter

◆ ResetPickFilters()

void ViewContext.ResetPickFilters ( )

Set the default pick filter

◆ SetOrbitPivot()

void ViewContext.SetOrbitPivot ( Vector3  center)

Set orbit pivot.

Parameters
centerthe new orbit pivot.

◆ SetUserOrbitPivot()

void ViewContext.SetUserOrbitPivot ( Vector3  center)

Set the user defined orbit pivot.

Parameters
centerthe new orbit pivot.