|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object common:Generic common:Transform common:UserTransform mmf:MMF_Linear
class
Simple linear transform
class MMF_Linear(common.ulb:UserTransform) { ; Simple linear transform<br> public: import "common.ulb" ; @param pparent the parent, generally "this" for the parent, or zero func MMF_Linear(Generic pparent) UserTransform.UserTransform(pparent) endfunc func Init(complex pz) ; m_Iterations = 0 not used in this transform m_Solid = false endfunc complex func Iterate(complex pz) ; m_Iterations = m_Iterations + 1 not used in this transform return @p_scale*pz + @p_constant endfunc default: title = "Linear" complex param p_scale caption = "The Scale" default = (1,0) hint = "The scale, s, in s*z + c." endparam complex param p_constant caption = "The Constant" default = (0,0) hint = "The constant, c, in s*z + c." endparam }
Constructor Summary | |
---|---|
MMF_Linear()
|
|
MMF_Linear(Generic pparent)
|
Method Summary | |
---|---|
void |
Init(complex pz)
Set up for a sequence of values |
complex |
Iterate(complex pz)
Transform a single point within a sequence |
Methods inherited from class common:Transform |
---|
IsSolid, IterateSilent |
Methods inherited from class common:Generic |
---|
GetParent |
Methods inherited from class Object |
---|
|
Constructor Detail |
---|
public MMF_Linear(Generic pparent)
pparent
- the parent, generally "this" for the parent, or zeropublic MMF_Linear()
Method Detail |
---|
public void Init(complex pz)
Transform
This function will be called at the beginning of each sequence of values (e.g. at the beginning of each fractal orbit). It will be called even if only one value is being transformed (e.g. a normal transformation formula). Use this to perform any setup that is exactly the same for each value in the sequence being transformed.
Init
in class Transform
pz
- the value representing the sequence; for a normal transformation formula use, this will be #pixel. In some cases this may differ from the first value passed to Iterate() if the calling code applies some other transformations.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 |