Package com.neophob.sematrix.core.effect

Examples of com.neophob.sematrix.core.effect.Effect


      case CHANGE_EFFECT_A:
        try {
          int nr = col.getCurrentVisual();
          tmp=Integer.parseInt(msg[1]);
          Effect e = col.getPixelControllerEffect().getEffect(tmp);
          e.getId();
          col.getVisual(nr).setEffect1(e);           
        } catch (Exception e) {
          LOG.log(Level.WARNING,  IGNORE_COMMAND, e);
        }
        break;

      case CHANGE_EFFECT_B:
        try {
          int nr = col.getCurrentVisual();
          tmp=Integer.parseInt(msg[1]);
          Effect e = col.getPixelControllerEffect().getEffect(tmp);
          e.getId();
          col.getVisual(nr).setEffect2(e);           
        } catch (Exception e) {
          LOG.log(Level.WARNING, IGNORE_COMMAND, e);
        }
        break;
View Full Code Here


    //create visuals
    int additionalVisuals = 1+ph.getNrOfAdditionalVisuals();
    LOG.log(Level.INFO, "Initialize "+(nrOfScreens+additionalVisuals)+" Visuals");
    try {
      Generator genPassThru = pixelControllerGenerator.getGenerator(GeneratorName.PASSTHRU);
      Effect effPassThru = pixelControllerEffect.getEffect(EffectName.PASSTHRU);
      Mixer mixPassThru = pixelControllerMixer.getMixer(MixerName.PASSTHRU);
      for (int i=1; i<nrOfScreens+additionalVisuals+1; i++) {
        Generator g = pixelControllerGenerator.getGenerator(
            GeneratorName.values()[ i%(GeneratorName.values().length) ]
            );
View Full Code Here

     * @param col
     * @return
     */
    private Visual createVisual(MatrixData matrix, ColorSet col) {
      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new PassThruMixer();
      return new Visual(g,e,m,col);
    }
View Full Code Here

   * Sets the effect1.
   *
   * @param index the new effect1
   */
  public void setEffect1(int index) {
    Effect e = Collector.getInstance().getPixelControllerEffect().getEffect(index);
    if (e!=null) {
      this.effect1 = e;     
    }
  }
View Full Code Here

   * Sets the effect2.
   *
   * @param index the new effect2
   */
  public void setEffect2(int index) {
    Effect e = Collector.getInstance().getPixelControllerEffect().getEffect(index);
    if (e!=null) {
      this.effect2 = e;     
    }
  }
View Full Code Here

      MatrixData matrix = new MatrixData(x,y);
      PixelControllerEffect pce = new PixelControllerEffect(matrix, sound);
      pce.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (Effect eff: pce.getAllEffects()) {
View Full Code Here

      MatrixData matrix = new MatrixData(x,y);
      PixelControllerResize pcr = new PixelControllerResize();
      pcr.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (IResize rsz: pcr.getAllResizers()) {
View Full Code Here

      for (int y=1; y<38; y++) {
          for (int x=1; x<38; x++) {
              MatrixData matrix = new MatrixData(x,y);

              Generator g = new Fire(matrix);
              Effect e = new PassThru(matrix);
                Visual visual = new Visual(g, e, m, c);       
                   
              IFader fader = new Switch(matrix, 100);
              OutputMapping map = new OutputMapping(fader, 0);
             
View Full Code Here

    }
   
   
    private Visual createVisual(MatrixData matrix, ColorSet col) {
      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new PassThruMixer();
      return new Visual(g,e,m,col);
    }
View Full Code Here

      MatrixData matrix = new MatrixData(x,y);
      PixelControllerMixer pcm = new PixelControllerMixer(matrix, sound);
      pcm.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (Mixer mix: pcm.getAllMixer()) {
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.effect.Effect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.