AttrTranspFillMapping Class Reference

Fill mapping Attribute class. More...

#include <fillattr2.h>

Inheritance diagram for AttrTranspFillMapping:

NodeAttribute NodeRenderable Node CCObject SimpleCCObject AttrTranspFillMappingLinear AttrTranspFillMappingSin List of all members.

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 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

Fill mapping Attribute class.

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

Definition at line 2824 of file fillattr2.h.


Constructor & Destructor Documentation

AttrTranspFillMapping::AttrTranspFillMapping  )  [inline]
 

Definition at line 2829 of file fillattr2.h.

02829 {}

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

Definition at line 2830 of file fillattr2.h.

02835                                      : 
02836         NodeAttribute (ContextNode, Direction, Locked, Mangled, Marked, Selected) {}


Member Function Documentation

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

Reimplemented from NodeAttribute.

Definition at line 2840 of file fillattr2.h.

NodeAttribute * AttrTranspFillMapping::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 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 }

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

Definition at line 2843 of file fillattr2.h.

02843 { return ((TranspFillMappingAttribute*)GetAttributeValue())->Repeat; }

INT32 AttrTranspFillMapping::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 AttrTranspFillMappingLinear [INPUTS]
Returns:
Usual semantics for equality.

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

See also:
NodeAttribute::operator==

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 }

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

Definition at line 2842 of file fillattr2.h.

02842 { ((TranspFillMappingAttribute*)GetAttributeValue())->Repeat = Rep; }


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