Newer
Older
#ifndef MANTID_GEOMETRY_COMPONENTVISITOR_H
#define MANTID_GEOMETRY_COMPONENTVISITOR_H
#include <cstddef>
namespace Mantid {
namespace Geometry {
class ICompAssembly;
class IDetector;
class IComponent;
/** ComponentVisitor : Visitor for IComponents. Enables parsing of a full doubly
linked InstrumentTree without need for dynamic casts. Public methods are
called by
accepting IComponent
Copyright © 2017 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge
National Laboratory & European Spallation Source
This file is part of Mantid.
Mantid is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Mantid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
virtual size_t registerComponentAssembly(const ICompAssembly &assembly) = 0;
virtual size_t registerGenericComponent(const IComponent &component) = 0;
registerInfiniteComponent(const Mantid::Geometry::IComponent &component) = 0;
virtual size_t
registerGenericObjComponent(const IObjComponent &objComponent) = 0;
virtual size_t
registerInfiniteObjComponent(const IObjComponent &component) = 0;
virtual size_t registerDetector(const IDetector &detector) = 0;
virtual size_t registerRectangularBank(const ICompAssembly &bank) = 0;
virtual size_t registerStructuredBank(const ICompAssembly &bank) = 0;
virtual size_t registerObjComponentAssembly(const ObjCompAssembly &obj) = 0;
} // namespace Geometry
} // namespace Mantid