ColRampItem Class Reference

Defines a single entry in a colour ramp. An entry is simply made up of a single doc colour definition. More...

#include <fillramp.h>

Inheritance diagram for ColRampItem:

RampItem ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ColRampItem ()
 A instance of a single colour ramp entry.
 ColRampItem (float pos, DocColour *pCol)
 ColRampItem (const ColRampItem &other)
void SetColour (DocColour *pCol)
 used to set the colour of this ramp entry
DocColour GetColour () const
DocColourGetColourAddr ()
INT32 operator== (const ColRampItem &other) const
 Check for ColRampItem equality. Do we get this as an internal function?
virtual BOOL IsAColourRampItem () const

Private Member Functions

 CC_DECLARE_DYNCREATE (ColRampItem)

Private Attributes

DocColour Colour

Detailed Description

Defines a single entry in a colour ramp. An entry is simply made up of a single doc colour definition.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
05/02/97

Definition at line 171 of file fillramp.h.


Constructor & Destructor Documentation

ColRampItem::ColRampItem  ) 
 

A instance of a single colour ramp entry.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/2/97

Definition at line 221 of file fillramp.cpp.

00222 {
00223 }

ColRampItem::ColRampItem float  pos,
DocColour pCol
 

Definition at line 225 of file fillramp.cpp.

00225                                                    : RampItem(pos)
00226 {
00227     Colour=(*pCol);
00228 }

ColRampItem::ColRampItem const ColRampItem other  ) 
 

Definition at line 230 of file fillramp.cpp.

00230                                                  : RampItem(other)
00231 {
00232     Colour=other.GetColour();
00233 }


Member Function Documentation

ColRampItem::CC_DECLARE_DYNCREATE ColRampItem   )  [private]
 

DocColour ColRampItem::GetColour  )  const [inline]
 

Definition at line 181 of file fillramp.h.

00181 { return Colour; }

DocColour* ColRampItem::GetColourAddr  )  [inline]
 

Definition at line 182 of file fillramp.h.

00182 { return &Colour; }

virtual BOOL ColRampItem::IsAColourRampItem  )  const [inline, virtual]
 

Reimplemented from RampItem.

Definition at line 186 of file fillramp.h.

00186 { return (TRUE); }

INT32 ColRampItem::operator== const ColRampItem other  )  const
 

Check for ColRampItem equality. Do we get this as an internal function?

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/2/97
Parameters:
other = the item to check this against [INPUTS]
Returns:
TRUE if this item is equivalent to other. FALSE if not

Definition at line 266 of file fillramp.cpp.

00267 {
00268     return (    (Position == other.GetPosition()) && 
00269                 (Colour   == other.GetColour()) &&
00270                 (Selected == other.GetSelState())
00271            );
00272 }

void ColRampItem::SetColour DocColour pCol  ) 
 

used to set the colour of this ramp entry

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/2/97
Parameters:
col = a document colour [INPUTS]

Definition at line 247 of file fillramp.cpp.

00248 {
00249     Colour=(*pCol);
00250 }


Member Data Documentation

DocColour ColRampItem::Colour [private]
 

Definition at line 189 of file fillramp.h.


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