ShadeWidget Class Reference

#include <ShadeWidget.h>

Collaboration diagram for ShadeWidget:

Collaboration graph
[legend]

List of all members.

Public Types

enum  ShadeType { RedShade, GreenShade, BlueShade, ARGBShade }

Signals

void colorsChanged ()

Public Member Functions

 ShadeWidget (ShadeType type, QWidget *parent, std::string name)
void setGradientStops (const QGradientStops &stops)
QGradientStops getGradientStops () const
void paintEvent (QPaintEvent *e)
QSize sizeHint () const
void setPoints (QPolygonF pts)
QPolygonF points () const
void setHistogram (const int *)
void clearHistogram ()
std::string getName () const
HoverPointshoverPoints () const
uint colorAt (int x)


Detailed Description

Definition at line 7 of file ShadeWidget.h.


Member Enumeration Documentation

enum ShadeWidget::ShadeType

Enumerator:
RedShade 
GreenShade 
BlueShade 
ARGBShade 

Definition at line 11 of file ShadeWidget.h.


Constructor & Destructor Documentation

ShadeWidget::ShadeWidget ( ShadeType  type,
QWidget *  parent,
std::string  name 
)

Definition at line 5 of file ShadeWidget.cpp.

References ARGBShade, HoverPoints::CircleShape, clearHistogram(), colorsChanged(), HoverPoints::LockToLeft, HoverPoints::LockToRight, points(), HoverPoints::setPointLock(), HoverPoints::setPoints(), HoverPoints::setSortType(), sizeHint(), and HoverPoints::XSort.

Here is the call graph for this function:


Member Function Documentation

void ShadeWidget::setGradientStops ( const QGradientStops &  stops  ) 

Definition at line 115 of file ShadeWidget.cpp.

References ARGBShade.

Referenced by GradientEditor::pointsUpdated().

QGradientStops ShadeWidget::getGradientStops (  )  const [inline]

Definition at line 21 of file ShadeWidget.h.

Referenced by GradientEditor::saveTransferFunction().

void ShadeWidget::paintEvent ( QPaintEvent *  e  ) 

Definition at line 187 of file ShadeWidget.cpp.

References ARGBShade.

QSize ShadeWidget::sizeHint (  )  const [inline]

Definition at line 25 of file ShadeWidget.h.

Referenced by ShadeWidget().

void ShadeWidget::setPoints ( QPolygonF  pts  ) 

Definition at line 52 of file ShadeWidget.cpp.

References HoverPoints::setPoints().

Referenced by GradientEditor::loadTransferFunction().

Here is the call graph for this function:

QPolygonF ShadeWidget::points (  )  const

Definition at line 47 of file ShadeWidget.cpp.

References HoverPoints::points().

Referenced by GradientEditor::pointsUpdated(), GradientEditor::saveTransferFunction(), and ShadeWidget().

Here is the call graph for this function:

void ShadeWidget::setHistogram ( const int *  density  ) 

Definition at line 135 of file ShadeWidget.cpp.

References DENSITY_COUNT.

Referenced by GradientEditor::showHistogram().

void ShadeWidget::clearHistogram (  ) 

Definition at line 171 of file ShadeWidget.cpp.

Referenced by GradientEditor::clearHistogram(), and ShadeWidget().

std::string ShadeWidget::getName (  )  const

Definition at line 57 of file ShadeWidget.cpp.

Referenced by GradientEditor::loadTransferFunction().

HoverPoints* ShadeWidget::hoverPoints (  )  const [inline]

Definition at line 35 of file ShadeWidget.h.

uint ShadeWidget::colorAt ( int  x  ) 

Definition at line 62 of file ShadeWidget.cpp.

References HoverPoints::points().

Referenced by GradientEditor::pointsUpdated().

Here is the call graph for this function:

void ShadeWidget::colorsChanged (  )  [signal]

Referenced by ShadeWidget().


The documentation for this class was generated from the following files:
Generated on Mon Dec 10 18:18:26 2007 for VisLU by  doxygen 1.5.4