Skip to content

Commit

Permalink
Refs #6352. Wiring MDHW 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 8ad7313 commit 8a2251a
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 @@ -22,6 +22,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 @@ -68,6 +68,26 @@ const char* vtkMDHWSource::GetInputGeometryXML()
}
}

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

int vtkMDHWSource::RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class VTK_EXPORT vtkMDHWSource : public vtkUnstructuredGridAlgorithm
void updateAlgorithmProgress(double, const std::string&);
/// 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 8a2251a

Please sign in to comment.