Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BC_Pan Class Reference

#include <bcpan.h>

Inheritance diagram for BC_Pan:

BC_SubWindow BC_WindowBase BC_RelocatableWidget List of all members.

Public Member Functions

 BC_Pan (int x, int y, int virtual_r, float maxvalue, int total_values, int *value_positions, int stick_x, int stick_y, float *values)
virtual ~BC_Pan ()
int initialize ()
int update (int x, int y)
int button_press_event ()
int cursor_motion_event ()
int button_release_event ()
int cursor_enter_event ()
int cursor_leave_event ()
int repeat_event (int64_t duration)
virtual int handle_event ()
int change_channels (int new_channels, int *value_positions)
int stick_to_values ()
int get_total_values ()
float get_value (int channel)
int get_stick_x ()
int get_stick_y ()
void set_images (VFrame **data)
int activate (int popup_x=-1, int popup_y=-1)
int deactivate ()
float * get_values ()

Static Public Member Functions

static int stick_to_values (float *values, int total_values, int *value_positions, int stick_x, int stick_y, int virtual_r, float maxvalue)
static void calculate_stick_position (int total_values, int *value_positions, float *values, float maxvalue, int virtual_r, int &stick_x, int &stick_y)
static int rdtoxy (int &x, int &y, int a, int virtual_r)

Private Member Functions

void draw ()
void draw_popup ()

Static Private Member Functions

static float distance (int x1, int x2, int y1, int y2)
static int get_channel_positions (int *value_x, int *value_y, int *value_positions, int virtual_r, int total_values)

Private Attributes

int virtual_r
float maxvalue
int total_values
int * value_positions
int stick_x
int stick_y
int x_origin
int y_origin
int stick_x_origin
int stick_y_origin
float * values
int highlighted
int * value_x
int * value_y
int active
BC_Pixmapimages [PAN_IMAGES]
VFrametemp_channel
RotateFramerotater
BC_Popuppopup

Detailed Description

Definition at line 27 of file bcpan.h.


Constructor & Destructor Documentation

BC_Pan::BC_Pan int  x,
int  y,
int  virtual_r,
float  maxvalue,
int  total_values,
int *  value_positions,
int  stick_x,
int  stick_y,
float *  values
 

Definition at line 15 of file bcpan.C.

BC_Pan::~BC_Pan  )  [virtual]
 

Definition at line 56 of file bcpan.C.


Member Function Documentation

int BC_Pan::activate int  popup_x = -1,
int  popup_y = -1
 

Definition at line 212 of file bcpan.C.

int BC_Pan::button_press_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 104 of file bcpan.C.

int BC_Pan::button_release_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 153 of file bcpan.C.

void BC_Pan::calculate_stick_position int  total_values,
int *  value_positions,
float *  values,
float  maxvalue,
int  virtual_r,
int &  stick_x,
int &  stick_y
[static]
 

Definition at line 519 of file bcpan.C.

int BC_Pan::change_channels int  new_channels,
int *  value_positions
 

Definition at line 444 of file bcpan.C.

int BC_Pan::cursor_enter_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 180 of file bcpan.C.

int BC_Pan::cursor_leave_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 191 of file bcpan.C.

int BC_Pan::cursor_motion_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 137 of file bcpan.C.

int BC_Pan::deactivate  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 204 of file bcpan.C.

float BC_Pan::distance int  x1,
int  x2,
int  y1,
int  y2
[static, private]
 

Definition at line 439 of file bcpan.C.

void BC_Pan::draw  )  [private]
 

Definition at line 318 of file bcpan.C.

void BC_Pan::draw_popup  )  [private]
 

Definition at line 274 of file bcpan.C.

int BC_Pan::get_channel_positions int *  value_x,
int *  value_y,
int *  value_positions,
int  virtual_r,
int  total_values
[static, private]
 

Definition at line 470 of file bcpan.C.

int BC_Pan::get_stick_x  ) 
 

Definition at line 493 of file bcpan.C.

int BC_Pan::get_stick_y  ) 
 

Definition at line 498 of file bcpan.C.

int BC_Pan::get_total_values  ) 
 

Definition at line 483 of file bcpan.C.

float BC_Pan::get_value int  channel  ) 
 

Definition at line 488 of file bcpan.C.

float * BC_Pan::get_values  ) 
 

Definition at line 503 of file bcpan.C.

virtual int BC_Pan::handle_event  )  [inline, virtual]
 

Definition at line 49 of file bcpan.h.

int BC_Pan::initialize  )  [virtual]
 

Reimplemented from BC_SubWindow.

Definition at line 77 of file bcpan.C.

int BC_Pan::rdtoxy int &  x,
int &  y,
int  a,
int  virtual_r
[static]
 

Definition at line 508 of file bcpan.C.

int BC_Pan::repeat_event int64_t  duration  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 165 of file bcpan.C.

void BC_Pan::set_images VFrame **  data  ) 
 

Definition at line 93 of file bcpan.C.

int BC_Pan::stick_to_values float *  values,
int  total_values,
int *  value_positions,
int  stick_x,
int  stick_y,
int  virtual_r,
float  maxvalue
[static]
 

Definition at line 379 of file bcpan.C.

int BC_Pan::stick_to_values  ) 
 

Definition at line 368 of file bcpan.C.

int BC_Pan::update int  x,
int  y
 

Definition at line 261 of file bcpan.C.


Member Data Documentation

int BC_Pan::active [private]
 

Definition at line 105 of file bcpan.h.

int BC_Pan::highlighted [private]
 

Definition at line 102 of file bcpan.h.

BC_Pixmap* BC_Pan::images[PAN_IMAGES] [private]
 

Definition at line 108 of file bcpan.h.

float BC_Pan::maxvalue [private]
 

Definition at line 92 of file bcpan.h.

BC_Popup* BC_Pan::popup [private]
 

Definition at line 111 of file bcpan.h.

RotateFrame* BC_Pan::rotater [private]
 

Definition at line 110 of file bcpan.h.

int BC_Pan::stick_x [private]
 

Definition at line 95 of file bcpan.h.

int BC_Pan::stick_x_origin [private]
 

Definition at line 100 of file bcpan.h.

int BC_Pan::stick_y [private]
 

Definition at line 96 of file bcpan.h.

int BC_Pan::stick_y_origin [private]
 

Definition at line 100 of file bcpan.h.

VFrame* BC_Pan::temp_channel [private]
 

Definition at line 109 of file bcpan.h.

int BC_Pan::total_values [private]
 

Definition at line 93 of file bcpan.h.

int* BC_Pan::value_positions [private]
 

Definition at line 94 of file bcpan.h.

int* BC_Pan::value_x [private]
 

Definition at line 104 of file bcpan.h.

int * BC_Pan::value_y [private]
 

Definition at line 104 of file bcpan.h.

float* BC_Pan::values [private]
 

Definition at line 101 of file bcpan.h.

int BC_Pan::virtual_r [private]
 

Definition at line 91 of file bcpan.h.

int BC_Pan::x_origin [private]
 

Definition at line 98 of file bcpan.h.

int BC_Pan::y_origin [private]
 

Definition at line 98 of file bcpan.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:37 2006 for Guicast-svn by  doxygen 1.4.4