Public Member Functions | Public Attributes | Private Attributes
color_widgets::ColorWheel::Private Class Reference

List of all members.

Public Member Functions

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

Public Attributes

QColor(* color_from )(qreal, qreal, qreal, qreal)
DisplayFlags display_flags
qreal hue
QPixmap hue_ring
QImage inner_selector
int max_size = 128
MouseStatus mouse_status
QColor(* rainbow_from_hue )(qreal)
qreal sat
qreal val
unsigned int wheel_width

Private Attributes

ColorWheel *const w

Detailed Description

Definition at line 45 of file color_wheel.cpp.


Constructor & Destructor Documentation

Definition at line 61 of file color_wheel.cpp.


Member Function Documentation

Calculate inner wheel radius from idget center.

Definition at line 75 of file color_wheel.cpp.

QLineF color_widgets::ColorWheel::Private::line_to_point ( const QPoint &  p) const [inline]

return line from center to given point

Definition at line 99 of file color_wheel.cpp.

Calculate outer wheel radius from idget center.

Definition at line 69 of file color_wheel.cpp.

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

Definition at line 148 of file color_wheel.cpp.

Updates the outer ring that displays the hue selector.

Definition at line 194 of file color_wheel.cpp.

Definition at line 104 of file color_wheel.cpp.

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

Definition at line 124 of file color_wheel.cpp.

Rotation of the selector image.

Definition at line 176 of file color_wheel.cpp.

Offset of the selector image.

Definition at line 157 of file color_wheel.cpp.

Size of the selector when rendered to the screen.

Definition at line 167 of file color_wheel.cpp.

void color_widgets::ColorWheel::Private::set_color ( const QColor &  c) [inline]

Definition at line 224 of file color_wheel.cpp.

Calculate the edge length of the inner square.

Definition at line 81 of file color_wheel.cpp.

Calculate the height of the inner triangle.

Definition at line 87 of file color_wheel.cpp.

Calculate the side of the inner triangle.

Definition at line 93 of file color_wheel.cpp.


Member Data Documentation

QColor(* color_widgets::ColorWheel::Private::color_from)(qreal, qreal, qreal, qreal)

Definition at line 57 of file color_wheel.cpp.

Definition at line 56 of file color_wheel.cpp.

Definition at line 51 of file color_wheel.cpp.

Definition at line 54 of file color_wheel.cpp.

Definition at line 55 of file color_wheel.cpp.

Definition at line 59 of file color_wheel.cpp.

Definition at line 53 of file color_wheel.cpp.

Definition at line 58 of file color_wheel.cpp.

Definition at line 51 of file color_wheel.cpp.

Definition at line 51 of file color_wheel.cpp.

Definition at line 48 of file color_wheel.cpp.

Definition at line 52 of file color_wheel.cpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:06