ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccColorGradientDlg Class Reference

Dialog to define a color gradient (default, with 2 colors, banding, etc.) More...

#include <ecvColorGradientDlg.h>

Inheritance diagram for ccColorGradientDlg:
[legend]
Collaboration diagram for ccColorGradientDlg:
[legend]

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 ()
 

Detailed Description

Dialog to define a color gradient (default, with 2 colors, banding, etc.)

Member Enumeration Documentation

◆ GradientType

Gradient types.

Enumerator
Default 
TwoColors 
Banding 

Constructor & Destructor Documentation

◆ ccColorGradientDlg()

ccColorGradientDlg::ccColorGradientDlg ( QWidget *  parent)
explicit

Member Function Documentation

◆ changeFirstColor

void ccColorGradientDlg::changeFirstColor ( )
protectedslot

◆ changeSecondColor

void ccColorGradientDlg::changeSecondColor ( )
protectedslot

◆ getBandingFrequency()

double ccColorGradientDlg::getBandingFrequency ( ) const

Returns the frequency of the gradient ('Banding' mode)

References s_lastFreq.

Referenced by ccEntityAction::setColorGradient().

◆ getColors()

void ccColorGradientDlg::getColors ( QColor &  first,
QColor &  second 
) const

Returns the two colors of the gradient ('TwoColors' mode)

References s_firstColor(), and s_secondColor().

Referenced by ccEntityAction::setColorGradient().

◆ getDimension()

unsigned char ccColorGradientDlg::getDimension ( ) const

Returns the ramp dimension.

References s_lastDimIndex.

Referenced by ccEntityAction::setColorGradient().

◆ getType()

ccColorGradientDlg::GradientType ccColorGradientDlg::getType ( ) const

Returns selected gradient type.

References Banding, Default, s_lastType(), and TwoColors.

Referenced by ccEntityAction::setColorGradient().

◆ setType()

void ccColorGradientDlg::setType ( ccColorGradientDlg::GradientType  type)

Sets the currently activated type.

References Banding, Default, TwoColors, and type.

Referenced by ccColorGradientDlg().


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