CSGSurfaceList is a container for storing CSGSurface objects in the CSGBase object. More...
#include <CSGSurfaceList.h>
Protected Member Functions | |
| CSGSurfaceList () | |
| Default constructor. More... | |
| virtual | ~CSGSurfaceList ()=default |
| Destructor. More... | |
| std::unordered_map< std::string, std::unique_ptr< CSGSurface > > & | getSurfaceListMap () |
| Get map of all names to surfaces in surface list. More... | |
| std::vector< std::reference_wrapper< const CSGSurface > > | getAllSurfaces () const |
| Get list of references to all surfaces in surface list. More... | |
| CSGSurface & | getSurface (const std::string &name) const |
| Get a surface by name. More... | |
| CSGSurface & | addSurface (std::unique_ptr< CSGSurface > surf) |
| add a surface object to existing SurfaceList. More... | |
| void | renameSurface (const CSGSurface &surface, const std::string &name) |
| rename the specified surface More... | |
Protected Attributes | |
| std::unordered_map< std::string, std::unique_ptr< CSGSurface > > | _surfaces |
| Mapping of surface names to pointers of stored surface objects. More... | |
Friends | |
| class | CSGBase |
CSGSurfaceList is a container for storing CSGSurface objects in the CSGBase object.
Definition at line 20 of file CSGSurfaceList.h.
|
protected |
|
protectedvirtualdefault |
Destructor.
|
protected |
add a surface object to existing SurfaceList.
Ownership of surface will be transferred to surface list object that calls this function
| surf | CSGSurface to add |
Definition at line 42 of file CSGSurfaceList.C.
Referenced by CSG::CSGBase::addSurface(), CSG::CSGBase::joinSurfaceList(), and renameSurface().
|
protected |
Get list of references to all surfaces in surface list.
Definition at line 33 of file CSGSurfaceList.C.
Referenced by CSG::CSGBase::getAllSurfaces().
|
protected |
Get a surface by name.
| name | name of surface |
Definition at line 23 of file CSGSurfaceList.C.
Referenced by CSG::CSGBase::checkRegionSurfaces(), CSG::CSGBase::getSurface(), and CSG::CSGBase::getSurfaceByName().
|
inlineprotected |
Get map of all names to surfaces in surface list.
Definition at line 38 of file CSGSurfaceList.h.
Referenced by CSG::CSGBase::joinSurfaceList().
|
protected |
rename the specified surface
| name | new name of surface |
Definition at line 52 of file CSGSurfaceList.C.
Referenced by CSG::CSGBase::renameSurface().
|
friend |
Definition at line 80 of file CSGSurfaceList.h.
|
protected |
Mapping of surface names to pointers of stored surface objects.
Definition at line 77 of file CSGSurfaceList.h.
Referenced by addSurface(), getAllSurfaces(), getSurface(), getSurfaceListMap(), and renameSurface().
1.8.14