Visualization commands


aboucher - Posted on 12 April 2009

This set of commands controls some of the visualization capabilities of SGeMS, e.g. creating and saving a plot (histogram, scatter plot, qq-plot) or taking snapshot of the visualization window.

RotateCamera x::y::z::angle
Rotate the camera. (x,y,z) defines the rotation axis; the rotation angle is in radian and measured in clockwise.
SaveCameraSettings Filename
Save the position of the camera into Filename. The Filename must be given with a full directory path.
LoadCameraSettings Filename
Retrieve the camera position from Filename. The Filename must be given with a full directory path.
ResizeCameraWindow Width::Height
Set the width and the height of the camera to Width and Height.
ShowHistogram Grid::Prop[::NumberBins::LogScale]
Display the histogram of the specified property. The number of bins may also be input with NumberBins; the default value is 20. The x axis can also be changed to log scale by setting LogScale to true (value 1).
SaveHistogram Grid::Prop::Filename[::Format][::NumberBins][::LogScale][::ShowStats][::ShowGrid]
Save the specified histogram into Filename with format specified by Format. The available file formats are PNG and BMP. The default format is PNG. When ShowStats is set to true (value 1), it saves the statistics in the file, ShowGrid adds a grid to the histogram. The Filename must be given with a full directory path.
SaveQQplot Grid::Prop1::Prop2::Filename[::Format][::ShowStats][::ShowGrid]
Save the QQ plot between Prop1 and Prop2 into Filename. The available file formats are PNG and BMP. The default format is PNG. When ShowStats is set to true (value 1), it saves the statistics in the file, ShowGrid adds a grid to the QQ-plot. The Filename must be given with a full directory path.
SaveScatterplot Grid::Prop1::Prop2::Filename[::Format][::ShowStats][::ShowGrid][::YLogScale::XLogScale]
Save the scatter plot between Prop1 and Prop2 into Filename. The available file formats are PNG and BMP. The default format is PNG. When ShowStats is set to true (value 1), it saves the statistics in the file, ShowGrid adds a grid to the scatter plot. The Filename must be given with a full directory path.
DisplayObject Grid[::Prop]
Display Prop on the viewing window. When Prop is not specified, only the grid geometry is displayed.
HideObject Grid
Remove Grid from the viewing window.
TakeSnapshot Filename[::Format]
Take the snapshot of the current viewing window and save it into Filename. The available file formats are PNG, PS, BMP and PPM. The default format is PNG. The Filename must be given with a full directory path.