Public Slots | Public Member Functions | Protected Attributes | Friends | List of all members
pqNewMaterialDialog Class Reference

pqNewMaterialDialog is a dialog window that is used to create a new material in the material editor widget. More...

#include <pqNewMaterialDialog.h>

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

Public Slots

void accept () override
 Store the name and type of the material after accept. More...
 

Public Member Functions

 pqNewMaterialDialog (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~pqNewMaterialDialog () override
 
void setMaterialLibrary (vtkOSPRayMaterialLibrary *lib)
 Set the OSPRay material library used to check if the material name is available in OSPRay. More...
 
const QString & name ()
 Return the name of the material. More...
 
const QString & type ()
 Return the type of the material. More...
 
- Public Member Functions inherited from pqDialog
 pqDialog (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags{})
 
 ~pqDialog () override
 
void setUndoLabel (const QString &label)
 Set the label used for undo command. More...
 
void accept () override
 
void done (int r) override
 

Protected Attributes

vtkOSPRayMaterialLibrary * MaterialLibrary
 
QString Name
 
QString Type
 
- Protected Attributes inherited from pqDialog
QString UndoLabel
 

Friends

class pqInternals
 

Additional Inherited Members

- Signals inherited from pqDialog
void beginUndo (const QString &)
 Fired when dialog begins undo-able changes. More...
 
void endUndo ()
 Fired when dialog is done with undo-able changes. More...
 
- Protected Member Functions inherited from pqDialog
virtual void acceptInternal ()
 Subclassess should override this instead of accept();. More...
 
virtual void doneInternal (int)
 Subclassess should override this instead of done(). More...
 

Detailed Description

pqNewMaterialDialog is a dialog window that is used to create a new material in the material editor widget.

Definition at line 16 of file pqNewMaterialDialog.h.

Constructor & Destructor Documentation

◆ pqNewMaterialDialog()

pqNewMaterialDialog::pqNewMaterialDialog ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ ~pqNewMaterialDialog()

pqNewMaterialDialog::~pqNewMaterialDialog ( )
override

Member Function Documentation

◆ setMaterialLibrary()

void pqNewMaterialDialog::setMaterialLibrary ( vtkOSPRayMaterialLibrary *  lib)

Set the OSPRay material library used to check if the material name is available in OSPRay.

◆ name()

const QString& pqNewMaterialDialog::name ( )
inline

Return the name of the material.

Definition at line 33 of file pqNewMaterialDialog.h.

◆ type()

const QString& pqNewMaterialDialog::type ( )
inline

Return the type of the material.

Definition at line 37 of file pqNewMaterialDialog.h.

◆ accept

void pqNewMaterialDialog::accept ( )
overrideslot

Store the name and type of the material after accept.

This slot is connected in pqMaterialEditor to add a new material to the library.

Friends And Related Function Documentation

◆ pqInternals

friend class pqInternals
friend

Definition at line 57 of file pqNewMaterialDialog.h.

Member Data Documentation

◆ MaterialLibrary

vtkOSPRayMaterialLibrary* pqNewMaterialDialog::MaterialLibrary
protected

Definition at line 48 of file pqNewMaterialDialog.h.

◆ Name

QString pqNewMaterialDialog::Name
protected

Definition at line 50 of file pqNewMaterialDialog.h.

◆ Type

QString pqNewMaterialDialog::Type
protected

Definition at line 51 of file pqNewMaterialDialog.h.


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