gsystem
Loading...
Searching...
No Matches
GSystemCADFactory Class Reference

Load a system from CAD assets (e.g. STL) found in a directory. More...

#include <systemCadFactory.h>

Public Member Functions

 GSystemFactory (const std::shared_ptr< GOptions > &g)
 Construct the factory with shared configuration.
 
- Public Member Functions inherited from GSystemFactory
 ~GSystemFactory () override=default
 
 GSystemFactory (const std::shared_ptr< GOptions > &g)
 Construct the factory with shared configuration.
 
void loadSystem (GSystem *system)
 Load a system by invoking the concrete factory steps.
 
virtual void closeSystem ()
 Factory cleanup hook.
 
void addPossibleFileLocation (const std::string &fl)
 Add a candidate directory for file searches.
 
- Public Member Functions inherited from GBase< GSystemFactory >
 GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
 
 GBase (const std::shared_ptr< GLogger > &logger)
 
 GBase (const GBase &)=default
 
 GBase (GBase &&) noexcept=default
 
virtual ~GBase ()
 
GBaseoperator= (const GBase &)=default
 
GBaseoperator= (GBase &&) noexcept=default
 

Additional Inherited Members

- Protected Attributes inherited from GSystemFactory
std::vector< std::string > possibleLocationOfFiles
 List of candidate directories used by file-based factories.
 
- Protected Attributes inherited from GBase< GSystemFactory >
std::shared_ptr< GLoggerlog
 

Detailed Description

Geometry loading behavior:

  • The system file path is resolved against possibleLocationOfFiles.
  • The directory is scanned for .stl files.
  • Each STL is imported as a volume via addVolumeFromFile().

Optional YAML modifier hook:

  • If a file named cad__<variation>.yaml is found in the directory, it is parsed.
  • The current implementation logs lookups; a block of commented code shows intended application of per-volume overrides (shift/tilt/exists/mother/color/material/digitization/identifier).
Note
Materials loading is currently empty for CAD-based systems.

Definition at line 24 of file systemCadFactory.h.

Member Function Documentation

◆ GSystemFactory()

GSystemFactory::GSystemFactory ( const std::shared_ptr< GOptions > & g)
inlineexplicit
Parameters
gShared options/configuration instance.

Definition at line 44 of file systemFactory.h.


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