Skip to content

Commit

Permalink
Refs #11053 Adding meta data stuff to scale workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonPiccardoSelg committed Mar 6, 2015
1 parent 8c81d2f commit f864b70
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -19,6 +19,9 @@
<DoubleVectorProperty name="MinValue" command="GetMinValue" information_only="1"/>
<DoubleVectorProperty name="MaxValue" command="GetMaxValue" information_only="1"/>
<StringVectorProperty name="Instrument" command="GetInstrument" number_of_elements="1" information_only="1"/>
<IntVectorProperty name="SpecialCoordinates" command="GetSpecialCoordinates" number_of_elements="1" information_only="1" default_values="0">
<SimpleIntInformationHelper />
</IntVectorProperty>
</SourceProxy>
</ProxyGroup>
<!-- End ScaleWorkspace -->
Expand Down
Expand Up @@ -19,6 +19,7 @@ vtkScaleWorkspace::vtkScaleWorkspace() :
m_xScaling(1),
m_yScaling(1),
m_zScaling(1),
m_specialCoordinates(-1),
m_metadataJsonManager(new MetadataJsonManager()),
m_vatesConfigurations(new VatesConfigurations())
{
Expand Down Expand Up @@ -62,6 +63,7 @@ int vtkScaleWorkspace::RequestInformation(vtkInformation*, vtkInformationVector*
m_minValue = m_metadataJsonManager->getMinValue();
m_maxValue = m_metadataJsonManager->getMaxValue();
m_instrument = m_metadataJsonManager->getInstrument();
m_specialCoordinates = m_metadataJsonManager->getSpecialCoordinates();

return 1;
}
Expand Down Expand Up @@ -137,4 +139,9 @@ double vtkScaleWorkspace::GetMaxValue()
const char* vtkScaleWorkspace::GetInstrument()
{
return m_instrument.c_str();
}

int vtkScaleWorkspace::GetSpecialCoordinates()
{
return m_specialCoordinates;
}

0 comments on commit f864b70

Please sign in to comment.