17#ifndef __albaGUIMaterialChooser_H__
18#define __albaGUIMaterialChooser_H__
26#include "albaServiceClient.h"
27#include "albaAbsLogicManager.h"
37class vtkPolyDataMapper;
42class vtkWindowToImageFilter;
Implementation of the message object for the Subject/Observer design pattern.
albaGUIListCtrlBitmap allows a simplified use of a wxWindows ListCtrl widget.
albaMaterialChooser let the user Choose one of the predefined materials, but also edit material setti...
void CreatePipe()
Create the pipeline showing the colored spheres.
~albaGUIMaterialChooser()
albaGUIListCtrlBitmap * m_ListCtrlMaterial
void CreateGUI()
Create the dialog that show the interface for materials.
mmaMaterial * m_VmeMaterial
mmaMaterial * m_ChoosedMaterial
std::vector< mmaMaterial * > m_List
mmaMaterial * GetMaterial(int id)
void AddMaterial()
Store the current settings as a new material.
bool ShowChooserDialog(albaVME *vme, bool remember_last_material=false)
Show in modal configuration the material editor.
albaGUIButton * m_ApplyButton
void SelectMaterial(long matPos)
Copy choosed material on vme properties.
void LoadLibraryFromFile()
Load material library from file.
albaString m_MaterialName
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
void CreateDefaultLibrary()
Create the default material library.
vtkSphereSource * m_Sphere
albaGUIButton * m_CancelButton
albaGUIButton * m_OkButton
void ClearList()
Delete the material list.
double m_AmbientIntensity
double m_DiffuseIntensity
void RemoveMaterial()
remove choosed material from the list.
vtkPolyDataMapper * m_Mapper
albaGUIMaterialChooser(wxString dialog_title="Material Chooser")
void SetFromMat(mmaMaterial *mat)
void StoreLibraryToFile()
Store material library to file.
double m_SpecularIntensity
albaGUI is a panel with function to easily create GUI.
Abstract superclass for all ALBA classes implementing RTTI APIs.
Interface implementing the Observer of the Subject/Observer design pattern.
int InternalRestore(albaStorageElement *node)
This is called by Restore() and must be reimplemented by subclasses The element from which the object...
albaStorableMaterialLibrary(std::vector< mmaMaterial * > *mat_list)
albaStorableMaterialLibrary()
~albaStorableMaterialLibrary()
albaTypeMacro(albaStorableMaterialLibrary, albaObject)
int InternalStore(albaStorageElement *parent)
This is called by Store() and must be reimplemented by subclasses.
std::vector< mmaMaterial * > * m_MaterialList
albaStorable is an interface for serializable objects.
Abstract class representing the interface for the unit of information stored in the storage.
albaString - performs common string operations on c-strings.