#include <fillramp.h>
Inheritance diagram for RampItem:
Public Member Functions | |
RampItem () | |
Constructors for ramp items. | |
RampItem (float pos) | |
RampItem (const RampItem &other) | |
void | SetPosition (float pos) |
Set the position in the ramp for this colour. | |
void | SetSelState (BOOL selstate) |
Set the state of the selection flag in this colour ramp item. | |
float | GetPosition () const |
BOOL | GetSelState () const |
BOOL | IsSelected () const |
virtual BOOL | IsAColourRampItem () const |
virtual BOOL | IsATranspRampItem () const |
Protected Attributes | |
float | Position |
BOOL | Selected |
Private Member Functions | |
CC_DECLARE_DYNCREATE (RampItem) | |
void | ClampPosition () |
Make sure the position field is in range. |
Definition at line 132 of file fillramp.h.
|
Constructors for ramp items.
Definition at line 141 of file fillramp.cpp.
|
|
Definition at line 147 of file fillramp.cpp. 00148 { 00149 Position=pos; 00150 Selected=FALSE; 00151 ClampPosition(); 00152 }
|
|
Definition at line 154 of file fillramp.cpp. 00155 { 00156 Position=other.GetPosition(); 00157 Selected=other.GetSelState(); 00158 }
|
|
|
|
Make sure the position field is in range.
Definition at line 171 of file fillramp.cpp.
|
|
Definition at line 144 of file fillramp.h. 00144 { return Position; }
|
|
Definition at line 145 of file fillramp.h. 00145 { return Selected; }
|
|
Reimplemented in ColRampItem. Definition at line 148 of file fillramp.h. 00148 { return (FALSE); }
|
|
Reimplemented in TranspRampItem. Definition at line 149 of file fillramp.h. 00149 { return (FALSE); }
|
|
Definition at line 146 of file fillramp.h. 00146 { return Selected; }
|
|
Set the position in the ramp for this colour.
Definition at line 189 of file fillramp.cpp. 00190 { 00191 Position=pos; 00192 ClampPosition(); 00193 }
|
|
Set the state of the selection flag in this colour ramp item.
Definition at line 206 of file fillramp.cpp. 00207 { 00208 Selected=selstate; 00209 }
|
|
Definition at line 155 of file fillramp.h. |
|
Definition at line 156 of file fillramp.h. |