8 #include <COP2/COP2_PixelOp.h> 9 #include <RU/RU_PixelFunctions.h> 24 static OP_TemplatePair myTemplatePair;
25 static OP_VariablePair myVariablePair;
26 static PRM_Template myTemplateList[];
27 static CH_LocalVariable myVariableList[];
103 fpreal modulo, fpreal offset,
bool invert =
false);
111 std::vector<fpreal>sizes,
112 std::vector<UT_Color>colors,
115 fpreal32 blendOffset,
116 fpreal32 weightMult = 1.0f,
117 bool invert =
false);
123 if (mode == ModeType::BLENDCOLOR)
136 static fpreal32 checkModulus(
137 RU_PixelFunction* pf,
144 static fpreal32 checkComparison(
145 RU_PixelFunction* pf,
150 static fpreal32 checkBlendColors(
151 RU_PixelFunction* pf,
162 case ModeType::MODULUS:
164 case ModeType::COMPARISON:
165 return checkComparison;
166 case ModeType::BLENDCOLOR:
167 return checkBlendColors;
174 fpreal32 modulo{ 0.0f };
175 fpreal32 offset{ 0.0f };
176 bool invert{
false };
177 fpreal32 compValue{ 0.0 };
178 std::vector<fpreal> sizes;
179 std::vector<UT_Color> colors;
183 fpreal32 colorOffset{ 0.0f };
184 fpreal32 blendOffset{ 1.0f };
ComparisonType
When in the comparison mode, specifies the different kinds of comparisons we are allowed to make...
Definition: COP2_FractalMatte.h:82
OP is meant to remove the need to write public 'myConstructor' methods in every class like the exampl...
Definition: FractalNode.h:359
virtual bool needAllComponents() const
Tells Houdini if all components must be cooked or not.
Definition: COP2_FractalMatte.h:130
Fractal Matte Operator class.
Definition: COP2_FractalMatte.h:20
static const char * myInputLabels[]
Label the names of the inputs in the Houdini UI.
Definition: COP2_FractalMatte.h:30
ModeType
Enumerates the different type of fundamental operators we can perform on the upstream fractals...
Definition: COP2_FractalMatte.h:72
virtual RUPixelFunc getPixelFunction() const
This is how we signal to RU_PixelFunction what method must be called per-pixel.
Definition: COP2_FractalMatte.h:158
virtual RU_PixelFunction * addPixelFunction(const TIL_Plane *, int, fpreal32 t, int, int, int thread)
We must override this method, which returns a pixel function.
Definition: COP2_FractalMatte.cpp:175
Definition: COP2_Buddhabrot.h:17
virtual bool eachComponentDifferent() const
Tells Houdini whether 'component', here meaning image plane, should be different or not...
Definition: COP2_FractalMatte.h:121
Pixel Function used to interpret the upstream fractals.
Definition: COP2_FractalMatte.h:66
BlendType
When in the blendcolor mode, specifies the strategy used to blend the colors between different value ...
Definition: COP2_FractalMatte.h:94
virtual bool updateParmsFlags() override
Use to hide/unhide parameters.
Definition: COP2_FractalMatte.cpp:250