AttrFlatFill Class Reference

Flat Fill colour Attribute class. More...

#include <fillattr.h>

Inheritance diagram for AttrFlatFill:

AttrFillGeometry NodeAttribute NodeRenderable Node CCObject SimpleCCObject AttrFlatColourFill AttrFlatTranspFill List of all members.

Public Member Functions

 AttrFlatFill ()
 Constructs a Flat Fill.
 AttrFlatFill (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE)
virtual BOOL OnClick (DocCoord, ClickType, ClickModifiers, Spread *)
 Allows the fill to respond to clicks by selecting its blobs or starting drags etc.
virtual DocRect GetBlobBoundingRect ()
 Calculates the bounding rectangle of the nodes blobs.This should always be calculated on the fly as the view scale can change without the node knowing, giving an incorrect result.
virtual BOOL ChangeControlColour (AttrColourChange *)
 Applies a colour to selected Fill Control Points.
virtual BOOL ChangeControlTransp (AttrTranspChange *)
 Applies a colour to selected Fill Control Points.
virtual void ToggleSelection (FillControl Blob)
 Toggle the selection of a Fill Control Point.
virtual void SelectBlob (FillControl Blob)
 Selects a Fill Control Point.
virtual FillControl TestColourDrop (AttrColourDrop *)
 Check to see which colour will be changed if dropped at this point.
virtual BOOL IsAFlatFill () const
 Virtual function for determining if the node is an attribute.

Protected Member Functions

virtual void ValidateAttributeValue ()
 Makes sure the Coords of the Fill are sensible.

Detailed Description

Flat Fill colour Attribute class.

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

Definition at line 618 of file fillattr.h.


Constructor & Destructor Documentation

AttrFlatFill::AttrFlatFill  ) 
 

Constructs a Flat Fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/07/94

Definition at line 5763 of file fillattr.cpp.

05764 {
05765 }

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

Definition at line 624 of file fillattr.h.

00629                                      : 
00630         AttrFillGeometry(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}


Member Function Documentation

virtual BOOL AttrFlatFill::ChangeControlColour AttrColourChange  )  [inline, virtual]
 

Applies a colour to selected Fill Control Points.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/9/94
Parameters:
NewColour,the colour that selected control points should change to. [INPUTS]
Returns:
TRUE if a control point was selected, and the colour applied.
See also:
AttrFillGeometry::Mutate

Reimplemented from AttrFillGeometry.

Definition at line 637 of file fillattr.h.

00637 { return FALSE; }

virtual BOOL AttrFlatFill::ChangeControlTransp AttrTranspChange  )  [inline, virtual]
 

Applies a colour to selected Fill Control Points.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/9/94
Parameters:
NewColour,the colour that selected control points should change to. [INPUTS]
Returns:
TRUE if a control point was selected, and the colour applied.
See also:
AttrFillGeometry::Mutate

Reimplemented from AttrFillGeometry.

Definition at line 638 of file fillattr.h.

00638 { return FALSE; }

DocRect AttrFlatFill::GetBlobBoundingRect  )  [virtual]
 

Calculates the bounding rectangle of the nodes blobs.This should always be calculated on the fly as the view scale can change without the node knowing, giving an incorrect result.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/7/94
Returns:
DocRect - The rectangle that contains all the nodes selection blobs.

Reimplemented from AttrFillGeometry.

Definition at line 5780 of file fillattr.cpp.

05781 {
05782     // Flat fills have bo bounds
05783     DocRect BoundingRect(0,0,0,0);
05784 
05785     // and return it
05786     return BoundingRect;
05787 }

virtual BOOL AttrFlatFill::IsAFlatFill  )  const [inline, virtual]
 

Virtual function for determining if the node is an attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/2/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if the node is a NodeAttribute, will return TRUE

Errors:

Reimplemented from NodeAttribute.

Definition at line 645 of file fillattr.h.

00645 { return TRUE; } 

virtual BOOL AttrFlatFill::OnClick DocCoord  ,
ClickType  ,
ClickModifiers  ,
Spread
[inline, virtual]
 

Allows the fill to respond to clicks by selecting its blobs or starting drags etc.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
22/7/94
Parameters:
PointerPos - The Location of the mouse pointer at the time of the click [INPUTS] Click - The type of click received (single, double, drag etc) ClickMods - The modifiers to the click (eg shift, control etc )
Returns:
BOOL - TRUE if the fill claims the click as its own and FALSE if it is not interested in the click
*pNode = */NodeRenderableInkFindSimpleAtPointForColourPicker (pSpread, PointerPos, Pix, NULL, NULL);

Reimplemented from AttrFillGeometry.

Definition at line 633 of file fillattr.h.

00633 { return FALSE; }

virtual void AttrFlatFill::SelectBlob FillControl  Blob  )  [inline, virtual]
 

Selects a Fill Control Point.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/07/94
Parameters:
HitControl,the FillControl that is to be selected. [INPUTS]
See also:
AttrFillGeometry::DeselectBlob; AttrFillGeometry::ToggleSelection; FillControl;

Reimplemented from AttrFillGeometry.

Definition at line 641 of file fillattr.h.

00641 { DeselectBlob(Blob); } 

FillControl AttrFlatFill::TestColourDrop AttrColourDrop ColDrop  )  [virtual]
 

Check to see which colour will be changed if dropped at this point.

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

Reimplemented from AttrFillGeometry.

Definition at line 5321 of file fillattr.cpp.

05322 { 
05323     return FILLCONTROL_NULL;
05324 }

virtual void AttrFlatFill::ToggleSelection FillControl  Blob  )  [inline, virtual]
 

Toggle the selection of a Fill Control Point.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
26/07/94
Parameters:
HitControl,the FillControl who's state is to be toggled. [INPUTS]
See also:
AttrFillGeometry::SelectBlob; AttrFillGeometry::DeselectBlob; FillControl;

Reimplemented from AttrFillGeometry.

Definition at line 640 of file fillattr.h.

00640 { DeselectBlob(Blob); } 

void AttrFlatFill::ValidateAttributeValue  )  [protected, virtual]
 

Makes sure the Coords of the Fill are sensible.

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

Reimplemented from AttrFillGeometry.

Definition at line 5799 of file fillattr.cpp.

05800 {
05801 }


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