Title:

VRML & Java

Home
Publication List
deutsch
  
ISBN: 3828710824   ISBN: 3828710824   ISBN: 3828710824   ISBN: 3828710824 
 
  Wir empfehlen:       
 
VRML & Java


//
// Importiern der VMRL-Packages
//


import vrml.*;
import vrml.field.*;
import vrml.node.*;


public class bounce
    extends Script
{
   
// Parameter für das Script
    private float Hoehe;

   
// Script node eventOuts
    private SFVec3f value_changedObj;


  
//
    // Initialisierungsmethode
    //

    public void initialize( )
    {
       
        SFFloat floatObj = (SFFloat) getField( "Hoehe" );
        Hoehe = (float) floatObj.getValue( );
        value_changedObj = (SFVec3f) getEventOut( "value_changed" );
    }


   
//
    // Bei einem auftreteden Ereignis (EventIn) wird diese Routine gestartet
    //

    public void processEvent( Event event )
    {
        ConstSFFloat flt = (ConstSFFloat) event.getValue( );
        float frac = (float) flt.getValue( );

        float y = (float)(4.0 * Hoehe * frac * (1.0 - frac));

        float[] changed = new float[3];
        changed[0] = (float)0.0;
        changed[1] = y;
        changed[2] = (float)0.0;

        value_changedObj.setValue( changed );
    }
}

 

 

Index

  
Das Einsteigerseminar VRML
von Rolf Däßler
Siehe auch:
Lineare Algebra: Eine Einführung
Schulprofi mit Corel Draw! Graphics Suite X3. CD-ROM für Windows XP/2000/NT/98
von Co.Tec (in Software)
Sonstige Artikel:
Das Fest des Huhnes
von Kayonga Kagame,
Walter Wippersberg
Nintendo DS Lite - Travel Pack Basic 8in1, schwarz
von Speed-Link
 
   
 
     

Back to the topic sites:
ScientificPublication.com/Startseite/Informatik/Programmieren
StudyPaper.com/Startseite/Computer/Internet
StudyPaper.com/Startseite/Computer

External Links to this site are permitted without prior consent.

Publication List:
Scalable Vector Graphics (automatische Übersetzung)
Scalable Vector Graphics 1.1 (automatische Übersetzung)
   
  Home  |  deutsch  |  Set bookmark  |  Send a friend a link  |  Copyright ©  |  Impressum