From b07d156a4d4ca9dc531556c69d0c6b20074d5ad7 Mon Sep 17 00:00:00 2001 From: Matthew D Jones <matthew.d.jones@tessella.com> Date: Tue, 16 Feb 2016 08:33:56 +0000 Subject: [PATCH] Re #15295 Clang format --- .../inc/MantidVatesAPI/vtkMDHexFactory.h | 38 ++++++++----------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/Vates/VatesAPI/inc/MantidVatesAPI/vtkMDHexFactory.h b/Vates/VatesAPI/inc/MantidVatesAPI/vtkMDHexFactory.h index 52407d6e065..9408b967e98 100644 --- a/Vates/VatesAPI/inc/MantidVatesAPI/vtkMDHexFactory.h +++ b/Vates/VatesAPI/inc/MantidVatesAPI/vtkMDHexFactory.h @@ -15,10 +15,8 @@ using Mantid::DataObjects::MDEventWorkspace; -namespace Mantid -{ -namespace VATES -{ +namespace Mantid { +namespace VATES { /// Round up to next multiple of factor coord_t roundUp(const coord_t num_to_round, const coord_t factor); @@ -26,13 +24,16 @@ coord_t roundUp(const coord_t num_to_round, const coord_t factor); /// Round down to previous multiple of factor coord_t roundDown(const coord_t num_to_round, const coord_t factor); -/** Class is used to generate vtkUnstructuredGrids from IMDEventWorkspaces. Utilises the non-uniform nature of the underlying workspace grid/box structure -as the basis for generating visualisation cells. The recursion depth through the box structure is configurable. +/** Class is used to generate vtkUnstructuredGrids from IMDEventWorkspaces. +Utilises the non-uniform nature of the underlying workspace grid/box structure +as the basis for generating visualisation cells. The recursion depth through the +box structure is configurable. @author Owen Arnold, Tessella plc @date 27/July/2011 - Copyright © 2010 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge National Laboratory & European Spallation Source + Copyright © 2010 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge +National Laboratory & European Spallation Source This file is part of Mantid. @@ -53,13 +54,13 @@ as the basis for generating visualisation cells. The recursion depth through the Code Documentation is available at: <http://doxygen.mantidproject.org> */ -class DLLExport vtkMDHexFactory : public vtkDataSetFactory -{ +class DLLExport vtkMDHexFactory : public vtkDataSetFactory { public: - /// Constructor - vtkMDHexFactory(ThresholdRange_scptr thresholdRange, const VisualNormalization normalizationOption, const size_t maxDepth = 1000); + vtkMDHexFactory(ThresholdRange_scptr thresholdRange, + const VisualNormalization normalizationOption, + const size_t maxDepth = 1000); /// Destructor virtual ~vtkMDHexFactory(); @@ -72,10 +73,7 @@ public: virtual void initialize(Mantid::API::Workspace_sptr); /// Get the name of the type. - virtual std::string getFactoryTypeName() const - { - return "vtkMDHexFactory"; - } + virtual std::string getFactoryTypeName() const { return "vtkMDHexFactory"; } virtual void setRecursionDepth(size_t depth); @@ -83,12 +81,12 @@ public: void setTime(double timeStep); private: - coord_t getNextBinBoundary(Mantid::API::IMDEventWorkspace_sptr imdws) const; - coord_t getPreviousBinBoundary(Mantid::API::IMDEventWorkspace_sptr imdws) const; + coord_t + getPreviousBinBoundary(Mantid::API::IMDEventWorkspace_sptr imdws) const; - template<typename MDE, size_t nd> + template <typename MDE, size_t nd> void doCreate(typename MDEventWorkspace<MDE, nd>::sptr ws) const; /// Template Method pattern to validate the factory before use. @@ -121,12 +119,8 @@ private: /// Time value. double m_time; - }; - - } } - #endif -- GitLab