La lecture à portée de main
Description
Informations
Publié par | Erni |
Nombre de lectures | 46 |
Langue | Français |
Extrait
InitiJataivoan 3àD l
API
Un tutorial pour les débutants
Chapitre 1
Prendre un bon départ
Le Tutorial de Java 3D v1.5 (API Java 3D v1.1.2)
> traduction fr. version 0.1 <
Dennis J Bouvier / K Computing
Traduction Fortun Armel
Chapitre 1. Table des matières
Initiation à Java 3D
© 1999 Sun Microsystems, Inc.
2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A
All Rights Reserved.
The information contained in this document is subject to change without notice.
SUN MICROSYSTEMS PROVIDES THIS MATERIAL AS IS AND MAKES NO WARRANTY
OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
MWIACRRROASNYTSITEES MOSF SMHEARLCLH ANNOTTA BBIEL ILTIYA BALNED FFOITR NEERSSR OFORSR AC OPANRTTAIICNUELD AHR EPRUERIPN OSOER. SFUONR
IWNICTIHD ETNHTEA FLU ORRN ICSOHNISNEGQ, UPEERNFTIOARL MDAANMCAE GOERS (UINSEC LOUF DTIHNIGS LMOASTT EPRRIOAFLI, TSW IHNE CTOHNENR EBCATSIOEDN
ON WARRANTY, CONTRACT, OR OTHER LEGAL THEORY).
THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL
ERRORS. CHANGES ARE PERIODICALLY MADE TO THE INFORMATION HEREIN; THESE
CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THE PUBLICATION. SUN
PMRIOCDRUOCSTY(SS)T AENMDS/, OIRN PCR. OMGARYA MM(SA) KDEE SICMRPIBREODV IEN MTEHNIST PS UABLNIDC/AOTRI OCN HAAT NAGNEYS T IINM ET.HE
fSoor minec sitdaetnetsa ld oo rn coto naslleoqwu etnhtei ael xdcalumsiaogne so, fs io mtphlei eadb owvaer rlianmtiiteast ioorn tsh ae nldi meixtcaltiuosinos no rm eaxyc lnuosti oanp polfy ltiao byiloituy.
This warranty gives you specific legal rights, and you also may have other rights which vary from state
to state.
aPnedr mwiistshiooun tt foe ue sies, hceorpeyb, ym gordainftye, da npdr odviisdtreidb utthea tt htihsi sd occoupymreignthat tinoont ifcoer aNppOeNa-rsC iOn MallM cEoRpiCeIs.AL purposes
2T2h5i,s dMoocuunmtaeinnt aVtiioenw ,w CasA p 9re4p0a4r0e, d7 f7o0r- S9u8n2 -7M8i8cr1o, swyswtewm.ksc boym Kp uCtiongm.pcuotimn).g F(5or3 0f uSrthhoewr eirnsf oDrrmivatei, oSnu aitbeo 7u-t
course development or course delivery, please contact either Sun Microsystems or K Computing.
tJraavdae, mJaavrakSs corfi pSt,u Jna vMai 3crDo,s yHsotteJamvs,a ,I Sncu.n ,A Sllu on thMeirc rporsoydsutectm nsa, amneds thmee nStuino nloegd oh aerree itrna adree mtharek tsr aodr eremgairstkesr eodf
their respective owners.
Le Tutorial de Java 3D
i-1
Initiation à Java 3D
Le Tutorial de Java 3D
ii-1
Chapitre 1. Table des matières
Chapitre 1. Table des matières
Initiation à Java 3D
Table des matières
CHAPITRE 1
PRENDRE UN BON DÉPART............................................................................................................ 1-1
1.1 Quest ce que lAPI Java 3D ?..........................................................................................
.
.
.
.
.... 1-1
1.2 LAPI Java 3D............................................................................................................
.
.
............... 1-2
1.3 Construire un graphe scénique..................................................................................................... 1-3
1.3.1 Hiérarchie des classes de haut niveau de lAPI Java 3D..................................................................1 -7
1.4 Une recette pour écrire des programmes Java 3D......................................................................... 1-9
1.4.1 Une recette simplifiée pour écrire des programmes Java 3D........................................................... 1-9
1.5 Quelques termes Java 3D............................................................................................................ 1-13
1.6 HelloJava3Da : Un exemple qui suit la recette simple............................................................... 1-14
1.6.1 Les classes Java 3D utilisées dans HelloJava3Da........................................................................... 1-17
1.7 Affecter une rotation au Cube.................................................................................................... 1-20
1.7.1 Exemple de combinaison de transformations : HelloJava3Db....................................................... 1-21
1.8 Aptitudes et performances.......................................................................................................... 1-23
1.8.1 Compiler les volumes........................................................................................................................ 1-23
1.8.2 Aptitudes........................................................................................................................................... 1-24
1.9 Ajout de comportements dAnimation...................................................................................... -126
1.9.1 Déterminer un comportement danimation.................................................................................
.
.
1-27
1.9.2 Fonctions de variation temporelle : Appliquer un comportement de temps................................... 1-27
1.9.3 Région planifiée [scheduling region].............................................................................................. 1-28
1.9.4 Exemple de Behavior (comportement) : HelloJava3Dc................................................................... 1-29
1.9.5 Exemple de combinaison dune transformation et dun comportement : HelloJava3Dd............. 1-31
1.10 Résumé du chapitre.................................................................................................................. 1-34
1.11 Tests personnels........................................................................................................................ 1-34
Le Tutorial de Java 3D
iii-1
Initiation à Java 3D
Chapitre 1. Table des matières
Blocs de références
Les Constructeurs du SimpleUniverse................................................................................................... 1-11
La Méthode de la ViewingPlatform setNominalViewingTransform().................................................... 1-12
Les Méthodes du SimpleUniverse (liste partielle)................................................................................. 1-12
La méthode compile()du BranchGroup.................................................................................................. 1-13
Les méthodes du sceneGraphObject (liste partielle).............................................................................. 1-13
Le Constructeur MainFrame (liste partielle).......................................................................................... 1-15
Constructeur par défaut du BranchGroup.............................................................................................. 1-17
Le Constructeur du Canvas3D............................................................................................................... 1-18
Le Constructeur par défaut de Transform3D.......................................................................................... 1-18
Les Méthodes de Transform3D (liste partielle)...................................................................................... 1-18
Les Constructeurs de TransformGroup.................................................................................................. 1-19
La Méthode de TransformGroup setTransform()................................................................................... 1-19
Les constructeurs de Vector3f................................................................................................................ 1-19
Les Constructeurs du ColorCube........................................................................................................... 1-20
Méthodes du sceneGraphObject (liste partielle).................................................................................... 1-24
Aptitudes du TransformGroup (liste partielle)....................................................................................... 1-25
Aptitudes du Group (liste partielle)....................................................................................................... 1-25
Constructeur du RotationInterpolator (liste partielle)........................................................................... 1-27
Constructeur dAlpha.........................................................................................................
.
.
................ 1-28
Méthode du Behavior (Comportement) setSchedulingBounds............................................................. 1-28
Constructeurs de la Bounding Sphère (liste partielle)........................................................................... 1-29
Fragment de Code 1-7 méthode createSceneGraph avec un Behavior RotationInterpolator................. 1-30
Le Tutorial de Java 3D
1vi-
Initiation à Java 3D
Chapitre 1. Table des matières
Figures
Figure 1-1 Représentation symbolique des objets dun graphe scénique................................................ 1-4
Figure 1-2 Premier exemple de graphe scénique...................................................................................... 1-5
Figure 1-3 Exemple de graphe scénique illégal................................................................................