PaletteWheel Class Reference

#include <colorpicker.h>

Inherits BC_SubWindow.

Collaboration diagram for PaletteWheel:

Collaboration graph
[legend]

Public Member Functions

 PaletteWheel (ColorWindow *window, int x, int y)
 ~PaletteWheel ()
int button_press_event ()
int cursor_motion_event ()
int button_release_event ()
int create_objects ()
int draw (float hue, float saturation)
int get_angle (float x1, float y1, float x2, float y2)
float torads (float angle)

Data Fields

ColorWindowwindow
float oldhue
float oldsaturation
int button_down

Detailed Description

Definition at line 77 of file colorpicker.h.


Constructor & Destructor Documentation

PaletteWheel::PaletteWheel ( ColorWindow window,
int  x,
int  y 
)

Definition at line 280 of file colorpicker.C.

References button_down, oldhue, and oldsaturation.

PaletteWheel::~PaletteWheel (  ) 

Definition at line 288 of file colorpicker.C.


Member Function Documentation

int PaletteWheel::button_press_event (  )  [virtual]

int PaletteWheel::cursor_motion_event (  )  [virtual]

int PaletteWheel::button_release_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 326 of file colorpicker.C.

References button_down.

int PaletteWheel::create_objects (  ) 

int PaletteWheel::draw ( float  hue,
float  saturation 
)

int PaletteWheel::get_angle ( float  x1,
float  y1,
float  x2,
float  y2 
)

Definition at line 470 of file colorpicker.C.

References M_PI.

Referenced by create_objects(), and cursor_motion_event().

float PaletteWheel::torads ( float  angle  ) 

Definition at line 403 of file colorpicker.C.

References M_PI.

Referenced by draw().


Field Documentation

Definition at line 90 of file colorpicker.h.

Referenced by create_objects(), and cursor_motion_event().

Definition at line 91 of file colorpicker.h.

Referenced by create_objects(), PaletteWheel(), and ColorWindow::update_display().

Definition at line 92 of file colorpicker.h.

Referenced by create_objects(), PaletteWheel(), and ColorWindow::update_display().

Reimplemented from BC_WindowBase.

Definition at line 93 of file colorpicker.h.

Referenced by button_press_event(), button_release_event(), cursor_motion_event(), and PaletteWheel().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:34:35 2008 for Cinelerra by  doxygen 1.5.5