AttrColourDrop Class Reference

'Drop a colour on an object' Attribute class. This Attribute never exists in the Tree. It is used for changing the colours of an existing Fill Geometry. More...

#include <fillattr2.h>

Inheritance diagram for AttrColourDrop:

AttrColourChange AttrValueChange AttrFillGeometry NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

Public Member Functions

 AttrColourDrop ()
 AttrColourDrop (DocCoord &, DocRect &, DocColour)
virtual UINT32 GetAttrNameID (void)
 Returns a string resource ID describing the attribute.
virtual AttrFillGeometryMutateFill (AttrFillGeometry *FillToMutate)
 Changes the colour of a fill.
virtual BOOL EffectsParentBounds ()
 When creating a new multi-stage fill blob that is outside the shapes geometry, we need to invalidate not only the shape; but its bounds as well; otherwise we encounter redraw problems.
void SetDropPoint (DocCoord &)
 Set the drop point for this colour drop.
void SetObjectBounds (DocRect &)
 Set the object bounds for this colour drop.
void SetObjectDroppedOn (NodeRenderableInk *)
 Set the object that the colour was dropped on.
NodeRenderableInkGetObjectDroppedOn ()
 Get the object that the colour was dropped on.
DocCoordGetDropPoint ()
DocRectGetObjectBounds ()
BOOL IsObjectSelected ()
 Get the selection state of the object that the colour was dropped on.

Protected Attributes

DocCoord DropPos
DocRect Bounds
NodeRenderableInkObjectHit
AttrFillGeometryFillHit
FillControl ControlHit
BOOL ObjectIsSelected

Detailed Description

'Drop a colour on an object' Attribute class. This Attribute never exists in the Tree. It is used for changing the colours of an existing Fill Geometry.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
8/8/94
See also:
AttrFillGeometry

Definition at line 154 of file fillattr2.h.


Constructor & Destructor Documentation

AttrColourDrop::AttrColourDrop  )  [inline]
 

Definition at line 159 of file fillattr2.h.

00159 : AttrColourChange() {}

AttrColourDrop::AttrColourDrop DocCoord ,
DocRect ,
DocColour 
 

Definition at line 4759 of file fillattr.cpp.

04761 {
04762 #if !defined(EXCLUDE_FROM_RALPH)
04763     SetDropPoint(DropPoint);
04764     SetObjectBounds(ObjectBounds);
04765     SetStartColour(&NewColour);
04766 
04767     ObjectHit = NULL;
04768     FillHit = NULL;
04769     ControlHit = FILLCONTROL_NULL;
04770 
04771     ObjectIsSelected = FALSE;
04772 #endif
04773 }


Member Function Documentation

BOOL AttrColourDrop::EffectsParentBounds  )  [virtual]
 

When creating a new multi-stage fill blob that is outside the shapes geometry, we need to invalidate not only the shape; but its bounds as well; otherwise we encounter redraw problems.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/4/2000
Parameters:
- [INPUTS]

Reimplemented from NodeAttribute.

Definition at line 4901 of file fillattr.cpp.

04902 {
04903     return (TRUE);
04904 }

UINT32 AttrColourDrop::GetAttrNameID void   )  [virtual]
 

Returns a string resource ID describing the attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/01/95
Returns:
Attribute description ID

Reimplemented from AttrColourChange.

Definition at line 4867 of file fillattr.cpp.

04868 {
04869     return (_R(IDS_COLOUR_CHANGE));
04870 }                                  

DocCoord& AttrColourDrop::GetDropPoint  )  [inline]
 

Definition at line 175 of file fillattr2.h.

00175 { return DropPos; }

DocRect& AttrColourDrop::GetObjectBounds  )  [inline]
 

Definition at line 176 of file fillattr2.h.

00176 { return Bounds; }

NodeRenderableInk * AttrColourDrop::GetObjectDroppedOn  ) 
 

Get the object that the colour was dropped on.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/2/95

Definition at line 4836 of file fillattr.cpp.

04837 {
04838     return ObjectHit;
04839 }

BOOL AttrColourDrop::IsObjectSelected  ) 
 

Get the selection state of the object that the colour was dropped on.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/2/95

Definition at line 4851 of file fillattr.cpp.

04852 {
04853     return (ObjectHit && ObjectIsSelected);
04854 }

AttrFillGeometry * AttrColourDrop::MutateFill AttrFillGeometry FillToMutate  )  [virtual]
 

Changes the colour of a fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/94
Parameters:
The fill that is to be changed. [INPUTS]

Reimplemented from AttrColourChange.

Definition at line 4883 of file fillattr.cpp.

04884 { 
04885     return FillToMutate->DoColourDrop(this);    
04886 }

void AttrColourDrop::SetDropPoint DocCoord DropPoint  ) 
 

Set the drop point for this colour drop.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/2/95

Definition at line 4785 of file fillattr.cpp.

04786 {
04787     DropPos = DropPoint;
04788 }

void AttrColourDrop::SetObjectBounds DocRect ObjectBounds  ) 
 

Set the object bounds for this colour drop.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/2/95

Definition at line 4800 of file fillattr.cpp.

04801 {
04802     Bounds = ObjectBounds;
04803 }

void AttrColourDrop::SetObjectDroppedOn NodeRenderableInk pObject  ) 
 

Set the object that the colour was dropped on.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/2/95

Definition at line 4815 of file fillattr.cpp.

04816 {
04817 #if !defined(EXCLUDE_FROM_RALPH)
04818     if (pObject)
04819     {
04820         ObjectHit = pObject;
04821         ObjectIsSelected = pObject->IsSelected();
04822     }
04823 #endif
04824 }


Member Data Documentation

DocRect AttrColourDrop::Bounds [protected]
 

Definition at line 182 of file fillattr2.h.

FillControl AttrColourDrop::ControlHit [protected]
 

Reimplemented from AttrFillGeometry.

Definition at line 186 of file fillattr2.h.

DocCoord AttrColourDrop::DropPos [protected]
 

Definition at line 181 of file fillattr2.h.

AttrFillGeometry* AttrColourDrop::FillHit [protected]
 

Reimplemented from AttrFillGeometry.

Definition at line 185 of file fillattr2.h.

NodeRenderableInk* AttrColourDrop::ObjectHit [protected]
 

Definition at line 184 of file fillattr2.h.

BOOL AttrColourDrop::ObjectIsSelected [protected]
 

Definition at line 188 of file fillattr2.h.


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