Eyeon:Script/Reference/Applications/Fusion/Classes/GLViewer

From VFXPedia

Jump to: navigation, search

Parent Class: Object

GLViewer

Contents

Methods:

LoadFileLoad and display the contents of a file
SaveFileSave the currently displayed Image
SetPosSet the position of the viewer
GetPosGet the position of the viewer
GetPosTableGet the position of the viewer as a table
SetScaleSet the scale (zoom) of the view (Scale of 0 indicates Fit to View)
GetScaleGet the scale (zoom) of the view
SetRotSet the rotation of the view
GetRotGet the rotation angles of the view
GetRotTableGet the rotation angles of the view as a table
ResetViewResets the display to default position etc
SetChannelSelect which channel to show
GetChannelReturn which channel is shown
ShowControlsShows or hides controls on the view
AreControlsShownReturns true if controls are being displayed on the view
ShowGuidesShows or hides guides on the view
AreGuidesShownReturns true if image guides are being displayed on the view
SetAspectCorrectionEnables or disables aspect correction
GetAspectCorrectionReturns true if the viewer is correcting the aspect of images
SetAlphaOverlayColorSelect which alpha overlay to use
GetAlphaOverlayColorReturn which alpha overlay is being used
RedrawRefreshes the viewer


Members:

No members.


Other:



Tips for GLViewer (edit)

This is a parent class for 2D and 3D viewers. 2D image viewers are instances of the GLImageViewer subclass and have additional methods to set and show the DoD, RoI or LUT.


  • SetScale() needs to be followed by Refresh() to actually redraw the viewer at the new scale.