-
Notifications
You must be signed in to change notification settings - Fork 123
/
vtkMD0DFactory.cpp
49 lines (43 loc) · 1.28 KB
/
vtkMD0DFactory.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "MantidVatesAPI/vtkMD0DFactory.h"
#include "MantidAPI/IMDWorkspace.h"
#include "MantidVatesAPI/vtkNullUnstructuredGrid.h"
#include "MantidVatesAPI/ProgressAction.h"
using namespace Mantid::API;
namespace Mantid
{
namespace VATES
{
/**
Constructor
@param thresholdRange : Thresholding range functor
@param scalarName : Name to give to signal
*/
vtkMD0DFactory::vtkMD0DFactory(ThresholdRange_scptr thresholdRange, const std::string& scalarName) : m_thresholdRange(thresholdRange), m_scalarName(scalarName)
{
}
/// Destructor
vtkMD0DFactory::~vtkMD0DFactory()
{
}
/**
Create the vtkStructuredGrid from the provided workspace
@param progressUpdating: Reporting object to pass progress information up the stack.
@return fully constructed vtkDataSet.
*/
vtkDataSet* vtkMD0DFactory::create(ProgressAction& progressUpdating) const
{
(void) progressUpdating;
vtkNullUnstructuredGrid nullGrid;
vtkUnstructuredGrid *visualDataSet = nullGrid.createNullData();
return visualDataSet;
}
/// Initalize with a target workspace.
void vtkMD0DFactory::initialize(Mantid::API::Workspace_sptr ws)
{
}
/// Validate the workspace
void vtkMD0DFactory::validate() const
{
}
}
}