ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaGUIMaterialChooser Class Reference

#include <albaGUIMaterialChooser.h>

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

Public Member Functions

 albaGUIMaterialChooser (wxString dialog_title="Material Chooser")
 
 ~albaGUIMaterialChooser ()
 
bool ShowChooserDialog (albaVME *vme, bool remember_last_material=false)
 
mmaMaterialGetMaterial (int id)
 
void OnEvent (albaEventBase *alba_event)
 
void CreateDefaultLibrary ()
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

void CreateGUI ()
 
void CreatePipe ()
 
void ClearList ()
 
void LoadLibraryFromFile ()
 
void StoreLibraryToFile ()
 
void AddMaterial ()
 
void RemoveMaterial ()
 
void SelectMaterial (long matPos)
 
void SetFromMat (mmaMaterial *mat)
 

Protected Attributes

wxDialog * m_Dialog
 
albaGUIListCtrlBitmapm_ListCtrlMaterial
 
albaGUIm_Gui
 
albaRWIm_RWI
 
std::vector< mmaMaterial * > m_List
 
mmaMaterialm_ChoosedMaterial
 
long m_ChoosedMaterialId
 
mmaMaterialm_VmeMaterial
 
albaVMEm_Vme
 
vtkSphereSource * m_Sphere
 
vtkProperty * m_Property
 
vtkPolyDataMapper * m_Mapper
 
vtkActor * m_Actor
 
albaGUIButtonm_OkButton
 
albaGUIButtonm_CancelButton
 
albaGUIButtonm_ApplyButton
 
albaString m_MaterialName
 
wxColour m_AmbientColor
 
double m_AmbientIntensity
 
wxColour m_DiffuseColor
 
double m_DiffuseIntensity
 
wxColour m_SpecularColor
 
double m_SpecularIntensity
 
int m_SpecularPower
 
double m_Opacity
 
int m_Wire
 
albaString m_Filename
 

Detailed Description

albaMaterialChooser let the user Choose one of the predefined materials, but also edit material settings, or create a new one.

Definition at line 54 of file albaGUIMaterialChooser.h.

Constructor & Destructor Documentation

◆ albaGUIMaterialChooser()

albaGUIMaterialChooser::albaGUIMaterialChooser ( wxString  dialog_title = "Material Chooser")

◆ ~albaGUIMaterialChooser()

albaGUIMaterialChooser::~albaGUIMaterialChooser ( )

Member Function Documentation

◆ ShowChooserDialog()

bool albaGUIMaterialChooser::ShowChooserDialog ( albaVME vme,
bool  remember_last_material = false 
)

Show in modal configuration the material editor.

◆ GetMaterial()

mmaMaterial * albaGUIMaterialChooser::GetMaterial ( int  id)

◆ OnEvent()

void albaGUIMaterialChooser::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Implements albaObserver.

◆ CreateDefaultLibrary()

void albaGUIMaterialChooser::CreateDefaultLibrary ( )

Create the default material library.

◆ CreateGUI()

void albaGUIMaterialChooser::CreateGUI ( )
protected

Create the dialog that show the interface for materials.

◆ CreatePipe()

void albaGUIMaterialChooser::CreatePipe ( )
protected

Create the pipeline showing the colored spheres.

◆ ClearList()

void albaGUIMaterialChooser::ClearList ( )
protected

Delete the material list.

◆ LoadLibraryFromFile()

void albaGUIMaterialChooser::LoadLibraryFromFile ( )
protected

Load material library from file.

◆ StoreLibraryToFile()

void albaGUIMaterialChooser::StoreLibraryToFile ( )
protected

Store material library to file.

◆ AddMaterial()

void albaGUIMaterialChooser::AddMaterial ( )
protected

Store the current settings as a new material.

◆ RemoveMaterial()

void albaGUIMaterialChooser::RemoveMaterial ( )
protected

remove choosed material from the list.

◆ SelectMaterial()

void albaGUIMaterialChooser::SelectMaterial ( long  matPos)
protected

Copy choosed material on vme properties.

◆ SetFromMat()

void albaGUIMaterialChooser::SetFromMat ( mmaMaterial mat)
protected

Member Data Documentation

◆ m_Dialog

wxDialog* albaGUIMaterialChooser::m_Dialog
protected

Definition at line 98 of file albaGUIMaterialChooser.h.

◆ m_ListCtrlMaterial

albaGUIListCtrlBitmap* albaGUIMaterialChooser::m_ListCtrlMaterial
protected

Definition at line 99 of file albaGUIMaterialChooser.h.

◆ m_Gui

albaGUI* albaGUIMaterialChooser::m_Gui
protected

Definition at line 100 of file albaGUIMaterialChooser.h.

◆ m_RWI

albaRWI* albaGUIMaterialChooser::m_RWI
protected

Definition at line 101 of file albaGUIMaterialChooser.h.

◆ m_List

std::vector<mmaMaterial *> albaGUIMaterialChooser::m_List
protected

Definition at line 103 of file albaGUIMaterialChooser.h.

◆ m_ChoosedMaterial

mmaMaterial* albaGUIMaterialChooser::m_ChoosedMaterial
protected

Definition at line 104 of file albaGUIMaterialChooser.h.

◆ m_ChoosedMaterialId

long albaGUIMaterialChooser::m_ChoosedMaterialId
protected

Definition at line 105 of file albaGUIMaterialChooser.h.

◆ m_VmeMaterial

mmaMaterial* albaGUIMaterialChooser::m_VmeMaterial
protected

Definition at line 106 of file albaGUIMaterialChooser.h.

◆ m_Vme

albaVME* albaGUIMaterialChooser::m_Vme
protected

Definition at line 107 of file albaGUIMaterialChooser.h.

◆ m_Sphere

vtkSphereSource* albaGUIMaterialChooser::m_Sphere
protected

Definition at line 108 of file albaGUIMaterialChooser.h.

◆ m_Property

vtkProperty* albaGUIMaterialChooser::m_Property
protected

Definition at line 109 of file albaGUIMaterialChooser.h.

◆ m_Mapper

vtkPolyDataMapper* albaGUIMaterialChooser::m_Mapper
protected

Definition at line 110 of file albaGUIMaterialChooser.h.

◆ m_Actor

vtkActor* albaGUIMaterialChooser::m_Actor
protected

Definition at line 111 of file albaGUIMaterialChooser.h.

◆ m_OkButton

albaGUIButton* albaGUIMaterialChooser::m_OkButton
protected

Definition at line 112 of file albaGUIMaterialChooser.h.

◆ m_CancelButton

albaGUIButton* albaGUIMaterialChooser::m_CancelButton
protected

Definition at line 113 of file albaGUIMaterialChooser.h.

◆ m_ApplyButton

albaGUIButton* albaGUIMaterialChooser::m_ApplyButton
protected

Definition at line 114 of file albaGUIMaterialChooser.h.

◆ m_MaterialName

albaString albaGUIMaterialChooser::m_MaterialName
protected

Definition at line 116 of file albaGUIMaterialChooser.h.

◆ m_AmbientColor

wxColour albaGUIMaterialChooser::m_AmbientColor
protected

Definition at line 117 of file albaGUIMaterialChooser.h.

◆ m_AmbientIntensity

double albaGUIMaterialChooser::m_AmbientIntensity
protected

Definition at line 118 of file albaGUIMaterialChooser.h.

◆ m_DiffuseColor

wxColour albaGUIMaterialChooser::m_DiffuseColor
protected

Definition at line 119 of file albaGUIMaterialChooser.h.

◆ m_DiffuseIntensity

double albaGUIMaterialChooser::m_DiffuseIntensity
protected

Definition at line 120 of file albaGUIMaterialChooser.h.

◆ m_SpecularColor

wxColour albaGUIMaterialChooser::m_SpecularColor
protected

Definition at line 121 of file albaGUIMaterialChooser.h.

◆ m_SpecularIntensity

double albaGUIMaterialChooser::m_SpecularIntensity
protected

Definition at line 122 of file albaGUIMaterialChooser.h.

◆ m_SpecularPower

int albaGUIMaterialChooser::m_SpecularPower
protected

Definition at line 123 of file albaGUIMaterialChooser.h.

◆ m_Opacity

double albaGUIMaterialChooser::m_Opacity
protected

Definition at line 124 of file albaGUIMaterialChooser.h.

◆ m_Wire

int albaGUIMaterialChooser::m_Wire
protected

Definition at line 125 of file albaGUIMaterialChooser.h.

◆ m_Filename

albaString albaGUIMaterialChooser::m_Filename
protected

Definition at line 127 of file albaGUIMaterialChooser.h.


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