\hypertarget{class_s_c_i_run_1_1_subsample_structured_field_by_indices}{\section{Subsample\-Structured\-Field\-By\-Indices Class Reference}
\label{class_s_c_i_run_1_1_subsample_structured_field_by_indices}\index{Subsample\-Structured\-Field\-By\-Indices@{Subsample\-Structured\-Field\-By\-Indices}}
}
Inheritance diagram for Subsample\-Structured\-Field\-By\-Indices\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_s_c_i_run_1_1_subsample_structured_field_by_indices}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_s_c_i_run_1_1_subsample_structured_field_by_indices_a3bf620da69b8b69215f8c8360ec30a85}{Subsample\-Structured\-Field\-By\-Indices} (Gui\-Context $\ast$context)
\item 
virtual \hyperlink{class_s_c_i_run_1_1_subsample_structured_field_by_indices_aa159e8d2559e3a9ec45e2edb1a0074ed}{$\sim$\-Subsample\-Structured\-Field\-By\-Indices} ()
\item 
virtual void \hyperlink{class_s_c_i_run_1_1_subsample_structured_field_by_indices_a61af3e60b94ae3e748f6fbac1e794af7}{execute} ()
\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_s_c_i_run_1_1_subsample_structured_field_by_indices_a3bf620da69b8b69215f8c8360ec30a85}{\index{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices@{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices}!Subsample\-Structured\-Field\-By\-Indices@{Subsample\-Structured\-Field\-By\-Indices}}
\index{Subsample\-Structured\-Field\-By\-Indices@{Subsample\-Structured\-Field\-By\-Indices}!SCIRun::SubsampleStructuredFieldByIndices@{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices}}
\subsubsection[{Subsample\-Structured\-Field\-By\-Indices}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Subsample\-Structured\-Field\-By\-Indices} (
\begin{DoxyParamCaption}
\item[{Gui\-Context $\ast$}]{context}
\end{DoxyParamCaption}
)}}\label{class_s_c_i_run_1_1_subsample_structured_field_by_indices_a3bf620da69b8b69215f8c8360ec30a85}
\hypertarget{class_s_c_i_run_1_1_subsample_structured_field_by_indices_aa159e8d2559e3a9ec45e2edb1a0074ed}{\index{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices@{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices}!$\sim$\-Subsample\-Structured\-Field\-By\-Indices@{$\sim$\-Subsample\-Structured\-Field\-By\-Indices}}
\index{$\sim$\-Subsample\-Structured\-Field\-By\-Indices@{$\sim$\-Subsample\-Structured\-Field\-By\-Indices}!SCIRun::SubsampleStructuredFieldByIndices@{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices}}
\subsubsection[{$\sim$\-Subsample\-Structured\-Field\-By\-Indices}]{\setlength{\rightskip}{0pt plus 5cm}virtual $\sim${\bf Subsample\-Structured\-Field\-By\-Indices} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{class_s_c_i_run_1_1_subsample_structured_field_by_indices_aa159e8d2559e3a9ec45e2edb1a0074ed}


\subsection{Member Function Documentation}
\hypertarget{class_s_c_i_run_1_1_subsample_structured_field_by_indices_a61af3e60b94ae3e748f6fbac1e794af7}{\index{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices@{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices}!execute@{execute}}
\index{execute@{execute}!SCIRun::SubsampleStructuredFieldByIndices@{S\-C\-I\-Run\-::\-Subsample\-Structured\-Field\-By\-Indices}}
\subsubsection[{execute}]{\setlength{\rightskip}{0pt plus 5cm}void execute (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{class_s_c_i_run_1_1_subsample_structured_field_by_indices_a61af3e60b94ae3e748f6fbac1e794af7}
Get the input field handle from the port.

Structured data with irregular points can be wrapped

Check to see if the gui wrap is different than the field.

Check to see if the gui dimensions are different than the field.

Check to see if the gui dimensions are different than the field.

Check to see if the gui dimensions are different than the field.

Check to see if the gui dimensions are different than the field. This is last because the G\-U\-I var has a callback on it.

If the gui dimensions are different than the field then update the gui.

Get the optional matrix handle from the port. Note if a matrix is present it is sent down stream. Otherwise it will be created.

An input matrix is present so use the values in it to override the variables set in the gui. Column 0 start index to subsample. Column 1 stop index to subsample. Column 2 stride value to subsample. Column 3 wrap flag. Column 4 dimensions of the data.

The matrix is optional. If present make sure it is a 3x5 matrix. The row indices is the axis index. The column is the data.

Sanity check. Make sure the gui dimensions match the matrix dimensions.

Check to see what index has been selected and if it matches the gui index.

If no data or an input change recreate the field. I.\-e Only execute when neeed.

This happens when wrapping.

Add one because we want the last node.

Account for the modulo of stride so that the last node will be included even if it \char`\"{}partial\char`\"{} elem when compared to the others.

For structured uniform geometry we need to set the correct location.

Set the orginal transform.

Get the orgin of mesh. $\ast$/

Set the iterator to the first point.

Get the point.

Put the new field into the correct location.

Index based on the old mesh so that we are assured of getting the last node even if it forms a \char`\"{}partial\char`\"{} elem.

Check for going past the stop.

Check for overlap.

A hack here so that an iterator can be used. Set this iterator to be at the correct kth index.

Check for going past the stop.

Check for overlap.

A hack here so that an iterator can be used. Set this iterator to be at the correct jth index.

Check for going past the stop.

Check for overlap.

A hack here so that an iterator can be used. Set this iterator to be at the correct ith index.

Create the output matrix with the stop, stop, stride, wrap, and dimensions. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Modules/\-Legacy/\-Fields/\hyperlink{_subsample_structured_field_by_indices_8cc}{Subsample\-Structured\-Field\-By\-Indices.\-cc}\end{DoxyCompactItemize}
