Revision ada90d33
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedCubes.java | ||
---|---|---|
67 | 67 |
for(int i=reallen; i<len; i++) desc += "0"; |
68 | 68 |
} |
69 | 69 |
|
70 |
if( desc.indexOf("1")>=0 )
|
|
70 |
if( desc.contains("1") )
|
|
71 | 71 |
{ |
72 | 72 |
Cs = cols; |
73 | 73 |
Rs = len/cols; |
... | ... | |
92 | 92 |
|
93 | 93 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
94 | 94 |
/** |
95 |
* Copy constructor used to create a DistortedCubes based on various parts of another object. |
|
96 |
* <p> |
|
97 |
* Whatever we do not clone gets created just like in the default constructor. |
|
98 |
* |
|
99 |
* @param dc Source object to create our object from |
|
100 |
* @param flags A bitmask of values specifying what to copy. |
|
101 |
* For example, CLONE_BITMAP | CLONE_MATRIX. |
|
95 |
* {@see DistortedObject#DistortedObject(DistortedObject,flags)} |
|
102 | 96 |
*/ |
103 | 97 |
public DistortedCubes(DistortedCubes dc, int flags) |
104 | 98 |
{ |
105 | 99 |
super(dc,flags); |
106 | 100 |
} |
107 | 101 |
|
102 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
103 |
|
|
104 |
protected DistortedObject deepCopy(int flags) |
|
105 |
{ |
|
106 |
return new DistortedCubes(this,flags); |
|
107 |
} |
|
108 |
|
|
108 | 109 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
109 | 110 |
} |
Also available in: Unified diff
Make deep copying DistortedObjects (needed in DistortedNode) standard.