#include <blndtool.h>
Inheritance diagram for RemapBlendAction:
Public Member Functions | |
RemapBlendAction () | |
Constructor for the action. | |
~RemapBlendAction () | |
virtual ActionCode | Execute () |
Executes the action. This remaps the blend node using the inverse mapping indexes it was initialised with, creating another RemapBlendAction to invert this mapping. | |
Static Public Member Functions | |
static ActionCode | Init (Operation *pOp, ActionList *pActionList, NodeBlend *pNodeBlend, UINT32 RemapRef, DocCoord PosStart, DocCoord PosEnd, RemapBlendAction **NewAction) |
This is the function which creates an instance of this action. If there is no room in the undo buffer (which is determined by the base class Init function called within) the function will either return AC_NO_RECORD which means the operation can continue, but no undo information needs to be stored, or AC_OK which means the operation should continue AND record undo information. If the function returns AC_FAIL, there was not enough memory to record the undo information, and the user has decided not to continue with the operation. | |
Protected Attributes | |
NodeBlend * | pNodeBlend |
UINT32 | RemapRef |
DocCoord | InvPosStart |
DocCoord | InvPosEnd |
Definition at line 726 of file blndtool.h.
|
Constructor for the action.
Definition at line 6945 of file blndtool.cpp. 06946 { 06947 pNodeBlend = NULL; 06948 RemapRef = 0; 06949 }
|
|
Definition at line 7055 of file blndtool.cpp.
|
|
Executes the action. This remaps the blend node using the inverse mapping indexes it was initialised with, creating another RemapBlendAction to invert this mapping.
Reimplemented from Action. Definition at line 7040 of file blndtool.cpp. 07041 { 07042 ActionCode Act; 07043 RemapBlendAction* pAction; 07044 Act = RemapBlendAction::Init( pOperation, 07045 pOppositeActLst, 07046 pNodeBlend, 07047 RemapRef, 07048 InvPosStart, 07049 InvPosEnd, 07050 &pAction); 07051 07052 return Act; 07053 }
|
|
This is the function which creates an instance of this action. If there is no room in the undo buffer (which is determined by the base class Init function called within) the function will either return AC_NO_RECORD which means the operation can continue, but no undo information needs to be stored, or AC_OK which means the operation should continue AND record undo information. If the function returns AC_FAIL, there was not enough memory to record the undo information, and the user has decided not to continue with the operation.
Definition at line 6990 of file blndtool.cpp. 06997 { 06998 UINT32 ActSize = sizeof(RemapBlendAction); 06999 07000 ActionCode Ac = Action::Init(pOp,pActionList,ActSize,CC_RUNTIME_CLASS(RemapBlendAction),(Action**)ppNewAction); 07001 07002 if (Ac != AC_FAIL) 07003 { 07004 DocCoord InvPosStart,InvPosEnd; 07005 07006 if (pNodeBlend->Remap(RemapRef,PosStart,PosEnd,&InvPosStart,&InvPosEnd)) 07007 { 07008 (*ppNewAction)->pNodeBlend = pNodeBlend; 07009 (*ppNewAction)->RemapRef = RemapRef; 07010 (*ppNewAction)->InvPosStart = InvPosStart; 07011 (*ppNewAction)->InvPosEnd = InvPosEnd; 07012 } 07013 else 07014 { 07015 ERROR3("pNodeBlend->Remap() failed"); 07016 Ac = AC_FAIL; 07017 } 07018 } 07019 07020 return Ac; 07021 }
|
|
Definition at line 746 of file blndtool.h. |
|
Definition at line 745 of file blndtool.h. |
|
Definition at line 743 of file blndtool.h. |
|
Definition at line 744 of file blndtool.h. |