AttrFillMapping Class Reference

Fractal Transparency Fill Attribute class. Fill mapping Attribute class. More...

#include <fillattr2.h>

Inheritance diagram for AttrFillMapping:

NodeAttribute NodeRenderable Node CCObject SimpleCCObject AttrFillMappingLinear AttrFillMappingSin List of all members.

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 CCRuntimeClassGetAttributeType ()
virtual void SetRepeat (INT32 Rep)
virtual INT32 GetRepeat ()
virtual NodeAttributeGetOtherAttrToApply (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.

Detailed Description

Fractal Transparency Fill Attribute class. Fill mapping Attribute class.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/07/94
See also:
FillMappingAttribute

Definition at line 2525 of file fillattr2.h.


Constructor & Destructor Documentation

AttrFillMapping::AttrFillMapping  )  [inline]
 

Definition at line 2530 of file fillattr2.h.

02530 {}

AttrFillMapping::AttrFillMapping Node ContextNode,
AttachNodeDirection  Direction,
BOOL  Locked = FALSE,
BOOL  Mangled = FALSE,
BOOL  Marked = FALSE,
BOOL  Selected = FALSE
[inline]
 

Definition at line 2531 of file fillattr2.h.

02536                                      : 
02537         NodeAttribute (ContextNode, Direction, Locked, Mangled, Marked, Selected) {}


Member Function Documentation

virtual CCRuntimeClass* AttrFillMapping::GetAttributeType  )  [inline, virtual]
 

Reimplemented from NodeAttribute.

Definition at line 2541 of file fillattr2.h.

02541 { return CC_RUNTIME_CLASS(AttrFillMapping); }

NodeAttribute * AttrFillMapping::GetOtherAttrToApply BOOL *  IsMutate  )  [virtual]
 

Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute to apply.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
17/8/95
Returns:
The secondary attribute to apply, or NULL if none 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 }

virtual INT32 AttrFillMapping::GetRepeat  )  [inline, virtual]
 

Definition at line 2544 of file fillattr2.h.

02544 { return ((FillMappingAttribute*)GetAttributeValue())->Repeat; }

INT32 AttrFillMapping::operator== const NodeAttribute Attrib  )  [virtual]
 

A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Parameters:
Attrib - the attribute to compare, which must be an AttrFillMappingLinear [INPUTS]
Returns:
Usual semantics for equality.

Errors: An ERROR3IF failure will occur if Attrib does not have a AttrFillMappingLinear runtime class.

See also:
NodeAttribute::operator==

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 }

virtual void AttrFillMapping::SetRepeat INT32  Rep  )  [inline, virtual]
 

Definition at line 2543 of file fillattr2.h.

02543 { ((FillMappingAttribute*)GetAttributeValue())->Repeat = Rep; }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:50:18 2007 for Camelot by  doxygen 1.4.4