IccMAX 2.1.27
Color Profile Tools
Loading...
Searching...
No Matches
CIccOpDefPolarToCartesian Class Reference
+ Inheritance diagram for CIccOpDefPolarToCartesian:
+ Collaboration diagram for CIccOpDefPolarToCartesian:

Public Member Functions

virtual int ArgsPushed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual int ArgsUsed (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 
virtual void Describe (SIccCalcOp &op, std::string &desc, int nVerboseness)
 
virtual bool Exec (SIccCalcOp *op, SIccOpState &os)
 
virtual bool IsValid (CIccMpeCalculator *pCalc, SIccCalcOp &op)
 

Detailed Description

Member Function Documentation

◆ ArgsPushed()

virtual int IIccOpDef::ArgsPushed ( CIccMpeCalculator pCalc,
SIccCalcOp op 
)
inlinevirtualinherited
297{ return op.ArgsPushed(pCalc);}
icUInt16Number ArgsPushed(CIccMpeCalculator *pCalc)
Definition IccMpeCalc.cpp:2354

References SIccCalcOp::ArgsPushed().

+ Here is the call graph for this function:

◆ ArgsUsed()

virtual int IIccOpDef::ArgsUsed ( CIccMpeCalculator pCalc,
SIccCalcOp op 
)
inlinevirtualinherited
298{ return op.ArgsUsed(pCalc);}
icUInt16Number ArgsUsed(CIccMpeCalculator *pCalc)
Definition IccMpeCalc.cpp:2222

References SIccCalcOp::ArgsUsed().

+ Here is the call graph for this function:

◆ Describe()

virtual void IIccOpDef::Describe ( SIccCalcOp op,
std::string &  desc,
int  nVerboseness 
)
inlinevirtualinherited
300{op.Describe(desc, nVerboseness);}
void Describe(std::string &desc, int nVerboseness=100)
Definition IccMpeCalc.cpp:1787

References SIccCalcOp::Describe().

+ Here is the call graph for this function:

◆ Exec()

virtual bool CIccOpDefPolarToCartesian::Exec ( SIccCalcOp op,
SIccOpState os 
)
inlinevirtual

Reimplemented from IIccOpDef.

1477 {
1478 int j, n = op->data.select.v1+1;
1479 icFloatNumber a1, a2;
1480 int tn = n*2;
1481 size_t ss = os.pStack->size();
1482 if (tn>(int)ss)
1483 return false;
1484 icFloatNumber *s = &(*os.pStack)[ss-tn];
1485 for (j=0; j<n; j++) {
1486 a1 = s[j];
1487 a2 = s[j+n] * (icFloatNumber)icPiNum / 180.0f;
1488
1489 s[j] = a1 * (icFloatNumber)cos(a2);
1490 s[j+n] = a1 * (icFloatNumber)sin(a2);
1491 }
1492 return true;
1493 }
CIccFloatVector * pStack
Definition IccMpeCalc.h:275
float icFloatNumber
Definition IccDefs.h:101
#define icPiNum
Definition IccUtil.h:85
union SIccCalcOp::@1 data

References SIccOpState::pStack.

◆ IsValid()

virtual bool IIccOpDef::IsValid ( CIccMpeCalculator pCalc,
SIccCalcOp op 
)
inlinevirtualinherited

Reimplemented in CIccOpDefInvalid.

302{ return op.IsValidOp(pCalc); }
static bool IsValidOp(icSigCalcOp sig)
Definition IccMpeCalc.cpp:2073

References SIccCalcOp::IsValidOp().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: