7 #include "gear/GearMgr.h" 8 #include "gearimpl/Util.h" 9 #include "gearxml/GearXML.h" 27 const void *
handle()
const ;
34 "The GEAR geometry XML file" } ;
36 std::unique_ptr<gear::GearMgr>
_gearMgr {
nullptr} ;
44 setDescription(
"Gear geometry plugin. Use geoMgr->geometry<gear::GearMgr>() to access the geometry" ) ;
51 _gearMgr.reset( gearXML.createGearMgr() ) ;
69 return std::type_index(
typeid( gear::GearMgr ) ) ;
#define MARLINMT_DECLARE_GEOMETRY(Class)
GearGeometry class Responsible for loading Gear geometry in MarlinMT.
LoggerPtr _logger
The logger instance.
std::type_index typeIndex() const
Get a type index object from the geometry handle.
void setDescription(const std::string &desc)
Set the component description.
GearGeometry & operator=(const GearGeometry &)=delete
const void * handle() const
Get a handle on the geometry instance.
void loadGeometry()
Load the geometry.
StringParameter _gearFile
void dumpGeometry() const
Dump the geometry in the console.
GeometryPlugin class Responsible for loading geometry in Marlin and providing access to it through th...
void destroy()
Cleanup geometry.
std::unique_ptr< gear::GearMgr > _gearMgr
The Gear manager handling geometry.