SeExprEdVectorControl Class Reference

A vector or color control (named vector because it edits a SeVec3d literal). More...

#include <SeExprEdControl.h>

Inheritance diagram for SeExprEdVectorControl:
SeExprEdControl

List of all members.

Public Member Functions

 SeExprEdVectorControl (int id, SeExprEdVectorEditable *number)
QColor getColor ()
 Interface for getting the color (used for linked color picking).
void setColor (QColor color)
 Interface for setting the color (used for linked color picking).

Private Slots

void sliderChanged (int id, float val)
void editChanged (int id, const QString &text)
void swatchChanged (QColor color)

Private Member Functions

void setValue (int id, float value)
 set the value in the model (in response to editing from controls)
void updateControl ()
 update the individual slider and eidt box controls

Private Attributes

SeExprEdVectorEditable_numberEditable
 Number model.
SeExprEdLineEdit_edits [3]
 All three line edit widgets (for each component).
SeExprEdCSwatchFrame_swatch
SeExprEdChannelSlider_sliders [3]
 All three channel sliders (for each component).

Detailed Description

A vector or color control (named vector because it edits a SeVec3d literal).

Definition at line 177 of file SeExprEdControl.h.


Constructor & Destructor Documentation

SeExprEdVectorControl::SeExprEdVectorControl ( int  id,
SeExprEdVectorEditable number 
)

Member Function Documentation

void SeExprEdVectorControl::editChanged ( int  id,
const QString &  text 
) [private, slot]

Definition at line 446 of file SeExprEdControl.cpp.

References SeExprEdControl::_updating, and setValue().

Referenced by SeExprEdVectorControl().

QColor SeExprEdVectorControl::getColor (  )  [virtual]

Interface for getting the color (used for linked color picking).

Reimplemented from SeExprEdControl.

Definition at line 425 of file SeExprEdControl.cpp.

References _numberEditable, SeExpr::clamp(), and SeExprEdVectorEditable::v.

Referenced by sliderChanged().

void SeExprEdVectorControl::setColor ( QColor  color  )  [virtual]

Interface for setting the color (used for linked color picking).

Reimplemented from SeExprEdControl.

Definition at line 432 of file SeExprEdControl.cpp.

References setValue().

void SeExprEdVectorControl::setValue ( int  id,
float  value 
) [private]

set the value in the model (in response to editing from controls)

Definition at line 483 of file SeExprEdControl.cpp.

References SeExprEdControl::_id, _numberEditable, _swatch, SeExprEdControl::controlChanged(), SeExprEdCSwatchFrame::setValue(), updateControl(), and SeExprEdVectorEditable::v.

Referenced by editChanged(), setColor(), sliderChanged(), and swatchChanged().

void SeExprEdVectorControl::sliderChanged ( int  id,
float  val 
) [private, slot]
void SeExprEdVectorControl::swatchChanged ( QColor  color  )  [private, slot]

Definition at line 416 of file SeExprEdControl.cpp.

References _swatch, SeExprEdCSwatchFrame::getValue(), and setValue().

Referenced by SeExprEdVectorControl().

void SeExprEdVectorControl::updateControl (  )  [private]

Member Data Documentation

All three line edit widgets (for each component).

Definition at line 184 of file SeExprEdControl.h.

Referenced by SeExprEdVectorControl(), and updateControl().

Number model.

Definition at line 182 of file SeExprEdControl.h.

Referenced by getColor(), SeExprEdVectorControl(), setValue(), sliderChanged(), and updateControl().

All three channel sliders (for each component).

Definition at line 185 of file SeExprEdControl.h.

Referenced by SeExprEdVectorControl(), and updateControl().

Definition at line 185 of file SeExprEdControl.h.

Referenced by SeExprEdVectorControl(), setValue(), and swatchChanged().


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

Generated on 25 Jul 2013 for SeExpr by  doxygen 1.6.1