#include <fillattr2.h>
Inheritance diagram for AttrTranspFillMapping:
Public Member Functions | |
AttrTranspFillMapping () | |
AttrTranspFillMapping (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 2824 of file fillattr2.h.
|
Definition at line 2829 of file fillattr2.h.
|
|
Definition at line 2830 of file fillattr2.h. 02835 : 02836 NodeAttribute (ContextNode, Direction, Locked, Mangled, Marked, Selected) {}
|
|
Reimplemented from NodeAttribute. Definition at line 2840 of file fillattr2.h. 02840 { return CC_RUNTIME_CLASS(AttrTranspFillMapping); }
|
|
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 19211 of file fillattr.cpp. 19212 { 19213 #if !defined(EXCLUDE_FROM_RALPH) 19214 ERROR3IF(IsMutate == NULL, "NULL flag pointer passed to GetOtherAttrToApply"); 19215 19216 // If the fill mapping is changing, then we must make sure that 19217 // any fractal tileable flags are updated 19218 19219 NodeAttribute* OtherAttr = new AttrFractalTileableChange; 19220 if (OtherAttr == NULL) 19221 return NULL; 19222 19223 ((AttrValueChange*)OtherAttr)->MutateTranspFills(TRUE); 19224 19225 INT32 Repeat = GetRepeat(); 19226 BOOL Tile; 19227 19228 switch (Repeat) 19229 { 19230 case RT_Simple: 19231 Tile = FALSE; 19232 break; 19233 19234 case RT_Repeating: 19235 Tile = TRUE; 19236 break; 19237 19238 case RT_RepeatInverted: 19239 Tile = FALSE; 19240 break; 19241 19242 default: 19243 Tile = TRUE; 19244 break; 19245 } 19246 19247 ((AttrValueChange*)OtherAttr)->SetTileable(Tile); 19248 19249 *IsMutate = TRUE; 19250 19251 return OtherAttr; 19252 #else 19253 return NULL; 19254 #endif 19255 }
|
|
Definition at line 2843 of file fillattr2.h. 02843 { return ((TranspFillMappingAttribute*)GetAttributeValue())->Repeat; }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 19190 of file fillattr.cpp. 19191 { 19192 ERROR3IF(!Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrTranspFillMapping)), 19193 "Trying to compare two objects with different types"); 19194 19195 return (GetRepeat() == ((AttrTranspFillMapping*)&Attrib)->GetRepeat()); 19196 }
|
|
Definition at line 2842 of file fillattr2.h. 02842 { ((TranspFillMappingAttribute*)GetAttributeValue())->Repeat = Rep; }
|