Revision e8b6aa95
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/matrix3d/Matrix3DActivity.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import org.distorted.examples.R; |
34 | 34 |
import org.distorted.library.Distorted; |
35 |
import org.distorted.library.DistortedCubes; |
|
35 |
import org.distorted.library.DistortedObjectGrid; |
|
36 |
import org.distorted.library.DistortedCubesGrid; |
|
36 | 37 |
import org.distorted.library.DistortedObject; |
37 | 38 |
import org.distorted.library.EffectNames; |
38 | 39 |
import org.distorted.library.EffectTypes; |
... | ... | |
46 | 47 |
public class Matrix3DActivity extends Activity implements AdapterView.OnItemSelectedListener |
47 | 48 |
{ |
48 | 49 |
private DistortedObject mObject; |
50 |
private DistortedObjectGrid mGrid; |
|
49 | 51 |
|
50 | 52 |
private ArrayList<Matrix3DEffect> mEffects; |
51 | 53 |
private int mEffectAdd; |
... | ... | |
66 | 68 |
|
67 | 69 |
createEffectNames(); |
68 | 70 |
|
69 |
mObject = new DistortedCubes( 1, "1", 100); |
|
71 |
mGrid = new DistortedCubesGrid(1,1,false); |
|
72 |
mObject = new DistortedObject(1,1,1); |
|
70 | 73 |
|
71 | 74 |
setEffectView(); |
72 | 75 |
} |
... | ... | |
102 | 105 |
return mObject; |
103 | 106 |
} |
104 | 107 |
|
108 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
109 |
|
|
110 |
public DistortedObjectGrid getGrid() |
|
111 |
{ |
|
112 |
return mGrid; |
|
113 |
} |
|
114 |
|
|
105 | 115 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
106 | 116 |
|
107 | 117 |
public void setRegion(float x, float y, float r) |
Also available in: Unified diff
Major change in API: separate the GRID from DistortedObject; completely remove classes derived from DistortedObject.