S2PLOT:HowTo
From S2PLOT
Revision as of 23:41, 25 November 2007 Dbarnes (Talk | contribs) (→How To ... in C) ← Previous diff |
Current revision S2plot admin (Talk | contribs) |
||
Line 3: | Line 3: | ||
Choose from either C, Fortran or Python categories depending on your preferred programming mode. The How Tos assume that you have a working, a tested, version of S2PLOT installed on your system, and that you have suitable compilers available. | Choose from either C, Fortran or Python categories depending on your preferred programming mode. The How Tos assume that you have a working, a tested, version of S2PLOT installed on your system, and that you have suitable compilers available. | ||
+ | |||
+ | == Spherical coordinate systems in S2PLOT in C == | ||
+ | Astronomers like to use spherical coordinate systems, but S2PLOT would prefer you to use Cartesian coordinates. To aid in the development of visualisations that require spherical coordinate grids, we have put together some sample code. | ||
+ | |||
+ | Please download [http://astronomy.swin.edu.au/s2plot/samples/us2spherical.c us2spherical.c], [http://astronomy.swin.edu.au/s2plot/samples/us2spherical.h us2spherical.h] and [http://astronomy.swin.edu.au/s2plot/samples/spheredemo.c spheredemo.c] and follow the instructions in the comments spheredemo.c. | ||
+ | |||
== How To ... in C == | == How To ... in C == | ||
Line 8: | Line 14: | ||
* [[HowToC:GetStarted | Getting started ]] | * [[HowToC:GetStarted | Getting started ]] | ||
* [[HowToC:DrawPoints | Drawing points ]] | * [[HowToC:DrawPoints | Drawing points ]] | ||
+ | <!-- | ||
+ | * Drawing lines | ||
+ | * Drawing circles and disks | ||
+ | * Drawing text | ||
+ | * Creating callbacks | ||
+ | * Selecting via handles | ||
+ | * Dragging handles | ||
+ | * Colours and colour maps | ||
* [[HowToC:DrawLines | Drawing lines ]] | * [[HowToC:DrawLines | Drawing lines ]] | ||
* [[HowToC:DrawCircles | Drawing circles and disks ]] | * [[HowToC:DrawCircles | Drawing circles and disks ]] | ||
Line 15: | Line 29: | ||
* [[HowToC:SelectHandles | Selecting via handles ]] | * [[HowToC:SelectHandles | Selecting via handles ]] | ||
* [[HowToC:DragHandles | Dragging handles ]] | * [[HowToC:DragHandles | Dragging handles ]] | ||
+ | * [[HowToC:Colours | Colours and colour maps]] | ||
+ | --> | ||
* create, modify and travel along a camera flight path | * create, modify and travel along a camera flight path | ||
* draw and save specific views of a model / visualisation | * draw and save specific views of a model / visualisation | ||
* wrap a large-area FITS file on to the celestial sky | * wrap a large-area FITS file on to the celestial sky | ||
* [[HowToC:TransTextures | Make textures transparent ]] | * [[HowToC:TransTextures | Make textures transparent ]] | ||
- | * use an OpenGL callback function | + | * [[HowToC:OpenGLCB | Use an OpenGL callback function ]] |
+ | * [[HowToC:FollowAnObject | Follow an object with the camera ]] | ||
* use panels | * use panels | ||
+ | * S2PLOT coordinate systems: world coordinates, screen coordinates | ||
+ | |||
+ | <!-- | ||
== How To ... in Fortran == | == How To ... in Fortran == | ||
Line 29: | Line 49: | ||
* [[HowToPython:GetStarted | Getting started ]] | * [[HowToPython:GetStarted | Getting started ]] | ||
+ | --> | ||
- | == How To ... without programming == | + | == How To ... without (much) programming == |
+ | * [[HowTo:BackgroundImg | Run an existing S2PLOT program over a background image]] | ||
+ | * [[HowTo:ScriptKeyPresses | "Script" key presses for S2PLOT]] | ||
* [[HowTo:S2Slides | Create an s2slides presentation ]] | * [[HowTo:S2Slides | Create an s2slides presentation ]] | ||
- | * create and embed 3d figures in PDF files | + | * [[HowTo:Textures | Convert images to textures ]] |
+ | * [[S2PLOT:3dPDF | Create and embed 3-d figures in PDF files]] | ||
+ | * [[S2PLOT:s2web | Create and embed 3-d figures in web pages (using Flash)]] | ||
[[ S2PLOT | Back ]] to S2PLOT home page. | [[ S2PLOT | Back ]] to S2PLOT home page. |
Current revision
The following series of How Tos show you how to solve a range of common visualisation problems with S2PLOT. They are not intended to provide a complete user guide to all the functionality of S2PLOT, and should be supplemented by looking at the Function List.
Choose from either C, Fortran or Python categories depending on your preferred programming mode. The How Tos assume that you have a working, a tested, version of S2PLOT installed on your system, and that you have suitable compilers available.
Spherical coordinate systems in S2PLOT in C
Astronomers like to use spherical coordinate systems, but S2PLOT would prefer you to use Cartesian coordinates. To aid in the development of visualisations that require spherical coordinate grids, we have put together some sample code.
Please download us2spherical.c, us2spherical.h and spheredemo.c and follow the instructions in the comments spheredemo.c.
How To ... in C
- Getting started
- Drawing points
- create, modify and travel along a camera flight path
- draw and save specific views of a model / visualisation
- wrap a large-area FITS file on to the celestial sky
- Make textures transparent
- Use an OpenGL callback function
- Follow an object with the camera
- use panels
- S2PLOT coordinate systems: world coordinates, screen coordinates
How To ... without (much) programming
- Run an existing S2PLOT program over a background image
- "Script" key presses for S2PLOT
- Create an s2slides presentation
- Convert images to textures
- Create and embed 3-d figures in PDF files
- Create and embed 3-d figures in web pages (using Flash)
Back to S2PLOT home page.