home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-07-14 | 4.9 KB | [TEXT/CWIE] |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: Plot3DViewer.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sun Jul 14 13:27:00 1996, modified Sun Jul 14 13:27:00 1996, creator 'CWIE', type ASCII, 4299 bytes "Plot3DViewer.h" magic text fragment for file(1) cmd, 1st line "#ifndef __PLOT3DVIEWER__", 2nd line "#define __PLOT3DVIEWER__", 3rd line "", 4th line "#include <QD3D.h>", 5th line "#include <QD3DGroup.h>", at 0x114b 410 bytes resource magic text fragment for file(1) cmd, 1st line "#ifndef __PLOT3DVIEWER__", 2nd line "#define __PLOT3DVIEWER__", 3rd line "", 4th line "#include <QD3D.h>", 5th line "#include <QD3DGroup.h>"
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 50 6c 6f 74 33 44 | 56 69 65 77 65 72 2e 68 |..Plot3D|Viewer.h|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 10 cb 00 | 00 01 9a ae 0e de 64 ae |........|......d.|
|00000060| 0e de 64 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..d.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 13 46 00 00 |........|.....F..|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 50 4c 4f 54 33 44 |#ifndef |__PLOT3D|
|00000090| 56 49 45 57 45 52 5f 5f | 0d 23 64 65 66 69 6e 65 |VIEWER__|.#define|
|000000a0| 20 5f 5f 50 4c 4f 54 33 | 44 56 49 45 57 45 52 5f | __PLOT3|DVIEWER_|
|000000b0| 5f 0d 0d 23 69 6e 63 6c | 75 64 65 20 3c 51 44 33 |_..#incl|ude <QD3|
|000000c0| 44 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 51 |D.h>.#in|clude <Q|
|000000d0| 44 33 44 47 72 6f 75 70 | 2e 68 3e 0d 23 69 6e 63 |D3DGroup|.h>.#inc|
|000000e0| 6c 75 64 65 20 3c 51 44 | 33 44 56 69 65 77 2e 68 |lude <QD|3DView.h|
|000000f0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 51 44 33 44 |>.#inclu|de <QD3D|
|00000100| 43 61 6d 65 72 61 2e 68 | 3e 0d 0d 0d 74 79 70 65 |Camera.h|>...type|
|00000110| 64 65 66 20 73 74 72 75 | 63 74 0d 7b 0d 09 54 51 |def stru|ct.{..TQ|
|00000120| 33 56 69 65 77 4f 62 6a | 65 63 74 09 09 09 76 69 |3ViewObj|ect...vi|
|00000130| 65 77 3b 09 09 09 2f 2f | 20 6f 75 72 20 76 69 65 |ew;...//| our vie|
|00000140| 77 0d 09 54 51 33 43 61 | 6d 65 72 61 4f 62 6a 65 |w..TQ3Ca|meraObje|
|00000150| 63 74 09 09 09 70 6f 69 | 6e 74 43 61 6d 3b 09 09 |ct...poi|ntCam;..|
|00000160| 2f 2f 20 6f 75 72 20 63 | 61 6d 65 72 61 20 77 69 |// our c|amera wi|
|00000170| 74 68 20 70 6f 69 6e 74 | 20 70 72 6f 6a 65 63 74 |th point| project|
|00000180| 69 6f 6e 0d 09 54 51 33 | 43 61 6d 65 72 61 4f 62 |ion..TQ3|CameraOb|
|00000190| 6a 65 63 74 09 09 09 6f | 72 74 68 6f 43 61 6d 3b |ject...o|rthoCam;|
|000001a0| 09 09 2f 2f 20 6f 75 72 | 20 63 61 6d 65 72 61 20 |..// our| camera |
|000001b0| 77 69 74 68 20 70 61 72 | 61 6c 6c 65 6c 20 70 72 |with par|allel pr|
|000001c0| 6f 6a 65 63 74 69 6f 6e | 0d 09 54 51 33 47 72 6f |ojection|..TQ3Gro|
|000001d0| 75 70 4f 62 6a 65 63 74 | 09 09 09 67 72 6f 75 70 |upObject|...group|
|000001e0| 3b 09 09 09 2f 2f 20 74 | 68 65 20 67 72 6f 75 70 |;...// t|he group|
|000001f0| 20 64 69 73 70 6c 61 79 | 65 64 20 62 79 20 74 68 | display|ed by th|
|00000200| 65 20 76 69 65 77 65 72 | 0d 09 54 51 33 4c 69 67 |e viewer|..TQ3Lig|
|00000210| 68 74 4f 62 6a 65 63 74 | 09 09 09 73 70 6f 74 4c |htObject|...spotL|
|00000220| 69 67 68 74 73 5b 34 5d | 3b 09 2f 2f 20 6f 75 72 |ights[4]|;.// our|
|00000230| 20 66 6f 75 72 20 73 70 | 6f 74 20 6c 69 67 68 74 | four sp|ot light|
|00000240| 73 0d 09 54 51 33 4c 69 | 67 68 74 4f 62 6a 65 63 |s..TQ3Li|ghtObjec|
|00000250| 74 09 09 09 61 6d 62 69 | 65 6e 74 4c 69 67 68 74 |t...ambi|entLight|
|00000260| 3b 09 2f 2f 20 6f 75 72 | 20 61 6d 62 69 65 6e 74 |;.// our| ambient|
|00000270| 20 6c 69 67 68 74 0d 0d | 09 57 69 6e 64 6f 77 52 | light..|.WindowR|
|00000280| 65 66 09 09 09 09 77 69 | 6e 64 6f 77 3b 09 09 09 |ef....wi|ndow;...|
|00000290| 2f 2f 20 74 68 65 20 70 | 6f 72 74 20 77 65 20 61 |// the p|ort we a|
|000002a0| 72 65 20 69 6e 0d 09 52 | 65 63 74 09 09 09 09 09 |re in..R|ect.....|
|000002b0| 62 6f 75 6e 64 73 3b 09 | 09 09 2f 2f 20 74 68 65 |bounds;.|..// the|
|000002c0| 20 62 6f 75 6e 64 73 20 | 6f 66 20 77 68 61 74 20 | bounds |of what |
|000002d0| 77 65 20 73 68 6f 77 2c | 20 65 6e 63 6c 6f 73 69 |we show,| enclosi|
|000002e0| 6e 67 20 74 68 65 20 76 | 69 65 77 20 61 6e 64 20 |ng the v|iew and |
|000002f0| 74 68 65 20 62 75 74 74 | 6f 6e 73 0d 09 52 65 63 |the butt|ons..Rec|
|00000300| 74 09 09 09 09 09 62 75 | 74 74 6f 6e 52 65 63 74 |t.....bu|ttonRect|
|00000310| 3b 09 09 2f 2f 20 74 68 | 65 20 62 6f 75 6e 64 73 |;..// th|e bounds|
|00000320| 20 6f 66 20 74 68 65 20 | 62 75 74 74 6f 6e 73 0d | of the |buttons.|
|00000330| 09 52 65 63 74 09 09 09 | 09 09 76 69 65 77 52 65 |.Rect...|..viewRe|
|00000340| 63 74 3b 09 09 2f 2f 20 | 74 68 65 20 62 6f 75 6e |ct;..// |the boun|
|00000350| 64 73 20 6f 66 20 74 68 | 65 20 76 69 65 77 0d 09 |ds of th|e view..|
|00000360| 42 6f 6f 6c 65 61 6e 09 | 09 09 09 09 70 61 72 61 |Boolean.|....para|
|00000370| 6c 6c 65 6c 3b 09 09 2f | 2f 20 74 72 75 65 20 69 |llel;../|/ true i|
|00000380| 66 20 70 61 72 61 6c 6c | 65 6c 20 70 72 6f 6a 65 |f parall|el proje|
|00000390| 63 74 69 6f 6e 2c 20 66 | 61 6c 73 65 20 69 66 20 |ction, f|alse if |
|000003a0| 70 6f 69 6e 74 20 70 72 | 6f 6a 65 63 74 69 6f 6e |point pr|ojection|
|000003b0| 0d 09 42 6f 6f 6c 65 61 | 6e 09 09 09 09 09 7a 56 |..Boolea|n.....zV|
|000003c0| 65 72 74 69 63 61 6c 3b | 09 09 2f 2f 20 74 72 75 |ertical;|..// tru|
|000003d0| 65 20 69 66 20 7a 20 69 | 73 20 74 6f 20 62 65 20 |e if z i|s to be |
|000003e0| 6b 65 70 74 20 76 65 72 | 74 69 63 61 6c 0d 09 43 |kept ver|tical..C|
|000003f0| 6f 6e 74 72 6f 6c 48 61 | 6e 64 6c 65 09 09 09 7a |ontrolHa|ndle...z|
|00000400| 56 65 72 74 69 63 61 6c | 43 74 6c 3b 09 2f 2f 20 |Vertical|Ctl;.// |
|00000410| 63 68 65 63 6b 62 6f 78 | 20 66 6f 72 20 22 7a 20 |checkbox| for "z |
|00000420| 76 65 72 74 69 63 61 6c | 22 0d 09 43 6f 6e 74 72 |vertical|"..Contr|
|00000430| 6f 6c 48 61 6e 64 6c 65 | 09 09 09 73 70 69 6e 43 |olHandle|...spinC|
|00000440| 74 6c 3b 09 09 2f 2f 20 | 63 68 65 63 6b 62 6f 78 |tl;..// |checkbox|
|00000450| 20 66 6f 72 20 22 73 70 | 69 6e 22 0d 09 73 68 6f | for "sp|in"..sho|
|00000460| 72 74 09 09 09 09 09 66 | 6c 61 67 73 3b 09 09 09 |rt.....f|lags;...|
|00000470| 2f 2f 20 61 20 73 75 6d | 20 6f 66 20 74 68 65 20 |// a sum| of the |
|00000480| 65 6e 75 6d 20 64 65 66 | 69 6e 65 64 20 62 65 6c |enum def|ined bel|
|00000490| 6f 77 0d 7d 20 50 33 56 | 69 65 77 65 72 44 61 74 |ow.} P3V|iewerDat|
|000004a0| 61 3b 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |a;..type|def stru|
|000004b0| 63 74 09 09 09 09 09 09 | 09 09 2f 2f 20 74 68 65 |ct......|..// the|
|000004c0| 20 72 65 63 6f 72 64 20 | 75 73 65 64 20 62 79 20 | record |used by |
|000004d0| 50 33 56 69 65 77 65 72 | 47 65 74 53 65 74 74 69 |P3Viewer|GetSetti|
|000004e0| 6e 67 73 2f 2e 2e 53 65 | 74 53 65 74 74 69 6e 67 |ngs/..Se|tSetting|
|000004f0| 73 0d 7b 0d 09 42 6f 6f | 6c 65 61 6e 09 09 09 09 |s.{..Boo|lean....|
|00000500| 09 73 70 6f 74 73 5b 34 | 5d 3b 09 09 2f 2f 20 74 |.spots[4|];..// t|
|00000510| 68 65 20 73 65 74 74 69 | 6e 67 73 20 6f 66 20 65 |he setti|ngs of e|
|00000520| 61 63 68 20 73 70 6f 74 | 20 6c 69 67 68 74 0d 09 |ach spot| light..|
|00000530| 42 6f 6f 6c 65 61 6e 09 | 09 09 09 09 69 73 50 61 |Boolean.|....isPa|
|00000540| 72 61 6c 6c 65 6c 3b 09 | 09 2f 2f 20 74 72 75 65 |rallel;.|.// true|
|00000550| 20 69 66 20 70 61 72 61 | 6c 6c 65 6c 20 70 72 6f | if para|llel pro|
|00000560| 6a 65 63 74 69 6f 6e 0d | 09 54 51 33 43 61 6d 65 |jection.|.TQ3Came|
|00000570| 72 61 44 61 74 61 09 09 | 09 63 61 6d 65 72 61 44 |raData..|.cameraD|
|00000580| 61 74 61 3b 09 09 2f 2f | 20 63 61 6d 65 72 61 20 |ata;..//| camera |
|00000590| 64 61 74 61 20 6f 66 20 | 76 69 65 77 20 61 6e 67 |data of |view ang|
|000005a0| 6c 65 20 61 73 70 65 63 | 74 20 63 61 6d 65 72 61 |le aspec|t camera|
|000005b0| 0d 09 54 51 33 4d 61 74 | 72 69 78 34 78 34 09 09 |..TQ3Mat|rix4x4..|
|000005c0| 09 72 6f 74 61 74 69 6f | 6e 3b 09 09 2f 2f 20 63 |.rotatio|n;..// c|
|000005d0| 75 72 72 65 6e 74 20 72 | 6f 74 61 74 69 6f 6e 20 |urrent r|otation |
|000005e0| 6d 61 74 72 69 78 0d 7d | 20 50 33 56 69 65 77 65 |matrix.}| P3Viewe|
|000005f0| 72 53 65 74 74 69 6e 67 | 73 3b 0d 0d 0d 65 6e 75 |rSetting|s;...enu|
|00000600| 6d 09 09 09 09 09 09 09 | 09 09 09 2f 2f 20 66 6c |m.......|...// fl|
|00000610| 61 67 73 20 74 6f 20 62 | 65 20 70 61 73 73 65 64 |ags to b|e passed|
|00000620| 20 74 6f 20 50 33 56 69 | 65 77 65 72 4e 65 77 0d | to P3Vi|ewerNew.|
|00000630| 7b 09 6b 33 46 6c 61 67 | 57 69 74 68 50 6f 70 75 |{.k3Flag|WithPopu|
|00000640| 70 73 20 3d 20 30 78 30 | 31 09 09 09 09 09 2f 2f |ps = 0x0|1.....//|
|00000650| 20 69 66 20 74 68 65 20 | 76 69 65 77 65 72 20 73 | if the |viewer s|
|00000660| 68 6f 75 6c 64 20 68 61 | 76 65 20 70 6f 70 75 70 |hould ha|ve popup|
|00000670| 73 0d 7d 3b 0d 0d 0d 50 | 33 56 69 65 77 65 72 44 |s.};...P|3ViewerD|
|00000680| 61 74 61 2a 20 50 33 56 | 69 65 77 65 72 4e 65 77 |ata* P3V|iewerNew|
|00000690| 28 57 69 6e 64 6f 77 52 | 65 66 20 77 69 6e 64 6f |(WindowR|ef windo|
|000006a0| 77 2c 20 52 65 63 74 2a | 20 63 6f 6e 73 74 20 62 |w, Rect*| const b|
|000006b0| 6f 75 6e 64 73 2c 20 73 | 68 6f 72 74 20 66 6c 61 |ounds, s|hort fla|
|000006c0| 67 73 29 3b 0d 09 2f 2f | 20 63 61 6c 6c 20 66 6f |gs);..//| call fo|
|000006d0| 72 20 61 6c 6c 6f 63 61 | 74 69 6e 67 20 74 68 65 |r alloca|ting the|
|000006e0| 20 76 69 65 77 65 72 0d | 09 2f 2f 20 72 65 74 75 | viewer.|.// retu|
|000006f0| 72 6e 73 20 6e 69 6c 20 | 6f 6e 20 66 61 69 6c 75 |rns nil |on failu|
|00000700| 72 65 0d 09 2f 2f 20 66 | 6c 61 67 73 3a 20 61 20 |re..// f|lags: a |
|00000710| 73 75 6d 20 6f 66 20 74 | 68 65 20 66 6c 61 67 73 |sum of t|he flags|
|00000720| 20 64 65 66 69 6e 65 64 | 20 69 6e 20 74 68 65 20 | defined| in the |
|00000730| 65 6e 75 6d 20 61 62 6f | 76 65 20 6f 72 20 30 0d |enum abo|ve or 0.|
|00000740| 0d 76 6f 69 64 20 50 33 | 56 69 65 77 65 72 44 69 |.void P3|ViewerDi|
|00000750| 73 70 6f 73 65 28 50 33 | 56 69 65 77 65 72 44 61 |spose(P3|ViewerDa|
|00000760| 74 61 2a 20 63 6f 6e 73 | 74 20 76 69 65 77 65 72 |ta* cons|t viewer|
|00000770| 29 3b 0d 09 2f 2f 20 63 | 61 6c 6c 20 66 6f 72 20 |);..// c|all for |
|00000780| 64 65 61 6c 6c 6f 63 61 | 74 69 6e 67 0d 0d 42 6f |dealloca|ting..Bo|
|00000790| 6f 6c 65 61 6e 20 50 33 | 56 69 65 77 65 72 45 76 |olean P3|ViewerEv|
|000007a0| 65 6e 74 28 50 33 56 69 | 65 77 65 72 44 61 74 61 |ent(P3Vi|ewerData|
|000007b0| 2a 20 63 6f 6e 73 74 20 | 76 69 65 77 65 72 2c 20 |* const |viewer, |
|000007c0| 45 76 65 6e 74 52 65 63 | 6f 72 64 2a 20 63 6f 6e |EventRec|ord* con|
|000007d0| 73 74 20 65 76 65 6e 74 | 29 3b 0d 09 2f 2f 20 74 |st event|);..// t|
|000007e0| 72 79 20 68 61 6e 64 6c | 69 6e 67 20 61 6e 20 65 |ry handl|ing an e|
|000007f0| 76 65 6e 74 2c 20 72 65 | 74 75 72 6e 20 74 72 75 |vent, re|turn tru|
|00000800| 65 20 69 66 20 68 61 6e | 64 6c 65 64 0d 0d 42 6f |e if han|dled..Bo|
|00000810| 6f 6c 65 61 6e 20 50 33 | 56 69 65 77 65 72 41 64 |olean P3|ViewerAd|
|00000820| 6a 75 73 74 43 75 72 73 | 6f 72 28 50 33 56 69 65 |justCurs|or(P3Vie|
|00000830| 77 65 72 44 61 74 61 2a | 20 63 6f 6e 73 74 20 76 |werData*| const v|
|00000840| 69 65 77 65 72 2c 20 50 | 6f 69 6e 74 2a 20 63 6f |iewer, P|oint* co|
|00000850| 6e 73 74 20 70 74 29 3b | 0d 09 2f 2f 20 74 72 69 |nst pt);|..// tri|
|00000860| 65 73 20 68 61 6e 64 6c | 69 6e 67 20 63 75 72 73 |es handl|ing curs|
|00000870| 6f 72 2c 20 72 65 74 75 | 72 6e 73 20 66 61 6c 73 |or, retu|rns fals|
|00000880| 65 20 69 66 20 63 61 6c | 6c 65 72 20 73 68 6f 75 |e if cal|ler shou|
|00000890| 6c 64 20 68 61 6e 64 6c | 65 20 63 75 72 73 6f 72 |ld handl|e cursor|
|000008a0| 0d 0d 76 6f 69 64 20 50 | 33 56 69 65 77 65 72 55 |..void P|3ViewerU|
|000008b0| 73 65 47 72 6f 75 70 28 | 50 33 56 69 65 77 65 72 |seGroup(|P3Viewer|
|000008c0| 44 61 74 61 2a 20 63 6f | 6e 73 74 20 76 69 65 77 |Data* co|nst view|
|000008d0| 65 72 2c 20 54 51 33 47 | 72 6f 75 70 4f 62 6a 65 |er, TQ3G|roupObje|
|000008e0| 63 74 20 67 72 6f 75 70 | 29 3b 0d 09 2f 2f 20 73 |ct group|);..// s|
|000008f0| 68 6f 77 20 74 68 65 20 | 67 69 76 65 6e 20 67 72 |how the |given gr|
|00000900| 6f 75 70 20 28 44 69 73 | 70 6f 73 65 73 20 61 6e |oup (Dis|poses an|
|00000910| 79 20 65 78 69 73 74 69 | 6e 67 20 67 72 6f 75 70 |y existi|ng group|
|00000920| 29 0d 0d 76 6f 69 64 20 | 50 33 56 69 65 77 65 72 |)..void |P3Viewer|
|00000930| 44 72 61 77 28 50 33 56 | 69 65 77 65 72 44 61 74 |Draw(P3V|iewerDat|
|00000940| 61 2a 20 63 6f 6e 73 74 | 20 76 69 65 77 65 72 29 |a* const| viewer)|
|00000950| 3b 0d 09 2f 2f 20 64 72 | 61 77 73 20 74 68 65 20 |;..// dr|aws the |
|00000960| 76 69 65 77 65 72 0d 0d | 76 6f 69 64 20 50 33 56 |viewer..|void P3V|
|00000970| 69 65 77 65 72 49 6e 76 | 61 6c 69 64 61 74 65 28 |iewerInv|alidate(|
|00000980| 50 33 56 69 65 77 65 72 | 44 61 74 61 2a 20 63 6f |P3Viewer|Data* co|
|00000990| 6e 73 74 20 76 69 65 77 | 65 72 29 3b 0d 09 2f 2f |nst view|er);..//|
|000009a0| 20 69 6e 76 61 6c 69 64 | 61 74 65 73 20 74 68 65 | invalid|ates the|
|000009b0| 20 76 69 65 77 65 72 20 | 63 6f 6e 74 65 6e 74 73 | viewer |contents|
|000009c0| 0d 0d 50 69 63 48 61 6e | 64 6c 65 20 50 33 56 69 |..PicHan|dle P3Vi|
|000009d0| 65 77 65 72 47 65 74 50 | 69 63 74 28 50 33 56 69 |ewerGetP|ict(P3Vi|
|000009e0| 65 77 65 72 44 61 74 61 | 2a 20 63 6f 6e 73 74 20 |ewerData|* const |
|000009f0| 76 69 65 77 65 72 2c 20 | 6c 6f 6e 67 20 72 65 73 |viewer, |long res|
|00000a00| 6f 6c 75 74 69 6f 6e 2c | 20 73 68 6f 72 74 20 64 |olution,| short d|
|00000a10| 65 70 74 68 2c 20 73 68 | 6f 72 74 20 6d 6f 64 65 |epth, sh|ort mode|
|00000a20| 29 3b 0d 09 2f 2f 20 72 | 65 74 75 72 6e 73 20 61 |);..// r|eturns a|
|00000a30| 20 70 69 63 74 75 72 65 | 20 6f 66 20 74 68 65 20 | picture| of the |
|00000a40| 76 69 65 77 65 72 0d 09 | 2f 2f 20 72 65 73 6f 6c |viewer..|// resol|
|00000a50| 75 74 69 6f 6e 3a 20 74 | 68 65 20 72 65 73 6f 6c |ution: t|he resol|
|00000a60| 75 74 69 6f 6e 20 69 6e | 20 64 70 69 0d 09 2f 2f |ution in| dpi..//|
|00000a70| 20 64 65 70 74 68 3a 20 | 74 68 65 20 64 65 70 74 | depth: |the dept|
|00000a80| 68 20 69 6e 20 62 69 74 | 73 0d 09 2f 2f 20 6d 6f |h in bit|s..// mo|
|00000a90| 64 65 3a 20 74 72 61 6e | 73 66 65 72 6d 6f 64 65 |de: tran|sfermode|
|00000aa0| 20 28 65 2e 67 2e 20 73 | 72 63 43 6f 70 79 2c 20 | (e.g. s|rcCopy, |
|00000ab0| 73 72 63 4f 72 29 0d 0d | 76 6f 69 64 20 50 33 56 |srcOr)..|void P3V|
|00000ac0| 69 65 77 65 72 53 65 74 | 42 6f 75 6e 64 73 28 50 |iewerSet|Bounds(P|
|00000ad0| 33 56 69 65 77 65 72 44 | 61 74 61 2a 20 63 6f 6e |3ViewerD|ata* con|
|00000ae0| 73 74 20 76 69 65 77 65 | 72 2c 20 52 65 63 74 2a |st viewe|r, Rect*|
|00000af0| 20 63 6f 6e 73 74 20 62 | 6f 75 6e 64 73 29 3b 0d | const b|ounds);.|
|00000b00| 09 2f 2f 20 73 65 74 73 | 20 74 68 65 20 65 6e 63 |.// sets| the enc|
|00000b10| 6c 6f 73 69 6e 67 20 62 | 6f 75 6e 64 73 20 6f 66 |losing b|ounds of|
|00000b20| 20 74 68 65 20 76 69 65 | 77 2b 62 75 74 74 6f 6e | the vie|w+button|
|00000b30| 73 0d 0d 0d 54 51 33 56 | 69 65 77 4f 62 6a 65 63 |s...TQ3V|iewObjec|
|00000b40| 74 20 50 33 56 69 65 77 | 65 72 47 65 74 56 69 65 |t P3View|erGetVie|
|00000b50| 77 28 50 33 56 69 65 77 | 65 72 44 61 74 61 2a 20 |w(P3View|erData* |
|00000b60| 63 6f 6e 73 74 20 76 69 | 65 77 65 72 29 3b 0d 09 |const vi|ewer);..|
|00000b70| 2f 2f 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 76 |// retur|ns the v|
|00000b80| 69 65 77 20 61 73 73 6f | 63 69 61 74 65 64 20 74 |iew asso|ciated t|
|00000b90| 6f 20 74 68 65 20 67 69 | 76 65 6e 20 76 69 65 77 |o the gi|ven view|
|00000ba0| 65 72 20 2d 20 64 6f 65 | 73 20 6e 6f 74 20 69 6e |er - doe|s not in|
|00000bb0| 63 72 65 61 73 65 0d 09 | 2f 2f 20 69 74 73 20 6f |crease..|// its o|
|00000bc0| 77 6e 65 72 20 63 6f 75 | 6e 74 0d 0d 0d 4f 53 45 |wner cou|nt...OSE|
|00000bd0| 72 72 20 50 33 56 69 65 | 77 65 72 57 72 69 74 65 |rr P3Vie|werWrite|
|00000be0| 46 69 6c 65 28 50 33 56 | 69 65 77 65 72 44 61 74 |File(P3V|iewerDat|
|00000bf0| 61 2a 20 63 6f 6e 73 74 | 20 76 69 65 77 65 72 2c |a* const| viewer,|
|00000c00| 20 6c 6f 6e 67 20 72 65 | 66 4e 75 6d 29 3b 0d 09 | long re|fNum);..|
|00000c10| 2f 2f 20 77 72 69 74 65 | 73 20 74 68 65 20 76 69 |// write|s the vi|
|00000c20| 65 77 65 72 20 64 61 74 | 61 20 74 6f 20 61 20 66 |ewer dat|a to a f|
|00000c30| 69 6c 65 0d 0d 4f 53 45 | 72 72 20 50 33 56 69 65 |ile..OSE|rr P3Vie|
|00000c40| 77 65 72 43 6f 70 79 28 | 50 33 56 69 65 77 65 72 |werCopy(|P3Viewer|
|00000c50| 44 61 74 61 2a 20 63 6f | 6e 73 74 20 76 69 65 77 |Data* co|nst view|
|00000c60| 65 72 29 3b 0d 09 2f 2f | 20 63 6f 70 69 65 73 20 |er);..//| copies |
|00000c70| 76 69 65 77 65 72 20 64 | 61 74 61 20 74 6f 20 63 |viewer d|ata to c|
|00000c80| 6c 69 70 62 6f 61 72 64 | 0d 0d 0d 76 6f 69 64 20 |lipboard|...void |
|00000c90| 50 33 56 69 65 77 65 72 | 53 65 74 5a 28 50 33 56 |P3Viewer|SetZ(P3V|
|00000ca0| 69 65 77 65 72 44 61 74 | 61 2a 20 63 6f 6e 73 74 |iewerDat|a* const|
|00000cb0| 20 76 69 65 77 65 72 2c | 20 42 6f 6f 6c 65 61 6e | viewer,| Boolean|
|00000cc0| 20 76 65 72 74 69 63 61 | 6c 29 3b 0d 09 2f 2f 20 | vertica|l);..// |
|00000cd0| 69 66 20 76 65 72 74 69 | 63 61 6c 3d 74 72 75 65 |if verti|cal=true|
|00000ce0| 2c 20 74 68 65 20 7a 2d | 61 78 69 73 20 69 73 20 |, the z-|axis is |
|00000cf0| 68 65 6c 64 20 76 65 72 | 74 69 63 61 6c 0d 09 2f |held ver|tical../|
|00000d00| 2f 20 65 6c 73 65 20 7a | 20 69 73 20 61 72 62 69 |/ else z| is arbi|
|00000d10| 74 72 61 72 79 0d 0d 76 | 6f 69 64 20 50 33 56 69 |trary..v|oid P3Vi|
|00000d20| 65 77 65 72 53 65 74 53 | 70 69 6e 28 50 33 56 69 |ewerSetS|pin(P3Vi|
|00000d30| 65 77 65 72 44 61 74 61 | 2a 20 63 6f 6e 73 74 20 |ewerData|* const |
|00000d40| 76 69 65 77 65 72 2c 20 | 42 6f 6f 6c 65 61 6e 20 |viewer, |Boolean |
|00000d50| 64 6f 53 70 69 6e 29 3b | 0d 09 2f 2f 20 69 66 20 |doSpin);|..// if |
|00000d60| 64 6f 53 70 69 6e 20 3d | 20 74 72 75 65 2c 20 73 |doSpin =| true, s|
|00000d70| 70 69 6e 6e 69 6e 67 20 | 69 73 20 65 6e 61 62 6c |pinning |is enabl|
|00000d80| 65 64 2c 20 65 6c 73 65 | 20 64 69 73 61 62 6c 65 |ed, else| disable|
|00000d90| 64 0d 0d 76 6f 69 64 20 | 50 33 56 69 65 77 65 72 |d..void |P3Viewer|
|00000da0| 53 65 74 53 70 6f 74 4c | 69 67 68 74 28 50 33 56 |SetSpotL|ight(P3V|
|00000db0| 69 65 77 65 72 44 61 74 | 61 2a 20 63 6f 6e 73 74 |iewerDat|a* const|
|00000dc0| 20 76 69 65 77 65 72 2c | 20 6c 6f 6e 67 20 69 64 | viewer,| long id|
|00000dd0| 78 2c 20 42 6f 6f 6c 65 | 61 6e 20 73 74 61 74 65 |x, Boole|an state|
|00000de0| 29 3b 0d 09 2f 2f 20 73 | 77 69 74 63 68 65 73 20 |);..// s|witches |
|00000df0| 74 68 65 20 73 70 6f 74 | 6c 69 67 68 74 20 77 69 |the spot|light wi|
|00000e00| 74 68 20 67 69 76 65 6e | 20 69 6e 64 65 78 20 6f |th given| index o|
|00000e10| 6e 20 6f 72 20 6f 66 66 | 0d 09 2f 2f 20 69 64 78 |n or off|..// idx|
|00000e20| 3d 09 30 09 6c 65 66 74 | 0d 09 2f 2f 09 09 31 09 |=.0.left|..//..1.|
|00000e30| 66 72 6f 6e 74 0d 09 2f | 2f 09 09 32 09 72 69 67 |front../|/..2.rig|
|00000e40| 68 74 0d 09 2f 2f 09 09 | 33 09 72 65 61 72 0d 0d |ht..//..|3.rear..|
|00000e50| 42 6f 6f 6c 65 61 6e 20 | 50 33 56 69 65 77 65 72 |Boolean |P3Viewer|
|00000e60| 47 65 74 53 70 6f 74 4c | 69 67 68 74 28 50 33 56 |GetSpotL|ight(P3V|
|00000e70| 69 65 77 65 72 44 61 74 | 61 2a 20 63 6f 6e 73 74 |iewerDat|a* const|
|00000e80| 20 76 69 65 77 65 72 2c | 20 6c 6f 6e 67 20 69 64 | viewer,| long id|
|00000e90| 78 29 3b 0d 09 2f 2f 20 | 72 65 74 75 72 6e 73 20 |x);..// |returns |
|00000ea0| 74 68 65 20 73 74 61 74 | 75 73 20 28 6f 6e 2f 6f |the stat|us (on/o|
|00000eb0| 66 66 29 20 6f 66 20 74 | 68 65 20 67 69 76 65 6e |ff) of t|he given|
|00000ec0| 20 73 70 6f 74 20 6c 69 | 67 68 74 0d 09 2f 2f 20 | spot li|ght..// |
|00000ed0| 69 64 78 3d 09 30 09 6c | 65 66 74 0d 09 2f 2f 09 |idx=.0.l|eft..//.|
|00000ee0| 09 31 09 66 72 6f 6e 74 | 0d 09 2f 2f 09 09 32 09 |.1.front|..//..2.|
|00000ef0| 72 69 67 68 74 0d 09 2f | 2f 09 09 33 09 72 65 61 |right../|/..3.rea|
|00000f00| 72 0d 0d 76 6f 69 64 20 | 50 33 56 69 65 77 65 72 |r..void |P3Viewer|
|00000f10| 53 65 74 50 72 6f 6a 65 | 63 74 69 6f 6e 28 50 33 |SetProje|ction(P3|
|00000f20| 56 69 65 77 65 72 44 61 | 74 61 2a 20 63 6f 6e 73 |ViewerDa|ta* cons|
|00000f30| 74 20 76 69 65 77 65 72 | 2c 20 42 6f 6f 6c 65 61 |t viewer|, Boolea|
|00000f40| 6e 20 70 61 72 61 6c 6c | 65 6c 29 3b 0d 09 2f 2f |n parall|el);..//|
|00000f50| 20 73 65 74 73 20 74 68 | 65 20 70 72 6f 6a 65 63 | sets th|e projec|
|00000f60| 74 69 6f 6e 20 6d 6f 64 | 65 3a 20 74 6f 20 70 61 |tion mod|e: to pa|
|00000f70| 72 61 6c 6c 65 6c 20 69 | 66 20 70 61 72 61 6c 6c |rallel i|f parall|
|00000f80| 65 6c 20 69 73 20 74 72 | 75 65 2c 0d 09 2f 2f 20 |el is tr|ue,..// |
|00000f90| 74 6f 20 70 6f 69 6e 74 | 20 70 72 6f 6a 65 63 74 |to point| project|
|00000fa0| 69 6f 6e 20 6f 74 68 65 | 72 77 69 73 65 0d 0d 42 |ion othe|rwise..B|
|00000fb0| 6f 6f 6c 65 61 6e 20 50 | 33 56 69 65 77 65 72 47 |oolean P|3ViewerG|
|00000fc0| 65 74 50 72 6f 6a 65 63 | 74 69 6f 6e 28 50 33 56 |etProjec|tion(P3V|
|00000fd0| 69 65 77 65 72 44 61 74 | 61 2a 20 63 6f 6e 73 74 |iewerDat|a* const|
|00000fe0| 20 76 69 65 77 65 72 29 | 3b 0d 09 2f 2f 20 67 65 | viewer)|;..// ge|
|00000ff0| 74 73 20 74 68 65 20 70 | 72 6f 6a 65 63 74 69 6f |ts the p|rojectio|
|00001000| 6e 20 6d 6f 64 65 3a 20 | 74 72 75 65 20 69 66 20 |n mode: |true if |
|00001010| 70 61 72 61 6c 6c 65 6c | 2c 0d 09 2f 2f 20 66 61 |parallel|,..// fa|
|00001020| 6c 73 65 20 69 66 20 70 | 6f 69 6e 74 20 70 72 6f |lse if p|oint pro|
|00001030| 6a 65 63 74 69 6f 6e 0d | 0d 76 6f 69 64 20 50 33 |jection.|.void P3|
|00001040| 56 69 65 77 65 72 53 65 | 74 53 65 74 74 69 6e 67 |ViewerSe|tSetting|
|00001050| 73 28 50 33 56 69 65 77 | 65 72 44 61 74 61 2a 20 |s(P3View|erData* |
|00001060| 63 6f 6e 73 74 20 76 69 | 65 77 65 72 2c 20 50 33 |const vi|ewer, P3|
|00001070| 56 69 65 77 65 72 53 65 | 74 74 69 6e 67 73 2a 20 |ViewerSe|ttings* |
|00001080| 63 6f 6e 73 74 20 73 65 | 74 74 69 6e 67 73 29 3b |const se|ttings);|
|00001090| 0d 09 2f 2f 20 61 70 70 | 6c 69 65 73 20 74 68 65 |..// app|lies the|
|000010a0| 20 73 65 74 74 69 6e 67 | 73 20 74 6f 20 74 68 65 | setting|s to the|
|000010b0| 20 76 69 65 77 65 72 0d | 0d 76 6f 69 64 20 50 33 | viewer.|.void P3|
|000010c0| 56 69 65 77 65 72 47 65 | 74 53 65 74 74 69 6e 67 |ViewerGe|tSetting|
|000010d0| 73 28 50 33 56 69 65 77 | 65 72 44 61 74 61 2a 20 |s(P3View|erData* |
|000010e0| 63 6f 6e 73 74 20 76 69 | 65 77 65 72 2c 20 50 33 |const vi|ewer, P3|
|000010f0| 56 69 65 77 65 72 53 65 | 74 74 69 6e 67 73 2a 20 |ViewerSe|ttings* |
|00001100| 63 6f 6e 73 74 20 73 65 | 74 74 69 6e 67 73 29 3b |const se|ttings);|
|00001110| 0d 09 2f 2f 20 72 65 74 | 75 72 6e 73 20 74 68 65 |..// ret|urns the|
|00001120| 20 63 75 72 72 65 6e 74 | 20 73 65 74 74 69 6e 67 | current| setting|
|00001130| 73 20 6f 66 20 74 68 65 | 20 76 69 65 77 65 72 0d |s of the| viewer.|
|00001140| 0d 0d 0d 0d 23 65 6e 64 | 69 66 0d 00 00 00 00 00 |....#end|if......|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001190| 00 00 01 59 18 e8 63 72 | 5c 01 0f 08 59 71 02 28 |...Y..cr|\...Yq.(|
|000011a0| 50 42 04 d4 93 14 30 2e | 00 08 04 40 00 1c 01 67 |PB....0.|...@...g|
|000011b0| 0e 50 6c 6f 74 33 44 56 | 69 65 77 65 72 2e 68 65 |.Plot3DV|iewer.he|
|000011c0| 02 00 00 00 54 45 58 54 | 43 57 49 45 01 00 b2 80 |....TEXT|CWIE....|
|000011d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 b2 80 b2 00 |..TEXTCW|IE......|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 ad b9 57 85 00 00 | 10 cb 00 00 01 9a 01 52 |....W...|.......R|
|00001200| 40 bc 5f 01 60 12 59 54 | 26 01 00 fa 5f 01 7c 02 |@._.`.YT|&..._.|.|
|00001210| 6b 01 00 9a 12 10 06 48 | 80 02 6b 18 b0 7c 97 01 |k......H|..k..|..|
|00001220| 6e 12 76 4f 05 32 00 e6 | 49 44 41 01 30 10 ff 12 |n.vO.2..|IDA.0...|
|00001230| 0a 3c 00 04 01 66 76 23 | 01 67 3a f6 24 01 60 66 |.<...fv#|.g:.$.`f|
|00001240| 59 54 27 12 e5 40 3e 30 | 01 00 f8 11 be 6e b6 01 |YT'..@>0|.....n..|
|00001250| 6c 08 16 1d 46 ff fe 3d | 47 ff f6 be 6e ff f8 01 |l...F..=|G...n...|
|00001260| 5e c0 9d 03 67 40 ba 47 | 5e c1 11 c0 01 01 67 38 |^...g@.G|^.....g8|
|00001270| 12 18 06 3a 07 01 60 32 | 59 54 27 29 01 00 fa 2a |...:..`2|YT')...*|
|00001280| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 03 | 00 04 01 0a 00 2a 03 2e |........|.....*..|
|000012b0| 02 76 01 0a 00 2a 03 2e | 02 76 ae 0d 59 46 00 00 |.v...*..|.v..YF..|
|000012c0| 04 59 00 00 04 69 00 00 | 00 00 01 00 00 00 00 04 |.Y...i..|........|
|000012d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000012e0| 00 00 00 46 02 6e 8d 34 | 25 18 00 00 00 1c 00 46 |...F.n.4|%......F|
|000012f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001300| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001310| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+