GetIncomingOperation
Get the operation that is using this object as its output
OperationBase & GetIncomingOperation( BOOL bDirect, int & nOuputIndex )
a valid operation wrapper that represent the internal operation object
EX1
// Example requires a graph on which some operation object analyses have been preformed. // The code lists all the analyses #include <Operation.h> void OriginObject_GetIncomingOperation_Ex1() { GraphLayer gl = Project.ActiveLayer(); if(gl) { printf("Operation\tIndex\tDescription\tFit Y[0]\n"); foreach(DataPlot dp in gl.DataPlots) { int nIndex = false; double y1 = -500;// just some value to show not found, could have used NANUM OperationBase& op = dp.GetIncomingOperation(false, nIndex); if(op) { string strClassName = op.GetClassName(); Tree trOp; op.GetTree(trOp); vector vx, vy; if(op.GetFitCurve(trOp, vx, vy, nIndex)) { for(int ii = 0 ; ii < vy.GetSize() ; ii++ ) { y1 = vy[ii]; printf("%s\t%d\t%s\t%f\n", strClassName, nIndex, op.GetDescription(ii), y1); } } } } } }
OriginObject::FindIncomingOperations OriginObject::FindOutgoingOperations
origin.h