RegenerateFeatherContourAction Class Reference

#include <opfeathr.h>

Inheritance diagram for RegenerateFeatherContourAction:

Action ListItem CCObject SimpleCCObject List of all members.

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

FeatherAttrValuem_pFeather
Pathm_pContour

Detailed Description

Definition at line 502 of file opfeathr.h.


Constructor & Destructor Documentation

RegenerateFeatherContourAction::RegenerateFeatherContourAction  ) 
 

Definition at line 2314 of file opfeathr.cpp.

02315 {
02316     m_pFeather = NULL;
02317     m_pContour = NULL;
02318 }

RegenerateFeatherContourAction::~RegenerateFeatherContourAction  ) 
 

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 }


Member Function Documentation

ActionCode RegenerateFeatherContourAction::Execute  )  [virtual]
 

This is a pure virtual method which should be redefined for all derived classes of Action.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/8/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: If this method is ever called then an ENSURE failure will occur.

See also:
-

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 }

ActionCode RegenerateFeatherContourAction::Init Operation pOp,
ActionList pActionList,
FeatherAttrValue pThisFeatherCompound,
Path OldContour,
RegenerateFeatherContourAction **  NewAction
[static]
 

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 }


Member Data Documentation

Path* RegenerateFeatherContourAction::m_pContour [protected]
 

Definition at line 518 of file opfeathr.h.

FeatherAttrValue* RegenerateFeatherContourAction::m_pFeather [protected]
 

Definition at line 517 of file opfeathr.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:00:25 2007 for Camelot by  doxygen 1.4.4