TranspRampItem Class Reference

Defines a single entry in a transparency ramp. An entry is simply made up of a single long definition. More...

#include <fillramp.h>

Inheritance diagram for TranspRampItem:

RampItem ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 TranspRampItem ()
 Various constructors for the transparency ramp item class.
 TranspRampItem (float pos, UINT32 transp)
 TranspRampItem (const TranspRampItem &other)
void SetTransparency (UINT32 transp)
 used to set the colour of this ramp entry
UINT32 GetTransparency () const
UINT32GetTranspAddr ()
INT32 operator== (const TranspRampItem &other) const
 Check for ColRampItem equality. Do we get this as an internal function?
virtual BOOL IsATranspRampItem () const

Private Member Functions

 CC_DECLARE_DYNCREATE (TranspRampItem)

Private Attributes

UINT32 Transparency

Detailed Description

Defines a single entry in a transparency ramp. An entry is simply made up of a single long definition.

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

Definition at line 204 of file fillramp.h.


Constructor & Destructor Documentation

TranspRampItem::TranspRampItem  ) 
 

Various constructors for the transparency ramp item class.

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

Definition at line 286 of file fillramp.cpp.

00287 {
00288 }

TranspRampItem::TranspRampItem float  pos,
UINT32  transp
 

Definition at line 290 of file fillramp.cpp.

00290                                                        : RampItem(pos)
00291 {
00292     Transparency=transp;
00293 }

TranspRampItem::TranspRampItem const TranspRampItem other  ) 
 

Definition at line 295 of file fillramp.cpp.

00295                                                             : RampItem(other)
00296 {
00297     Transparency=other.GetTransparency();
00298 }


Member Function Documentation

TranspRampItem::CC_DECLARE_DYNCREATE TranspRampItem   )  [private]
 

UINT32* TranspRampItem::GetTranspAddr  )  [inline]
 

Definition at line 215 of file fillramp.h.

00215 { return &Transparency; }

UINT32 TranspRampItem::GetTransparency  )  const [inline]
 

Definition at line 214 of file fillramp.h.

00214 { return Transparency; }

virtual BOOL TranspRampItem::IsATranspRampItem  )  const [inline, virtual]
 

Reimplemented from RampItem.

Definition at line 219 of file fillramp.h.

00219 { return (TRUE); }

INT32 TranspRampItem::operator== const TranspRampItem 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 331 of file fillramp.cpp.

00332 {
00333     return (    (Position     == other.GetPosition()) && 
00334                 (Transparency == other.GetTransparency()) &&
00335                 (Selected     == other.GetSelState())
00336            );
00337 }

void TranspRampItem::SetTransparency UINT32  transp  ) 
 

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 312 of file fillramp.cpp.

00313 {
00314     Transparency=transp;
00315 }


Member Data Documentation

UINT32 TranspRampItem::Transparency [private]
 

Definition at line 222 of file fillramp.h.


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