![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog to define a color gradient (default, with 2 colors, banding, etc.) More...
#include <ecvColorGradientDlg.h>


Public Types | |
| enum | GradientType { Default , TwoColors , Banding } |
| Gradient types. More... | |
Public Member Functions | |
| ccColorGradientDlg (QWidget *parent) | |
| Default constructor. More... | |
| GradientType | getType () const |
| Returns selected gradient type. More... | |
| void | setType (GradientType type) |
| Sets the currently activated type. More... | |
| void | getColors (QColor &first, QColor &second) const |
| Returns the two colors of the gradient ('TwoColors' mode) More... | |
| double | getBandingFrequency () const |
| Returns the frequency of the gradient ('Banding' mode) More... | |
| unsigned char | getDimension () const |
| Returns the ramp dimension. More... | |
Protected Slots | |
| void | changeFirstColor () |
| void | changeSecondColor () |
Dialog to define a color gradient (default, with 2 colors, banding, etc.)
Definition at line 16 of file ecvColorGradientDlg.h.
Gradient types.
| Enumerator | |
|---|---|
| Default | |
| TwoColors | |
| Banding | |
Definition at line 24 of file ecvColorGradientDlg.h.
|
explicit |
Default constructor.
Definition at line 26 of file ecvColorGradientDlg.cpp.
References changeFirstColor(), changeSecondColor(), s_firstColor(), s_lastDimIndex, s_lastFreq, s_lastType(), s_secondColor(), ccQtHelpers::SetButtonColor(), and setType().
|
protectedslot |
Definition at line 90 of file ecvColorGradientDlg.cpp.
References s_firstColor(), and ccQtHelpers::SetButtonColor().
Referenced by ccColorGradientDlg().
|
protectedslot |
Definition at line 98 of file ecvColorGradientDlg.cpp.
References s_secondColor(), and ccQtHelpers::SetButtonColor().
Referenced by ccColorGradientDlg().
| double ccColorGradientDlg::getBandingFrequency | ( | ) | const |
Returns the frequency of the gradient ('Banding' mode)
Definition at line 83 of file ecvColorGradientDlg.cpp.
References s_lastFreq.
Referenced by ccEntityAction::setColorGradient().
| void ccColorGradientDlg::getColors | ( | QColor & | first, |
| QColor & | second | ||
| ) | const |
Returns the two colors of the gradient ('TwoColors' mode)
Definition at line 77 of file ecvColorGradientDlg.cpp.
References s_firstColor(), and s_secondColor().
Referenced by ccEntityAction::setColorGradient().
| unsigned char ccColorGradientDlg::getDimension | ( | ) | const |
Returns the ramp dimension.
Definition at line 43 of file ecvColorGradientDlg.cpp.
References s_lastDimIndex.
Referenced by ccEntityAction::setColorGradient().
| ccColorGradientDlg::GradientType ccColorGradientDlg::getType | ( | ) | const |
Returns selected gradient type.
Definition at line 64 of file ecvColorGradientDlg.cpp.
References Banding, Default, s_lastType(), and TwoColors.
Referenced by ccEntityAction::setColorGradient().
| void ccColorGradientDlg::setType | ( | ccColorGradientDlg::GradientType | type | ) |
Sets the currently activated type.
Definition at line 48 of file ecvColorGradientDlg.cpp.
References Banding, Default, TwoColors, and type.
Referenced by ccColorGradientDlg().