Function:ss2sas

From S2PLOT

(Difference between revisions)
Jump to: navigation, search

Revision as of 01:25, 30 October 2007

ss2sas

Start/Stop the camera rotation.

Prototype

void ss2sas(int startstop);

Description

Start (startstop = 1) or stop (startstop = 0) the camera rotation.

See Also

ss2sc Set the camera position, up vector and view direction.
ss2qc Query the camera position, up vector and view direction.
ss2tc Enable/disable (1,0) camera translation.
ss2sss Set the spin / interaction speed
ss2qss Get the spin / interaction speed


Code Example

#include <stdio.h>
#include <stdlib.h>
#include "s2plot.h"

int main(int argc, char *argv[])
{
   XYZ xyz = { 0.3, 0.3, 0.3 };			/* Position */
   COLOUR col = { 1.0, 1.0, 0.0 };		/* Colour */
   float radius = 0.2;

   s2opend("/?",argc, argv);			/* Open the display */
   s2swin(-1.,1., -1.,1., -1.,1.);		/* Set the window coordinates */
   s2box("BCDET",0,0,"BCDET",0,0,"BCDET",0,0);	/* Draw coordinate box */

   ns2vsphere(xyz, radius, col);		/* Draw yellow sphere */

   ss2sas(1);				/* Start camera rotating */

   s2show(1);					/* Open the s2plot window */
   
   return 1;
}

Back to S2PLOT function list.


Personal tools