reb
Class REB_TrapShapeSlopeBasic
Object
common:Generic
common:TrapShape
reb:REB_TrapShapeSlopeBasic
class
- TrapShape:REB_TrapShapeSlopeBasic
Provides the basic trap shapes for Slope with Shapes.
Ultra Fractal Source
Toggle UF Source Code Display
class REB_TrapShapeSlopeBasic(common.ulb:TrapShape) {
; Provides the basic trap shapes for Slope with Shapes. <br>
public:
import "common.ulb"
; constructor
func REB_TrapShapeSlopeBasic(Generic pparent)
TrapShape.TrapShape(pparent)
endfunc
; call for each iterated point
float func Iterate(complex pz)
TrapShape.Iterate(pz)
float m_d = 0
if @zmode == 0
m_d = -10000
elseif @zmode == 1
m_d = |pz|; get current distance from origin
elseif @zmode == 2
m_d = abs(real(pz)); get current distances from i axis
elseif @zmode == 3
m_d = abs(imag(pz)); get current distances from r axis
elseif @zmode == 4
m_d = abs(real(pz))+abs(imag(pz)); get current distances from i axis
elseif @zmode == 5
m_d = abs(atan2(pz)); get current angles
endif
m_lastZ = pz
return m_d
endfunc
default:
title = "Slope Basics"
int param v_slopebasics
caption = "Version (Slope Basics)"
default = 101
hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
visible = @v_slopebasics < 101
endparam
heading
text = "This plugin provides the basic slope height values."
endheading
param zmode
caption = "Basic heights"
default = 0
enum = "smoothed iteration" "smallest |z|" "smallest |real(z)|" \
"smallest |imag(z)|" "smallest summ(z)" "smallest |atan(z)|"
endparam
}
Methods inherited from class Object |
|
REB_TrapShapeSlopeBasic
public REB_TrapShapeSlopeBasic(Generic pparent)
- constructor
REB_TrapShapeSlopeBasic
public REB_TrapShapeSlopeBasic()
Iterate
public float Iterate(complex pz)
- call for each iterated point
- Overrides:
Iterate
in class TrapShape