#include <fillattr2.h>
Inheritance diagram for AttrFillMapping:
Public Member Functions | |
AttrFillMapping () | |
AttrFillMapping (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
virtual INT32 | operator== (const NodeAttribute &NodeAttrib) |
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
virtual CCRuntimeClass * | GetAttributeType () |
virtual void | SetRepeat (INT32 Rep) |
virtual INT32 | GetRepeat () |
virtual NodeAttribute * | GetOtherAttrToApply (BOOL *IsMutate) |
Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute to apply. |
Definition at line 2525 of file fillattr2.h.
|
Definition at line 2530 of file fillattr2.h.
|
|
Definition at line 2531 of file fillattr2.h. 02536 : 02537 NodeAttribute (ContextNode, Direction, Locked, Mangled, Marked, Selected) {}
|
|
Reimplemented from NodeAttribute. Definition at line 2541 of file fillattr2.h. 02541 { return CC_RUNTIME_CLASS(AttrFillMapping); }
|
|
Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute to apply.
Reimplemented from NodeAttribute. Definition at line 18232 of file fillattr.cpp. 18233 { 18234 #if !defined(EXCLUDE_FROM_RALPH) 18235 ERROR3IF(IsMutate == NULL, "NULL flag pointer passed to GetOtherAttrToApply"); 18236 18237 // If the fill mapping is changing, then we must make sure that 18238 // any fractal tileable flags are updated 18239 18240 NodeAttribute* OtherAttr = new AttrFractalTileableChange; 18241 if (OtherAttr == NULL) 18242 return NULL; 18243 18244 ((AttrValueChange*)OtherAttr)->MutateColourFills(TRUE); 18245 18246 INT32 Repeat = GetRepeat(); 18247 BOOL Tile; 18248 18249 switch (Repeat) 18250 { 18251 case RT_Simple: 18252 Tile = FALSE; 18253 break; 18254 18255 case RT_Repeating: 18256 Tile = TRUE; 18257 break; 18258 18259 case RT_RepeatInverted: 18260 Tile = FALSE; 18261 break; 18262 18263 default: 18264 Tile = TRUE; 18265 break; 18266 } 18267 18268 ((AttrValueChange*)OtherAttr)->SetTileable(Tile); 18269 18270 *IsMutate = TRUE; 18271 18272 return OtherAttr; 18273 #else 18274 return NULL; 18275 #endif 18276 }
|
|
Definition at line 2544 of file fillattr2.h. 02544 { return ((FillMappingAttribute*)GetAttributeValue())->Repeat; }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 18211 of file fillattr.cpp. 18212 { 18213 ERROR3IF(!Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrFillMapping)), 18214 "Trying to compare two objects with different types"); 18215 18216 return (GetRepeat() == ((AttrFillMapping*)&Attrib)->GetRepeat()); 18217 }
|
|
Definition at line 2543 of file fillattr2.h. 02543 { ((FillMappingAttribute*)GetAttributeValue())->Repeat = Rep; }
|