Public Member Functions | Public Attributes | Private Attributes | List of all members
color_widgets::ColorWheel::Private Class Reference

Public Member Functions

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

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 46 of file color_wheel.cpp.

Constructor & Destructor Documentation

color_widgets::ColorWheel::Private::Private ( ColorWheel widget)
inline

Definition at line 62 of file color_wheel.cpp.

Member Function Documentation

qreal color_widgets::ColorWheel::Private::inner_radius ( ) const
inline

Calculate inner wheel radius from idget center.

Definition at line 76 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 100 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::outer_radius ( ) const
inline

Calculate outer wheel radius from idget center.

Definition at line 70 of file color_wheel.cpp.

void color_widgets::ColorWheel::Private::render_inner_selector ( )
inline

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

Definition at line 149 of file color_wheel.cpp.

void color_widgets::ColorWheel::Private::render_ring ( )
inline

Updates the outer ring that displays the hue selector.

Definition at line 195 of file color_wheel.cpp.

void color_widgets::ColorWheel::Private::render_square ( )
inline

Definition at line 105 of file color_wheel.cpp.

void color_widgets::ColorWheel::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

Definition at line 125 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::selector_image_angle ( )
inline

Rotation of the selector image.

Definition at line 177 of file color_wheel.cpp.

QPointF color_widgets::ColorWheel::Private::selector_image_offset ( )
inline

Offset of the selector image.

Definition at line 158 of file color_wheel.cpp.

QSizeF color_widgets::ColorWheel::Private::selector_size ( )
inline

Size of the selector when rendered to the screen.

Definition at line 168 of file color_wheel.cpp.

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

Definition at line 225 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::square_size ( ) const
inline

Calculate the edge length of the inner square.

Definition at line 82 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::triangle_height ( ) const
inline

Calculate the height of the inner triangle.

Definition at line 88 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::triangle_side ( ) const
inline

Calculate the side of the inner triangle.

Definition at line 94 of file color_wheel.cpp.

Member Data Documentation

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

Definition at line 58 of file color_wheel.cpp.

DisplayFlags color_widgets::ColorWheel::Private::display_flags

Definition at line 57 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::hue

Definition at line 52 of file color_wheel.cpp.

QPixmap color_widgets::ColorWheel::Private::hue_ring

Definition at line 55 of file color_wheel.cpp.

QImage color_widgets::ColorWheel::Private::inner_selector

Definition at line 56 of file color_wheel.cpp.

int color_widgets::ColorWheel::Private::max_size = 128

Definition at line 60 of file color_wheel.cpp.

MouseStatus color_widgets::ColorWheel::Private::mouse_status

Definition at line 54 of file color_wheel.cpp.

QColor(* color_widgets::ColorWheel::Private::rainbow_from_hue) (qreal)

Definition at line 59 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::sat

Definition at line 52 of file color_wheel.cpp.

qreal color_widgets::ColorWheel::Private::val

Definition at line 52 of file color_wheel.cpp.

ColorWheel* const color_widgets::ColorWheel::Private::w
private

Definition at line 49 of file color_wheel.cpp.

unsigned int color_widgets::ColorWheel::Private::wheel_width

Definition at line 53 of file color_wheel.cpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:51