![]() |
BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
|
#include <BT_MatML_Utilities_GUI.h>
Public Member Functions | |
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... | |
Static Public Member Functions | |
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... | |
Utility Functions
void Utilities::CollectBranchMaterials | ( | boost::shared_ptr< MatML_Doc > | doc, |
Material * | m, | ||
std::vector< Material * > & | ms | ||
) |
Collect Branch of Materials
m | |
ms |
Collect Branch of Materials in the Backwards direction
m | |
ms |
void Utilities::CollectBranchMaterialsForewards | ( | boost::shared_ptr< MatML_Doc > | doc, |
Material * | m, | ||
std::vector< Material * > & | ms | ||
) |
Collect Branch of Materials in the Forwards direction
m | |
ms |
Get the Materials BulkDetails->Class->Names
material |
|
static |
Gather Material* and Material->ID paired together in a list.
MatMLDoc | |
ClassFilters |
|
static |
Gathers within the MatMLDoc all of the materials->BulkDetails->Class->Name
MatMLDoc |
|
static |
|
static |
|
static |
Creates a string of the Labels used in wxWidgets displays
summary> Takes the Label, used in wxWidgets displays, and pulls out the Id
|
static |
Searches the TreeCtrl to find the MatML Element
Find the associated TreeCtrl
MatMLTreeCtrl | |
material |
|
static |
Converts list of xml_schema::string to wxArrayString
stdstr |
|
static |
Converts wxArrayString to std::list of xml_schema::string
wxstr |