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

CAUGuiMeter Class Reference

CAUGuiMeter - representing private values (internal parameters). More...

#include <CAUGuiMeter.h>

Inheritance diagram for CAUGuiMeter:

CAUGuiCtrl CAUGuiItem List of all members.

Public Member Functions

 CAUGuiMeter (CAUGuiMan *theChief, UInt32 internalIndex, eRect *theWhere, CAUGuiResolution theRes, CAUGuiGraphic *theForeGround, CAUGuiGraphic *theBackground)
 constructor for a meter control

virtual ~CAUGuiMeter ()
virtual void draw (CGContextRef context, UInt32 portHeight)
 receives draws from CAUGuiControlHandler

virtual void mouseDown (Point *P, bool, bool)
 receives Mouse clicks from CAUGuiControlHandler

virtual void mouseTrack (Point *P, bool, bool)
 receives MouseTracking from CAUGuiControlHandler

virtual void mouseUp (Point *P, bool, bool)
 receives Mouse ups from CAUGuiControlHandler

virtual void idle ()
 the idle timer...


Detailed Description

CAUGuiMeter - representing private values (internal parameters).

This class is merely a helper class for general visualizaion purpose like VU meters.

It is currently bound to represent values from normalized float values that are obtained from an Array of floats that's passed from the process class to the GUI via GetProperty() with a PropertyID defined kInternalParameterProperyID (the one that Apple reserves 0-63999 for their own purpose, so this is 64000).

It could however be extended to use non-propagated AU Parameters as well, as this is the recommended "new way to go" of passing private data from process to GUI. But that would better be handled by Displays where this functionality is already in. One only has to conditionally disable mousing in Displays for that.

If it turns out this class is somewhat useless, it will be deprecated in one of the next updates to CAUGui...

Due to not being bound to AU Parameters, CAUGuiMeters update on timer driven basis when the parameter has changed

Definition at line 40 of file CAUGuiMeter.h.


Constructor & Destructor Documentation

CAUGuiMeter::CAUGuiMeter CAUGuiMan theChief,
UInt32  internalIndex,
eRect theWhere,
CAUGuiResolution  theRes,
CAUGuiGraphic theForeGround,
CAUGuiGraphic theBackground
 

constructor for a meter control

Parameters:
theChief instance of controlling CAUGuiMan
internalIndex index in the Array of internal (private) parameters
theWhere Control Bounds in pane-relative coordinates
theRes CAUGuiResolution
theForeGround foreground CAUGuiGraphic, usually a CAUGuiHandleImage
theBackground background CAUGuiGraphic

Definition at line 12 of file CAUGuiMeter.cpp.

References kCAUGui_Meter, and CAUGuiItem::setType().

CAUGuiMeter::~CAUGuiMeter  )  [virtual]
 

Definition at line 32 of file CAUGuiMeter.cpp.


Member Function Documentation

void CAUGuiMeter::draw CGContextRef  context,
UInt32  portHeight
[virtual]
 

receives draws from CAUGuiControlHandler

Reimplemented from CAUGuiCtrl.

Definition at line 62 of file CAUGuiMeter.cpp.

References CAUGuiGraphic::draw(), CAUGuiCtrl::getBounds(), CAUGuiCtrl::getCarbonControl(), CAUGuiCtrl::getForeBounds(), CAUGuiGraphic::getImage(), eRect::to(), and val.

void CAUGuiMeter::idle  )  [virtual]
 

the idle timer...

Reimplemented from CAUGuiCtrl.

Definition at line 39 of file CAUGuiMeter.cpp.

References CAUGuiCtrl::getCarbonControl(), CAUGuiMan::getInternalParameter(), CAUGuiCtrl::idle(), and val.

virtual void CAUGuiMeter::mouseDown Point *  P,
bool  ,
bool 
[inline, virtual]
 

receives Mouse clicks from CAUGuiControlHandler

Parameters:
P the point where the mouse is, relative to control bounds
with_option is option key pressed?
with_shift is shift key pressed?
(Currently the status of modifiers is only tested on first click and then maintained over the whole interaction)

Reimplemented from CAUGuiCtrl.

Definition at line 60 of file CAUGuiMeter.h.

virtual void CAUGuiMeter::mouseTrack Point *  P,
bool  ,
bool 
[inline, virtual]
 

receives MouseTracking from CAUGuiControlHandler

Reimplemented from CAUGuiCtrl.

Definition at line 61 of file CAUGuiMeter.h.

virtual void CAUGuiMeter::mouseUp Point *  P,
bool  ,
bool 
[inline, virtual]
 

receives Mouse ups from CAUGuiControlHandler

Reimplemented from CAUGuiCtrl.

Definition at line 62 of file CAUGuiMeter.h.


The documentation for this class was generated from the following files:
(c) 2002 - 2003 by Urs Heckmann www.u-he.com
Generated on Thu May 6 15:13:15 2004 for CAUGui by doxygen 1.3.6