BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
Public Member Functions | Public Attributes | List of all members
bellshire::Material_GUI Class Reference
Inheritance diagram for bellshire::Material_GUI:
bellshire::Material_GUI_Base bellshire::MatML_Base_GUI bellshire::Utilities

Public Member Functions

 Material_GUI ()
 Constructor for the derived class
 
 Material_GUI (wxWindow *parent)
 Constructor for the derived class More...
 
virtual ~Material_GUI ()
 Destructor for the derived class
 
void SetEvtHandlerVar (TreeCtrlSorted *&MatMLTreeCtrl, ::boost::shared_ptr< MatML_Doc > &MatMLDoc)
 Function used to set up this objects member variables which is used in the EventHandler's functions. Required before using the derived class's event handler functions. More...
 
void SetMatMLTreeCtrl (TreeCtrlSorted *&MatMLTreeCtrl)
 Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's event handler functions. More...
 
void SetMatMLDoc (::boost::shared_ptr< MatML_Doc > &MatMLDoc)
 Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's event handler functions. More...
 
void SetMatMLItemToCopy (const ::boost::any &MatMLItemToCopy)
 
void OnMaterialLayersTextCtrl (wxCommandEvent &event)
 
void OnMaterialLFORTextCtrl (wxCommandEvent &event)
 
void OnInsertMaterial (wxCommandEvent &event)
 
void OnInsertBulkDetails (wxCommandEvent &event)
 
void OnInsertComponentDetails (wxCommandEvent &event)
 
void OnInsertGraphs (wxCommandEvent &event)
 
void OnInsertGlossary (wxCommandEvent &event)
 
void OnDeleteBulkDetails (wxCommandEvent &event)
 
void OnDeleteComponentDetails (wxCommandEvent &event)
 
void OnDeleteGraphs (wxCommandEvent &event)
 
void OnDeleteGlossary (wxCommandEvent &event)
 
void OnPasteBulkDetails (wxCommandEvent &event)
 
void OnPasteComponentDetails (wxCommandEvent &event)
 
void OnPasteGraphs (wxCommandEvent &event)
 
void OnPasteGlossary (wxCommandEvent &event)
 
void OnCopyMaterial (wxCommandEvent &event)
 
void OnBumpDown (wxCommandEvent &event)
 
void OnBumpUp (wxCommandEvent &event)
 
- Public Member Functions inherited from bellshire::Material_GUI_Base
 Material_GUI_Base ()
 Constructor for the base class
 
 Material_GUI_Base (wxWindow *parent)
 Constructor for the base class More...
 
void Show (bool show=true)
 
wxNotebook * get ()
 
void ReplaceIDwithUuid (MatML_Doc &doc)
 This was used only to make the old data format compatible with the new arrangement
 
void Update (Material *element)
 Updates the MatML_GUI from the MatML element More...
 
void SetConnect ()
 Set up the connect between the MatML_GUI and the functions
 
virtual void OnMaterialLayersTextCtrl (wxCommandEvent &event)
 
virtual void OnMaterialLFORTextCtrl (wxCommandEvent &event)
 
virtual void OnInsertMaterial (wxCommandEvent &event)
 
virtual void OnInsertBulkDetails (wxCommandEvent &event)
 
virtual void OnInsertComponentDetails (wxCommandEvent &event)
 
virtual void OnInsertGraphs (wxCommandEvent &event)
 
virtual void OnInsertGlossary (wxCommandEvent &event)
 
virtual void OnDeleteBulkDetails (wxCommandEvent &event)
 
virtual void OnDeleteComponentDetails (wxCommandEvent &event)
 
virtual void OnDeleteGraphs (wxCommandEvent &event)
 
virtual void OnDeleteGlossary (wxCommandEvent &event)
 
virtual void OnPasteBulkDetails (wxCommandEvent &event)
 
virtual void OnPasteComponentDetails (wxCommandEvent &event)
 
virtual void OnPasteGraphs (wxCommandEvent &event)
 
virtual void OnPasteGlossary (wxCommandEvent &event)
 
virtual void OnCopyMaterial (wxCommandEvent &event)
 
virtual void OnBumpDown (wxCommandEvent &event)
 
virtual void OnBumpUp (wxCommandEvent &event)
 
- Public Member Functions inherited from bellshire::MatML_Base_GUI
bool Warning (::std::string msg)
 
template<class MatML_Class >
MatML_Class * GetSelMatML (TreeCtrlSorted *MatMLTreeCtrl)
 
template<class MatML_Class >
MatML_Class * GetSelParentMatML (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupSel (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupStrongTypeSel (TreeCtrlSorted *MatMLTreeCtrl)
 
template<typename MatML_ParentClass , typename GUI_ParentClass >
void SetupSelParent (TreeCtrlSorted *MatMLTreeCtrl)
 
template<class InputIterator , class T >
InputIterator find (InputIterator first, InputIterator last, const T &val)
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertChild (MatML_ContClass &MatML_Cont)
 Does Nothing. Child are required in the MatML structure and are inserted automatically through the Default classes. More...
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertContChild (MatML_ContClass &MatML_Cont)
 Inserts the MatML Data into the MatML container element More...
 
template<typename MatML_Class , typename MatML_ContClass >
void InsertSeqContChild (MatML_ContClass &MatML_Cont)
 Inserts the MatML Data into the MatML sequence container element More...
 
template<typename MatML_ContClass >
void DeleteChild (MatML_ContClass &MatML)
 Does Nothing. Child are REQUIRED in the MatML structure and are inserted automatically through the Default classes. More...
 
template<typename MatML_ContClass >
void DeleteContChild (MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void DeleteSeqContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<typename MatML_Class , typename MatML_ContClass >
void PasteSeqContChild (MatML_Class *MatML, MatML_ContClass &MatML_Cont)
 
template<class MatML_Class >
void SwapHavingId (MatML_Class *matml0, MatML_Class *matml1)
 Swap function with MatML Classes that have required Id. This has the added complication that the id's can not be duplicated during the swap. More...
 
template<class MatML_Class >
void SwapHavingOptionalId (MatML_Class *matml0, MatML_Class *matml1)
 Swap function with MatML Classes that have Optional Id. This has the added complication that the id's can not be duplicated during the swap. More...
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDown (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownStrongtype (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownHavingId (MatML_Class *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpDown with the added complication that the Required Id's cannot be duplicated during the swap. More...
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpDownHavingOptionalId (MatML_Class *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpDown with the added complication that the optional Id's cannot be duplicated during the swap. More...
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpDown (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &itemId, MatML *first, wxTreeItemId &nextitemId, MatML *second)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpUp (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_Class , class MatML_ContClass >
std::pair< MatML_Class *, MatML_Class * > MatMLFindAndBumpUpStrongtype (MatML_Class *matml, MatML_ContClass &cont)
 
template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > MatMLFindAndBumpUpHavingId (typename MatML_ContClass::value_type *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpUp with the added complication that the Required Id's cannot be duplicated during the swap. More...
 
template<class MatML_ContClass >
std::pair< typename MatML_ContClass::value_type *, typename MatML_ContClass::value_type * > MatMLFindAndBumpUpHavingOptionalId (typename MatML_ContClass::value_type *matml, MatML_ContClass &cont)
 Similar to MatMLFindAndBumpUp with the added complication that the optional Id's cannot be duplicated during the swap. More...
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpUp (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &previtemId, MatML *first, wxTreeItemId &itemId, MatML *second)
 
template<class Child_GUI , class MatML >
void MatMLTreeCtrlBumpUpStrongtype (TreeCtrlSorted *&treectrl, wxTreeItemId &itemParentId, wxTreeItemId &previtemId, MatML *first, wxTreeItemId &itemId, MatML *second)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUp (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpStrongtype (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpHavingId (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpUpHavingOptionalId (boost::any anyptr, boost::any anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId itemId, wxTreeItemId nextitemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDown (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownStrongtype (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownHavingId (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
template<class MatML_Class , class MatML_ParentClass , class MatML_ContClass , class MatML_GUI , MatML_ContClass &(MatML_ParentClass::*)() cont_func>
void IndividualBumpDownHavingOptionalId (boost::any &anyptr, boost::any &anyptrparent, TreeCtrlSorted *MatMLTreeCtrl, wxTreeItemId itemParentId, wxTreeItemId previtemId, wxTreeItemId itemId)
 
- Public Member Functions inherited from bellshire::Utilities
void CollectBranchMaterials (boost::shared_ptr< MatML_Doc > doc, Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials More...
 
void CollectBranchMaterialsBackwards (Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials in the Backwards direction More...
 
void CollectBranchMaterialsForewards (boost::shared_ptr< MatML_Doc > doc, Material *m, std::vector< Material * > &ms)
 Collect Branch of Materials in the Forwards direction More...
 

Public Attributes

TreeCtrlSortedm_MatMLTreeCtrl
 
::boost::shared_ptr< MatML_Docm_MatMLDoc
 
::boost::any m_MatMLItemToCopy
 
- Public Attributes inherited from bellshire::Material_GUI_Base
wxNotebook * m_GUI
 
ID_GUIm_Material_ID_GUI
 
wxTextCtrl * m_MaterialLayersTextCtrl
 
wxTextCtrl * m_MaterialLFORTextCtrl
 

Additional Inherited Members

- Static Public Member Functions inherited from bellshire::Material_GUI_Base
static wxNotebook * Create (wxWindow *parent, ID_GUI *&Material_ID_GUI, wxTextCtrl *&MaterialLayersTextCtrl, wxTextCtrl *&MaterialLFORTextCtrl)
 Create GUI for the Material MatML Data and Info. Static function More...
 
static wxTreeItemId SetupMatMLTreeCtrl (TreeCtrlSorted *&MatMLTreeCtrl, const wxTreeItemId &ParentId, Material &Element, const wxTreeItemId &PreviousId)
 This sets up the Parent MatML Data into a wxTreeCtrl element and then call on the Children to do the same. Static Function More...
 
static wxTreeItemId SetupBranch (TreeCtrlSorted *&MatMLTreeCtrl, wxWindow *&ParentId, MatML_Doc &Element, std::vector< Material * > &materials)
 This set-up the Parent MatML Data into a wxTreeCtrl element and then call on the Children to do the same. Static Function More...
 
- Static Public Member Functions inherited from bellshire::Utilities
static wxTreeItemId MatMLtoTreeCtrl (TreeCtrlSorted *MatMLTreeCtrl, Material *MatMLMaterial)
 Searches the TreeCtrl to find the MatML Element More...
 
static std::list< std::pair< Material *, xml_schema::string > > GetMaterialIDPair (::boost::shared_ptr< MatML_Doc > MatMLDoc, std::list< xml_schema::string > ClassFilters=std::list< xml_schema::string >())
 Gather Material* and Material->ID paired together in a list. More...
 
static bool InFilter (Material *material, std::list< xml_schema::string > Filter)
 Determines if the Material has a Class->Name for each of the ClassFilter strings If the filter is empty then the default is true. More...
 
static bool InFilter (Material *material, xml_schema::string *Filter)
 Determines if the Material has a Class->Name that matches the ClassFilter string More...
 
static std::list< Name * > GetMatMLDocClassNames (::boost::shared_ptr< MatML_Doc > MatMLDoc)
 Gathers within the MatMLDoc all of the materials->BulkDetails->Class->Name More...
 
static std::list< Name * > GetBulkDetailsClassNames (Material *material)
 Get the Materials BulkDetails->Class->Names More...
 
static bool CompareName (Name *&first, Name *&second)
 Comparision of the First Name to the Second Name More...
 
static bool SameName (Name *&first, Name *&second)
 Compare if the First Name and Second Name are the same a binary predicate implemented as a function More...
 
::std::string Label (::std::string name, ::std::string id)
 Creates a string of the Labels used in wxWidgets displays More...
 
::std::string LabelToId (::std::string label)
 
static std::list< xml_schema::string > wx2std (const wxArrayString &wxstr)
 Converts wxArrayString to std::list of xml_schema::string More...
 
static wxArrayString std2wx (const std::list< xml_schema::string > &stdstr)
 Converts list of xml_schema::string to wxArrayString More...
 

Constructor & Destructor Documentation

◆ Material_GUI()

Material_GUI::Material_GUI ( wxWindow *  parent)

Constructor for the derived class

Parameters
parent
MatMLTreeCtrl

Member Function Documentation

◆ OnBumpDown()

void Material_GUI::OnBumpDown ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnBumpUp()

void Material_GUI::OnBumpUp ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnCopyMaterial()

void Material_GUI::OnCopyMaterial ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnDeleteBulkDetails()

void Material_GUI::OnDeleteBulkDetails ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnDeleteComponentDetails()

void Material_GUI::OnDeleteComponentDetails ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnDeleteGlossary()

void Material_GUI::OnDeleteGlossary ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnDeleteGraphs()

void Material_GUI::OnDeleteGraphs ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnInsertBulkDetails()

void Material_GUI::OnInsertBulkDetails ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnInsertComponentDetails()

void Material_GUI::OnInsertComponentDetails ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnInsertGlossary()

void Material_GUI::OnInsertGlossary ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnInsertGraphs()

void Material_GUI::OnInsertGraphs ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnInsertMaterial()

void Material_GUI::OnInsertMaterial ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnMaterialLayersTextCtrl()

void Material_GUI::OnMaterialLayersTextCtrl ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnMaterialLFORTextCtrl()

void Material_GUI::OnMaterialLFORTextCtrl ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnPasteBulkDetails()

void Material_GUI::OnPasteBulkDetails ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnPasteComponentDetails()

void Material_GUI::OnPasteComponentDetails ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnPasteGlossary()

void Material_GUI::OnPasteGlossary ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ OnPasteGraphs()

void Material_GUI::OnPasteGraphs ( wxCommandEvent &  event)
virtual

Reimplemented from bellshire::Material_GUI_Base.

◆ SetEvtHandlerVar()

void Material_GUI::SetEvtHandlerVar ( TreeCtrlSorted *&  MatMLTreeCtrl,
::boost::shared_ptr< MatML_Doc > &  MatMLDoc 
)

Function used to set up this objects member variables which is used in the EventHandler's functions. Required before using the derived class's event handler functions.

Parameters
MatMLTreeCtrl

◆ SetMatMLDoc()

void Material_GUI::SetMatMLDoc ( ::boost::shared_ptr< MatML_Doc > &  MatMLDoc)

Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's event handler functions.

Parameters
MatMLTreeCtrl

◆ SetMatMLTreeCtrl()

void Material_GUI::SetMatMLTreeCtrl ( TreeCtrlSorted *&  MatMLTreeCtrl)

Set the Event Handler associated with the MatML wxTreeCtrl Required before using the derived class's event handler functions.

Parameters
MatMLTreeCtrl

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