tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Color_Wheel::Private Class Reference

Public Member Functions

 Private (Color_Wheel *widget)
 
qreal outer_radius () const
 Calculate outer wheel radius from idget center. More...
 
qreal inner_radius () const
 Calculate inner wheel radius from idget center. More...
 
qreal square_size () const
 Calculate the edge length of the inner square. More...
 
qreal triangle_height () const
 Calculate the height of the inner triangle. More...
 
qreal triangle_side () const
 Calculate the side of the inner triangle. More...
 
QLineF line_to_point (const QPoint &p) const
 return line from center to given point More...
 
void render_square ()
 
void render_triangle ()
 renders the selector as a triangle More...
 
void render_inner_selector ()
 Updates the inner image that displays the saturation-value selector. More...
 
QPointF selector_image_offset ()
 Offset of the selector image. More...
 
qreal selector_image_angle ()
 Rotation of the selector image. More...
 
void render_ring ()
 Updates the outer ring that displays the hue selector. More...
 
void set_color (const QColor &c)
 

Public Attributes

qreal hue
 
qreal sat
 
qreal val
 
unsigned int wheel_width
 
Mouse_Status mouse_status
 
QPixmap hue_ring
 
QImage inner_selector
 
Display_Flags display_flags
 
QColor(* color_from )(qreal, qreal, qreal, qreal)
 
QColor(* rainbow_from_hue )(qreal)
 

Constructor & Destructor Documentation

Color_Wheel::Private::Private ( Color_Wheel widget)
inline

Member Function Documentation

qreal Color_Wheel::Private::inner_radius ( ) const
inline

Calculate inner wheel radius from idget center.

QLineF Color_Wheel::Private::line_to_point ( const QPoint &  p) const
inline

return line from center to given point

qreal Color_Wheel::Private::outer_radius ( ) const
inline

Calculate outer wheel radius from idget center.

void Color_Wheel::Private::render_inner_selector ( )
inline

Updates the inner image that displays the saturation-value selector.

void Color_Wheel::Private::render_ring ( )
inline

Updates the outer ring that displays the hue selector.

void Color_Wheel::Private::render_square ( )
inline
void Color_Wheel::Private::render_triangle ( )
inline

renders the selector as a triangle

Note
It's the same as a square with the edge with value=0 collapsed to a single point
qreal Color_Wheel::Private::selector_image_angle ( )
inline

Rotation of the selector image.

QPointF Color_Wheel::Private::selector_image_offset ( )
inline

Offset of the selector image.

void Color_Wheel::Private::set_color ( const QColor &  c)
inline
qreal Color_Wheel::Private::square_size ( ) const
inline

Calculate the edge length of the inner square.

qreal Color_Wheel::Private::triangle_height ( ) const
inline

Calculate the height of the inner triangle.

qreal Color_Wheel::Private::triangle_side ( ) const
inline

Calculate the side of the inner triangle.

Member Data Documentation

QColor(* Color_Wheel::Private::color_from)(qreal, qreal, qreal, qreal)
Display_Flags Color_Wheel::Private::display_flags
qreal Color_Wheel::Private::hue
QPixmap Color_Wheel::Private::hue_ring
QImage Color_Wheel::Private::inner_selector
Mouse_Status Color_Wheel::Private::mouse_status
QColor(* Color_Wheel::Private::rainbow_from_hue)(qreal)
qreal Color_Wheel::Private::sat
qreal Color_Wheel::Private::val
unsigned int Color_Wheel::Private::wheel_width

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