#include <opfeathr.h>
Inheritance diagram for RegenerateFeatherContourAction:
Public Member Functions | |
RegenerateFeatherContourAction () | |
~RegenerateFeatherContourAction () | |
virtual ActionCode | Execute () |
This is a pure virtual method which should be redefined for all derived classes of Action. | |
Static Public Member Functions | |
static ActionCode | Init (Operation *pOp, ActionList *pActionList, FeatherAttrValue *pThisFeatherCompound, Path *OldContour, RegenerateFeatherContourAction **NewAction) |
Protected Attributes | |
FeatherAttrValue * | m_pFeather |
Path * | m_pContour |
Definition at line 502 of file opfeathr.h.
|
Definition at line 2314 of file opfeathr.cpp. 02315 { 02316 m_pFeather = NULL; 02317 m_pContour = NULL; 02318 }
|
|
Definition at line 2320 of file opfeathr.cpp. 02321 { 02322 // must free path on document deletion when actions slaughtered 02323 if (m_pContour) 02324 { 02325 delete m_pContour; 02326 } 02327 }
|
|
This is a pure virtual method which should be redefined for all derived classes of Action.
Reimplemented from Action. Definition at line 2338 of file opfeathr.cpp. 02339 { 02340 ActionCode Act = AC_FAIL; 02341 RegenerateFeatherContourAction* pAction; 02342 02343 // First time an instance of this Action is executed is when called during and 02344 // UndoList->ExecuteBackwards inside an OpUndo invoked OpHist->GetTail()->Undo (where 02345 // the tail OpHist item is an OpChangeFeatherProfile. SHEW! 02346 // However may also be called by a Redo as we are about to stick an instance into the 02347 // Redo list 02348 Path* UndoPath = m_pFeather->GetOuterContour(); 02349 m_pFeather->SetOuterContour(m_pContour); 02350 m_pContour = NULL; // prevent ~RegenerateFeatherContourAction from deleting path 02351 02352 Act = RegenerateFeatherContourAction::Init( pOperation, 02353 pOppositeActLst, 02354 m_pFeather, 02355 UndoPath, 02356 &pAction ); 02357 02358 if (ChangeFeatherProfileOpDesc::m_BiasGainGadget.IsDialogOpen()) 02359 { 02360 // only way I can think of to get the profile dialog to reinialise itself is 02361 // to fake a OnSelChangingMsg message .... 02362 02363 BROADCAST_TO_ALL(SelChangingMsg(SelChangingMsg::SELECTIONCHANGED, FALSE)); 02364 } 02365 02366 return Act; 02367 }
|
|
Definition at line 2389 of file opfeathr.cpp. 02394 { 02395 UINT32 ActSize = sizeof(RegenerateFeatherContourAction); 02396 02397 ActionCode Ac = Action::Init(pOp,pActionList,ActSize,CC_RUNTIME_CLASS(RegenerateFeatherContourAction),(Action**)ppNewAction); 02398 02399 if (Ac != AC_FAIL && *ppNewAction!=NULL) 02400 { 02401 (*ppNewAction)->m_pFeather = pFeather; 02402 (*ppNewAction)->m_pContour = pFeatherContour; 02403 } 02404 02405 return Ac; 02406 }
|
|
Definition at line 518 of file opfeathr.h. |
|
Definition at line 517 of file opfeathr.h. |