BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
BALL::VIEW::MaterialSettings Class Reference

#include <BALL/VIEW/DIALOGS/materialSettings.h>

Inheritance diagram for BALL::VIEW::MaterialSettings:
QWidget BALL::VIEW::PreferencesEntry

Public Slots

virtual void ambientFactorChanged ()
 
virtual void specularityFactorChanged ()
 
virtual void reflectivenessFactorChanged ()
 
virtual void shininessFactorChanged ()
 
virtual void transparencyFactorChanged ()
 
virtual void updateDirectlyBoxChanged ()
 
virtual void editAmbientColor ()
 
virtual void editSpecularityColor ()
 
virtual void editReflectivenessColor ()
 
virtual void rendererChanged ()
 

Public Member Functions

 MaterialSettings (QWidget *parent=0, const char *name="MaterialSettings", Qt::WFlags fl=0)
 Constructor. More...
 
 ~MaterialSettings ()
 Destructor. More...
 
void apply ()
 Apply the new values to the stage. More...
 
void setCurrentRepresentation (Representation const *representation)
 set the current representation More...
 
- Public Member Functions inherited from BALL::VIEW::PreferencesEntry
 PreferencesEntry ()
 
virtual ~PreferencesEntry ()
 
virtual void writePreferenceEntries (INIFile &inifile)
 Store the settings of all registered objects. More...
 
virtual void readPreferenceEntries (const INIFile &inifile)
 Restore the settings of all registered objects. More...
 
void setINIFileSectionName (const String &name)
 Set the name for the section in the INIFile. More...
 
const StringgetINIFileSectionName () const
 Get the name for the section in the INIFile. More...
 
void setWidgetStackName (const String &name)
 
StackPagesgetStackPages ()
 Return all pages, that are to be shown in a parent QStackedWidget. More...
 
void setWidgetStack (QStackedWidget *stack)
 
virtual void showStackPage (Position nr)
 Show the specified page in the QStackedWidget. More...
 
virtual void showStackPage (QWidget *widget)
 Show the specified page in the QStackedWidget. More...
 
virtual Position currentStackPage () const
 Get the currently shown page in the QStackedWidget. More...
 
virtual void restoreDefaultValues (bool all=false)
 Set all registered objects to their default values. More...
 
virtual void storeValues ()
 
virtual void restoreValues (bool all=false)
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 

Private Member Functions

void setValues_ (const QSlider &slider, QLabel &label, int divisor)
 
void setQuadraticValues_ (const QSlider &slider, QLabel &label, int divisor)
 

Private Attributes

Representation const * current_representation_
 

Additional Inherited Members

- Public Types inherited from BALL::VIEW::PreferencesEntry
typedef std::list< std::pair
< QWidget *, String > > 
StackPages
 
- Protected Types inherited from BALL::VIEW::PreferencesEntry
typedef HashMap< const QObject
*, String
ValueMap
 
- Protected Member Functions inherited from BALL::VIEW::PreferencesEntry
void registerWidgets_ ()
 
void registerObject_ (QObject *widget)
 
void unregisterObject_ (QObject *widget)
 
void registerWidgetForHelpSystem_ (const QWidget *widget, const String &url)
 
void restoreValues_ (bool all, const ValueMap &map)
 
void insertStackEntry_ (QWidget *, const String &name)
 
bool isSupported_ (QObject &widget)
 
bool getValue_ (const QObject *widget, String &value)
 
bool setValue_ (QObject *widget, const String &value)
 
- Protected Attributes inherited from BALL::VIEW::PreferencesEntry
String inifile_section_name_
 
HashSet< QObject * > registered_objects_
 
ValueMap default_values_
 
ValueMap last_values_
 
QStackedWidget * widget_stack_
 
StackPages stack_pages_
 

Detailed Description

Dialog for setting the Material, which is added to the Preferences. This dialog allows the control of the Materials of a Scene. Materials can be added, removed and adjusted.

Definition at line 33 of file materialSettings.h.

Constructor & Destructor Documentation

BALL::VIEW::MaterialSettings::MaterialSettings ( QWidget parent = 0,
const char *  name = "MaterialSettings",
Qt::WFlags  fl = 0 
)

Constructor.

BALL::VIEW::MaterialSettings::~MaterialSettings ( )
inline

Destructor.

Definition at line 46 of file materialSettings.h.

Member Function Documentation

virtual void BALL::VIEW::MaterialSettings::ambientFactorChanged ( )
virtualslot
void BALL::VIEW::MaterialSettings::apply ( )

Apply the new values to the stage.

virtual void BALL::VIEW::MaterialSettings::editAmbientColor ( )
virtualslot
virtual void BALL::VIEW::MaterialSettings::editReflectivenessColor ( )
virtualslot
virtual void BALL::VIEW::MaterialSettings::editSpecularityColor ( )
virtualslot
virtual void BALL::VIEW::MaterialSettings::reflectivenessFactorChanged ( )
virtualslot
virtual void BALL::VIEW::MaterialSettings::rendererChanged ( )
virtualslot
void BALL::VIEW::MaterialSettings::setCurrentRepresentation ( Representation const *  representation)
inline

set the current representation

Definition at line 52 of file materialSettings.h.

void BALL::VIEW::MaterialSettings::setQuadraticValues_ ( const QSlider &  slider,
QLabel &  label,
int  divisor 
)
private
void BALL::VIEW::MaterialSettings::setValues_ ( const QSlider &  slider,
QLabel &  label,
int  divisor 
)
private
virtual void BALL::VIEW::MaterialSettings::shininessFactorChanged ( )
virtualslot
virtual void BALL::VIEW::MaterialSettings::specularityFactorChanged ( )
virtualslot
virtual void BALL::VIEW::MaterialSettings::transparencyFactorChanged ( )
virtualslot
virtual void BALL::VIEW::MaterialSettings::updateDirectlyBoxChanged ( )
virtualslot

Member Data Documentation

Representation const* BALL::VIEW::MaterialSettings::current_representation_
private

Definition at line 74 of file materialSettings.h.