-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
315 changed files
with
9,395 additions
and
2,399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,3 +139,5 @@ Thumbs.db | |
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
/Code/Mantid/Build/CMake/OutputBinaryTo.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
Code/Mantid/Framework/API/inc/MantidAPI/IMDHistoWorkspace.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#ifndef MANTID_API_IMDHISTOWORKSPACE_H_ | ||
#define MANTID_API_IMDHISTOWORKSPACE_H_ | ||
|
||
#include "MantidKernel/System.h" | ||
#include "MantidAPI/IMDWorkspace.h" | ||
|
||
|
||
namespace Mantid | ||
{ | ||
namespace API | ||
{ | ||
|
||
/** Abstract interface to MDHistoWorkspace, | ||
for use in exposing to Python. | ||
@date 2011-11-09 | ||
Copyright © 2011 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
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://svn.mantidproject.org/mantid/trunk/Code/Mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class DLLExport IMDHistoWorkspace : public IMDWorkspace | ||
{ | ||
public: | ||
IMDHistoWorkspace(); | ||
virtual ~IMDHistoWorkspace(); | ||
|
||
/// See the MDHistoWorkspace definition for descriptions of these | ||
virtual coord_t getInverseVolume() const = 0; | ||
virtual signal_t * getSignalArray() = 0; | ||
virtual signal_t * getErrorSquaredArray() = 0; | ||
virtual void setTo(signal_t signal, signal_t errorSquared) = 0; | ||
virtual Mantid::Kernel::VMD getCenter(size_t linearIndex) const = 0; | ||
virtual void setSignalAt(size_t index, signal_t value) = 0; | ||
virtual void setErrorSquaredAt(size_t index, signal_t value) = 0; | ||
virtual signal_t getErrorAt(size_t index) const = 0; | ||
virtual signal_t getErrorAt(size_t index1, size_t index2) const = 0; | ||
virtual signal_t getErrorAt(size_t index1, size_t index2, size_t index3) const = 0; | ||
virtual signal_t getErrorAt(size_t index1, size_t index2, size_t index3, size_t index4) const = 0; | ||
virtual signal_t getSignalAt(size_t index) const = 0; | ||
virtual signal_t getSignalAt(size_t index1, size_t index2) const = 0; | ||
virtual signal_t getSignalAt(size_t index1, size_t index2, size_t index3) const = 0; | ||
virtual signal_t getSignalAt(size_t index1, size_t index2, size_t index3, size_t index4) const = 0; | ||
virtual signal_t getSignalNormalizedAt(size_t index) const = 0; | ||
virtual signal_t getSignalNormalizedAt(size_t index1, size_t index2) const = 0; | ||
virtual signal_t getSignalNormalizedAt(size_t index1, size_t index2, size_t index3) const = 0; | ||
virtual signal_t getSignalNormalizedAt(size_t index1, size_t index2, size_t index3, size_t index4) const = 0; | ||
virtual signal_t getErrorNormalizedAt(size_t index) const = 0; | ||
virtual signal_t getErrorNormalizedAt(size_t index1, size_t index2) const = 0; | ||
virtual signal_t getErrorNormalizedAt(size_t index1, size_t index2, size_t index3) const = 0; | ||
virtual signal_t getErrorNormalizedAt(size_t index1, size_t index2, size_t index3, size_t index4) const = 0; | ||
|
||
virtual signal_t & errorSquaredAt(size_t index) = 0; | ||
virtual signal_t & signalAt(size_t index) = 0; | ||
virtual size_t getLinearIndex(size_t index1, size_t index2) const = 0; | ||
virtual size_t getLinearIndex(size_t index1, size_t index2, size_t index3) const = 0; | ||
virtual size_t getLinearIndex(size_t index1, size_t index2, size_t index3, size_t index4) const = 0; | ||
|
||
virtual double & operator [](const size_t & index) = 0; | ||
}; | ||
|
||
/// Shared pointer to the IMDWorkspace base class | ||
typedef boost::shared_ptr<IMDHistoWorkspace> IMDHistoWorkspace_sptr; | ||
/// Shared pointer to the IMDWorkspace base class (const version) | ||
typedef boost::shared_ptr<const IMDHistoWorkspace> IMDHistoWorkspace_const_sptr; | ||
|
||
|
||
} // namespace API | ||
} // namespace Mantid | ||
|
||
#endif /* MANTID_API_IMDHISTOWORKSPACE_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.