ViewerConfigurationFactory::ViewerConfigurationFactory(VisletManager& visletManager) :VisletFactory("ViewerConfiguration",visletManager) { #if 0 /* Insert class into class hierarchy: */ VisletFactory* visletFactory=visletManager.loadClass("Vislet"); visletFactory->addChildClass(this); addParentClass(visletFactory); #endif /* Load class settings: */ Misc::ConfigurationFileSection cfs=visletManager.getVisletClassSection(getClassName()); /* Read the configuration unit of measurement: */ std::string unitName=cfs.retrieveString("./unitName","inch"); Scalar unitFactor=cfs.retrieveValue<Scalar>("./unitFactor",Scalar(1)); configUnit=Geometry::LinearUnit(unitName.c_str(),unitFactor); /* Set vislet class' factory pointer: */ ViewerConfiguration::factory=this; }
SceneGraphViewerFactory::SceneGraphViewerFactory(VisletManager& visletManager) :VisletFactory("SceneGraphViewer",visletManager) { #if 0 /* Insert class into class hierarchy: */ VisletFactory* visletFactory=visletManager.loadClass("Vislet"); visletFactory->addChildClass(this); addParentClass(visletFactory); #endif /* Set tool class' factory pointer: */ SceneGraphViewer::factory=this; }