|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object common:Generic common:Transform common:UserTransform ck:Image
class
class Image(common.ulb:UserTransform) { public: ; @param pparent a reference to the object creating the new object; typically, 'this' func Image(Generic pparent) UserTransform.UserTransform(pparent) i=new @imageParam(); endfunc complex func Iterate(complex pz) ;ratio=1; complex pix = (real(#screenpixel)/#width,imag(#screenpixel)/#height) color col=i.getColor(pix) float l=sqrt(red(col)*red(col)+green(col)*green(col)+blue(col)*blue(col)) return pz+ l*@scale endfunc private: Image i default: title = "Image" Image param imageParam caption = "Image" endparam float param scale caption = "Scale" default=1 endparam }
Constructor Summary | |
---|---|
Image()
|
|
Image(Generic pparent)
|
Method Summary | |
---|---|
complex |
Iterate(complex pz)
Transform a single point within a sequence |
Methods inherited from class common:Transform |
---|
Init, IsSolid, IterateSilent |
Methods inherited from class common:Generic |
---|
GetParent |
Methods inherited from class Object |
---|
|
Constructor Detail |
---|
public Image(Generic pparent)
pparent
- a reference to the object creating the new object; typically, 'this'public Image()
Method Detail |
---|
public complex Iterate(complex pz)
Transform
After a sequence has been set up with Init(), this function will be called once for each value in the sequence. Note that all values in the sequence must be processed in order (they cannot be processed out of order). If the sequence contains only one value, Init() will still be called and then Iterate() will be called just once.
Iterate
in class Transform
pz
- the complex value to be transformed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |