Project

General

Profile

« Previous | Next » 

Revision 6bb59aad

Added by Leszek Koltunski almost 7 years ago

Progress with support for Effect classes.

View differences:

src/main/java/org/distorted/library/effect/MatrixEffectScale.java
27 27

  
28 28
public class MatrixEffectScale extends MatrixEffect
29 29
  {
30
  private static final String NAME = "SCALE";
30 31
  private static final float[] UNITIES = new float[] {1.0f,1.0f,1.0f};
31 32
  private static final int DIMENSION = 3;
32 33
  private static final boolean SUPPORTS_CENTER = false;
33 34
  private static final boolean SUPPORTS_REGION = false;
34 35

  
35 36
///////////////////////////////////////////////////////////////////////////////////////////////////
36

  
37
/**
38
 * Scales the Object by (possibly changing in time) 3D scale factors.
39
 *
40
 * @param scale 3-dimensional Data which at any given time returns a Static3D
41
 *              representing the current x- , y- and z- scale factors.
42
 */
37 43
  public MatrixEffectScale(Data3D scale)
38 44
    {
39
    super(SCALE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION);
45
    super(SCALE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
40 46

  
41 47
    if( scale instanceof Static3D)
42 48
      {
......
49 55
    }
50 56

  
51 57
///////////////////////////////////////////////////////////////////////////////////////////////////
52

  
58
/**
59
 * Scales the Object by (possibly changing in time) 3D scale factors.
60
 *
61
 * @param scale Common x,y, and z scale factor.
62
 */
53 63
  public MatrixEffectScale(float scale)
54 64
    {
55
    super(SCALE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION);
65
    super(SCALE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
56 66

  
57 67
    mStatic0 = new Static3D(scale,scale,scale);
58 68
    }

Also available in: Unified diff