Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4342 in orxonox.OLD for orxonox


Ignore:
Timestamp:
May 27, 2005, 9:34:57 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: default values in the gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/particles/particle_fun.cc

    r4338 r4342  
    2626  // Creating a Test Particle System
    2727  ParticleSystem* system = new ParticleSystem(100000, PARTICLE_SPRITE);
     28  system->setRadius(0,0,0,0);
     29  system->setLifeSpan(0);
     30  system->setConserve(1.0);
    2831
    2932  // Creating a Test Particle Emitter
    3033  ParticleEmitter* emitter = new ParticleEmitter(Vector(0 , 1, 0));
     34  emitter->setEmissionRate(0);
     35  emitter->setEmissionVelocity(0,0);
     36  emitter->setSpread(0,0);
     37  emitter->setType(EMITTER_DOT);
     38  emitter->setSize(0);
    3139  // Add the Flow from the Emitter into the System
    3240  ParticleEngine::getInstance()->addConnection(emitter, system);
     
    202210          EmitterType->addItem("EMITTER_PLANE");
    203211          EmitterType->addItem("EMITTER_CUBE");
    204           EmitterType->connectSignal("changed", (void*)EmitterType, emitterChange );     
     212          EmitterType->load("EMITTER_DOT");
     213          EmitterType->connectSignal("changed", (void*)EmitterType, emitterChange );
    205214          emitterBox->fill(EmitterType);
    206215
     
    240249          Slider* ConserveFactor = new Slider("ConserveFactor", 0, 1);
    241250          ConserveFactor->setExactness(3);
     251          ConserveFactor->load("1.0");
    242252          ConserveFactor->connectSignal("value_changed", (void*)ConserveFactor, systemChange );
    243253          systemBox->fill(ConserveFactor);
     
    248258          ParticleType->addItem("PARTICLE_SPARK");
    249259          ParticleType->addItem("PARTICLE_SPRITE");
     260          ParticleType->load("PARTICLE_SPRITE");
    250261          ParticleType->connectSignal("changed", (void*)ParticleType, systemChange );     
    251262          systemBox->fill(ParticleType);
Note: See TracChangeset for help on using the changeset viewer.