Function:ss2sas

From S2PLOT

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:25, 30 October 2007
S2plot admin (Talk | contribs)

← Previous diff
Current revision
S2plot admin (Talk | contribs)

Line 15: Line 15:
== See Also == == See Also ==
<table> <table>
 +<tr><td>[[Function:ss2qas | ss2qas ]]</td><td>Query the autospin state. </td></tr>
<tr><td>[[Function:ss2sc | ss2sc ]]</td><td>Set the camera position, up vector and view direction. </td></tr> <tr><td>[[Function:ss2sc | ss2sc ]]</td><td>Set the camera position, up vector and view direction. </td></tr>
<tr><td>[[Function:ss2qc | ss2qc ]]</td><td>Query the camera position, up vector and view direction. </td></tr> <tr><td>[[Function:ss2qc | ss2qc ]]</td><td>Query the camera position, up vector and view direction. </td></tr>

Current revision

ss2sas

Start/Stop the camera rotation.

Prototype

void ss2sas(int startstop);

Description

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

See Also

ss2qas Query the autospin state.
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