#include <fillattr2.h>
Inheritance diagram for AttrColFillRampChange:
Public Member Functions | |
AttrColFillRampChange () | |
A class to edit colour ramps. | |
virtual UINT32 | GetAttrNameID (void) |
Returns a string resource ID describing the attribute. | |
virtual AttrFillGeometry * | MutateFill (AttrFillGeometry *FillToMutate) |
Changes the colours in a fill ramp. FillToMutate contains all the info necessary to do the edit. | |
virtual AttributeValue * | GetAttributeValue () |
virtual CCRuntimeClass * | GetAttributeType () |
Determines the scope of the value change. | |
void | InitForColourAdd (DocColour *pColour, float pos) |
All the init functions to set this AttrColFillRampChange object. | |
void | InitForColourEdit (UINT32 i, DocColour *pColour) |
void | InitForSelEdit (DocColour *pColour) |
RampEdit | GetAction () const |
UINT32 | GetIndex () const |
float | GetPosition () const |
Protected Attributes | |
RampEdit | action |
UINT32 | index |
float | position |
FlatFillAttribute | Value |
Definition at line 483 of file fillattr2.h.
|
A class to edit colour ramps.
Definition at line 4535 of file fillattr.cpp. 04536 { 04537 action = ACT_DONOTHING; 04538 index = FILLRAMP_ILLEGALINDEX; 04539 position = 0.0f; 04540 }
|
|
Definition at line 503 of file fillattr2.h. 00503 { return action; }
|
|
Determines the scope of the value change.
Reimplemented from AttrValueChange. Definition at line 494 of file fillattr2.h. 00494 { return CC_RUNTIME_CLASS(AttrFillGeometry); }
|
|
Implements AttrValueChange. Definition at line 493 of file fillattr2.h. 00493 { return &Value; }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from AttrValueChange. Definition at line 4590 of file fillattr.cpp. 04591 { 04592 return (_R(IDS_FILLRAMP_COLOURCHANGE)); 04593 }
|
|
Definition at line 504 of file fillattr2.h. 00504 { return index; }
|
|
Definition at line 505 of file fillattr2.h. 00505 { return position; }
|
|
All the init functions to set this AttrColFillRampChange object.
Definition at line 4557 of file fillattr.cpp. 04558 { 04559 action = ACT_CREATENEWCOL; 04560 position = pos; 04561 Value.SetStartColour(pColour); 04562 }
|
|
Definition at line 4564 of file fillattr.cpp. 04565 { 04566 action = ACT_EDITCOLOFITEM; 04567 index = i; 04568 Value.SetStartColour(pColour); 04569 }
|
|
Definition at line 4571 of file fillattr.cpp. 04572 { 04573 action = ACT_EDITCOLOFSELECTED; 04574 index = FILLRAMP_ILLEGALINDEX; 04575 Value.SetStartColour(pColour); 04576 }
|
|
Changes the colours in a fill ramp. FillToMutate contains all the info necessary to do the edit.
Reimplemented from AttrValueChange. Definition at line 4609 of file fillattr.cpp. 04610 { 04611 #if !defined(EXCLUDE_FROM_RALPH) 04612 if (FillToMutate->IsVisible() && 04613 FillToMutate->GetSelectionCount() == 0 && 04614 SelectionCount > 0) 04615 return NULL; 04616 04617 // Make a copy of this Fill to change 04618 AttrFillGeometry* NewFill = (AttrFillGeometry*)FillToMutate->SimpleCopy(); 04619 if (NewFill == NULL) 04620 return NULL; 04621 04622 // do the actual editing here 04623 BOOL Changed = NewFill->EditColourFillRamp(this); 04624 04625 // Did we change any colours ? 04626 if (!Changed) 04627 { 04628 delete NewFill; 04629 return NULL; 04630 } 04631 // Return the Mutated Fill 04632 return NewFill; 04633 #else 04634 return NULL; 04635 #endif 04636 }
|
|
Definition at line 508 of file fillattr2.h. |
|
Definition at line 509 of file fillattr2.h. |
|
Definition at line 510 of file fillattr2.h. |
|
Definition at line 512 of file fillattr2.h. |