Skip to content

Commit

Permalink
Refs #6352. Wiring MDEW PV plugin for special coordinates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jan 16, 2013
1 parent d87c51a commit 2060174
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
information_only="1">
<SimpleStringInformationHelper />
</StringVectorProperty>
<IntVectorProperty
name="SpecialCoordinates"
command="GetSpecialCoordinates"
number_of_elements="1"
information_only="1"
default_values="0">
<SimpleIntInformationHelper />
</IntVectorProperty>
<StringVectorProperty
name="InputGeometryXML"
command="GetInputGeometryXML"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,26 @@ const char* vtkMDEWSource::GetInputGeometryXML()
}
}

/**
* Gets the current value of the special coordinates associated with the
* workspace.
* @return the special coordinates value
*/
int vtkMDEWSource::GetSpecialCoordinates()
{
if (NULL == m_presenter)
{
return 0;
}
try
{
return m_presenter->getSpecialCoordinates();
}
catch (std::runtime_error &)
{
return 0;
}
}

int vtkMDEWSource::RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class VTK_EXPORT vtkMDEWSource : public vtkUnstructuredGridAlgorithm
void updateAlgorithmProgress(double, const std::string& message);
/// Getter for the input geometry xml
const char* GetInputGeometryXML();
/// Getter for the special coodinate value
int GetSpecialCoordinates();
/// Getter for the workspace name
const char* GetWorkspaceName();
/// Getter for the workspace type
Expand Down

0 comments on commit 2060174

Please sign in to comment.