qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ccColorScaleEditorDialog Class Reference

Dialog to edit/create color scales. More...

#include <ccColorScaleEditorDlg.h>

Inheritance diagram for ccColorScaleEditorDialog:
Inheritance graph
[legend]
Collaboration diagram for ccColorScaleEditorDialog:
Collaboration graph
[legend]

Public Member Functions

 ccColorScaleEditorDialog (ccColorScalesManager *manager, ccColorScale::Shared currentScale=ccColorScale::Shared(0), QWidget *parent=0)
 Default constructor.
 
virtual ~ccColorScaleEditorDialog ()
 Destructor.
 
void setAssociatedScalarField (ccScalarField *sf)
 Sets associated scalar field (optional)
 
void setActiveScale (ccColorScale::Shared currentScale)
 Sets active scale.
 
ccColorScale::Shared getActiveScale ()
 Returns active scale.
 

Protected Slots

void colorScaleChanged (int)
 
void relativeModeChanged (int)
 
void onStepSelected (int)
 
void onStepModified (int)
 
void deletecSelectedStep ()
 
void changeSelectedStepColor ()
 
void changeSelectedStepValue (double)
 
void copyCurrentScale ()
 
void saveCurrentScale ()
 
void deleteCurrentScale ()
 
void renameCurrentScale ()
 
void createNewScale ()
 
void onClose ()
 

Protected Member Functions

void updateMainComboBox ()
 Updates main combox box with color scales manager.
 
void setModified (bool state)
 Sets modification flag state.
 
bool canChangeCurrentScale ()
 If the current scale has been modified, ask the user what to do. More...
 
bool isRelativeMode () const
 Returns whether current edited scale is 'relative' (true) or 'absolute' (false) More...
 
void setScaleModeToRelative (bool isRelative)
 Sets current mode for active scale between 'relative' (true) or 'absolute' (false) More...
 

Protected Attributes

ccColorScalesManager * m_manager
 Color scale manager.
 
ccColorScale::Shared m_colorScale
 Current active color scale.
 
ccColorScaleEditorWidgetm_scaleWidget
 Color scale editor widget.
 
ccScalarField * m_associatedSF
 Associated scalar field.
 
bool m_modified
 Modification flag.
 
double m_minAbsoluteVal
 Current min boundary for absolute scales.
 
double m_maxAbsoluteVal
 Current max boundary for absolute scales.
 

Detailed Description

Dialog to edit/create color scales.

Member Function Documentation

bool ccColorScaleEditorDialog::canChangeCurrentScale ( )
protected

If the current scale has been modified, ask the user what to do.

Returns
whether user allows the change or not

ask the user if we should save the current scale?

bool ccColorScaleEditorDialog::isRelativeMode ( ) const
protected

Returns whether current edited scale is 'relative' (true) or 'absolute' (false)

Warning: may not be the same state as the current scale (m_colorScale) If current modifications have not been saved yet!

void ccColorScaleEditorDialog::setScaleModeToRelative ( bool  isRelative)
protected

Sets current mode for active scale between 'relative' (true) or 'absolute' (false)

Warning: may not be the same state as the current scale (m_colorScale) If current modifications have not been saved yet!


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