The names of an object's regions, materials, surfaces and surface labels, from its expression's index, and of surface groups: what a viewer shows a piece of surface or a group by (Render::view()).
More...
|
|
| RegionNames ()=default |
| | No names: everything is named by its number.
|
| |
| template<class T > |
| | RegionNames (const ExprIndex< T > &a_index) |
| | The names an expression's index gives: a region by its name and its material ("2 wall (steel)"), a surface by its label (or its number).
|
| |
| uint32_t | addDomain (std::string a_name, const DomainSetup &a_domain) |
| | Register a domain: its name, and how it is made (its subdomains and surface groups, see DomainSetup). The first registered is the active one, whose surface groups the names name and a viewer shows.
|
| |
| uint32_t | getNumDomains () const noexcept |
| | How many domains are registered.
|
| |
| DomainSetup & | getDomain (const uint32_t a_domain) |
| | How a domain is made, to edit.
|
| |
| const DomainSetup & | getDomain (const uint32_t a_domain) const |
| | How a domain is made.
|
| |
| const std::string & | domainName (const uint32_t a_domain) const |
| | A domain's name.
|
| |
| void | setActiveDomain (const uint32_t a_domain) |
| | Make a domain the active one: the one whose surface groups setSurfaceGroup() and surfaceGroup() name.
|
| |
| uint32_t | getActiveDomain () const noexcept |
| | The active domain.
|
| |
| void | setSurfaceGroup (const uint32_t a_domain, const uint32_t a_group, std::string a_name) |
| | Name a surface group of a domain.
|
| |
| void | setSubdomain (const uint32_t a_domain, const uint32_t a_subdomain, std::string a_name) |
| | Name a subdomain of a domain ("fluid", "solid").
|
| |
| std::string | subdomain (const uint32_t a_subdomain, const bool a_number=true) const |
| | A subdomain's name in the active domain, with its number or not: "1 solid" or "solid"; "subdomain 1".
|
| |
| void | setColor (std::string a_name, const Vec3T< double > &a_color) |
| | Give a name a color: a region's, a material's, a surface label's or a surface group's. Colored by that kind of key, its surfaces take it; others take the palette's.
|
| |
| bool | colorOf (const RegionColoring a_coloring, const uint32_t a_key, Vec3T< double > &a_color) const |
| | The color a key has, colored by a kind of key: by the name of the region, material, surface label (a surface's too) or surface group it is. Colored by region, a region without a color of its own takes its material's, so that colors given to materials (the usual case) are kept when the coloring turns to regions.
|
| |
| const SurfaceInventory & | getInventory () const noexcept |
| | What the index says about the surfaces: every surface, its parts, the pairs of regions it may separate (see possiblePieces(), coverageOf()).
|
| |
| uint32_t | materialOf (const uint32_t a_region) const noexcept |
| | A region's material.
|
| |
| void | setSurface (const uint32_t a_surface, std::string a_name) |
| | Name a surface (by default it is named by its label): where it comes from, say ("cylinder, model.ebg:6").
|
| |
| void | setPickedByLabel (const uint32_t a_surface, const bool a_byLabel=true) |
| | Pick a surface by its labels rather than its parts: a click on it picks the faces labeled as the one clicked (a mesh's face group), or the whole surface when the face has no label of its own. For a mesh, whose parts are its faces, which a model names only through its face groups.
|
| |
| bool | pickedByLabel (const uint32_t a_surface) const noexcept |
| | Whether a surface is picked by its labels (see setPickedByLabel()).
|
| |
| void | setSurfaceGroup (const uint32_t a_group, std::string a_name) |
| | Name a surface group of the active domain (with no domain registered, of those a viewer shows).
|
| |
| void | removeSurfaceGroup (const uint32_t a_group) |
| | Forget a group's name; the names of the groups after it move down by one (as SurfaceGroups::removeSurfaceGroup() numbers them).
|
| |
| std::string | region (const uint32_t a_region, const bool a_number=true) const |
| | A region's name and material, with its number or not: "2 wall (steel)" or "wall (steel)"; the background is "background", a region without a name "region 2".
|
| |
| std::string | material (const uint32_t a_material, const bool a_number=true) const |
| | A material's name, with its number or not.
|
| |
| std::string | surface (const uint32_t a_surface, const bool a_number=true) const |
| | A surface's name, with its number or not: its label's, or "surface 3".
|
| |
| std::string | surfaceLabel (const uint32_t a_label, const bool a_number=true) const |
| | A surface label's name, with its number or not.
|
| |
| std::string | surfaceGroup (const uint32_t a_group, const bool a_number=true) const |
| | A surface group's name, with its number or not: "0 inlet" or "inlet"; "surface group 0".
|
| |
|
|
SurfaceInventory | m_inventory |
| | The surfaces, from the index.
|
| |
|
std::vector< DomainSetup > | m_domains |
| | The domains, their names and their surface groups' names; and the active one, or None.
|
| |
|
std::vector< std::string > | m_domainNames |
| | The domains' names.
|
| |
|
std::vector< std::vector< std::string > > | m_domainSubdomains |
| | Each domain's subdomains' names.
|
| |
|
std::vector< std::vector< std::string > > | m_domainGroups |
| | Each domain's surface groups' names.
|
| |
|
uint32_t | m_activeDomain = None |
| | The active domain, or None.
|
| |
|
std::vector< std::string > | m_regionNames |
| | The regions' own names (RegionName()), empty for none; the lists below too leave the unnamed empty.
|
| |
|
std::vector< uint32_t > | m_regionMaterials |
| | Each region's material label number, or None.
|
| |
|
std::map< std::string, Vec3T< double > > | m_colors |
| | The colors given to names.
|
| |
|
std::vector< std::string > | m_materials |
| | The materials' names.
|
| |
|
std::vector< std::string > | m_surfaces |
| | The surfaces' names.
|
| |
|
std::vector< bool > | m_pickedByLabel |
| | Which surfaces are picked by their labels (see setPickedByLabel()).
|
| |
|
std::vector< std::string > | m_surfaceLabels |
| | The surface labels' names.
|
| |
|
std::vector< std::string > | m_surfaceGroups |
| | The groups' names.
|
| |
The names of an object's regions, materials, surfaces and surface labels, from its expression's index, and of surface groups: what a viewer shows a piece of surface or a group by (Render::view()).
Host only. Anything without a name, or beyond the lists, is named by its kind and number ("region 3", "surface group 1"). Names can also be given colors (setColor()), which a viewer colors the surfaces by.