11 #ifndef __COP2_MaskOp_h__
12 #define __COP2_MaskOp_h__
20 #define ARG_MASKOP_AMOUNT "effectamount"
21 #define ARG_MASKOP_MASKINPUT "maskinput"
22 #define ARG_MASKOP_MASKPLANE "maskplane"
23 #define ARG_MASKOP_RESIZEMASK "maskresize"
24 #define ARG_MASKOP_MASKINVERT "maskinvert"
54 int getMaskFromInput();
58 bool getMaskBounds(
float t,
int xres,
int yres,
int thread,
59 int &x1,
int &
y1,
int &
x2,
int &
y2);
62 int &x1,
int &
y1,
int &
x2,
int &
y2)
63 {
return getMaskBounds(context.
myTime,
83 void setupMaskParms();
110 int x1,
int y1,
int x2,
int y2);
113 int x2,
int y2,
int component = 0);
122 bool getMask(
int &pindex,
int &cindex);
124 float getAmount(
int image_index);
#define ARG_MASKOP_RESIZEMASK
#define ARG_MASKOP_MASKINVERT
virtual int MASK_RESIZE()
fpreal evalFloat(int pi, int vi, fpreal t) const
static OP_TemplatePair myTemplatePair
#define ARG_MASKOP_AMOUNT
void getAuxInputName(OP_ConnectorId &name_out) override
virtual COP2_Node * getPassThroughInput(COP2_Context &)
UT_IntArray myAmountIndex
virtual bool isFrameEffectHandled()
void getInputDependenciesForOutputArea(COP2_CookAreaInfo &output_area, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas) override
int getAuxInput() const override
virtual OP_ERROR cookMyTile(COP2_Context &context, TIL_TileList *tiles)
TIL_Sequence * cookSequenceInfo(OP_ERROR &err) override
void evalString(UT_String &val, int pi, int vi, fpreal t) const
GLuint const GLchar * name
void getUniqueInputName(OP_ConnectorId &id_out, int idx, bool grow)
virtual int MASK_INVERT()
bool getMaskBounds(COP2_Context &context, int &x1, int &y1, int &x2, int &y2)
virtual void modifyViewMatrix(int input, COP2_Context &context, UT_Matrix4 &matrix, float zoom)
virtual void computeImageBounds(COP2_Context &context)
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
virtual float AMOUNT(float t)
#define ARG_MASKOP_MASKPLANE
bool updateParmsFlags() override
virtual const char * inputConnectorLabel(unsigned idx)
#define ARG_MASKOP_MASKINPUT
exint evalInt(int pi, int vi, fpreal t) const
UT_FloatArray myAmountValue
GLdouble GLdouble GLdouble y2
virtual int getOpInput() const
int getMaskInput() const override
virtual bool doNormalMask(COP2_Context &)
virtual int getMaskInput() const
virtual float getFrameScopeEffect(int image_index)
virtual void MASK_PLANE(UT_String &s)