Skip to content

Commit 285682d

Browse files
committed
adding some example of function changes
1 parent 84b96ac commit 285682d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed
Binary file not shown.

src/Documentation/Manuals/SCIRun5ModuleGeneration/SCIRun5ModuleGeneration.tex

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,10 +1621,15 @@ \section{Common Function Changes}
16211621
\hline
16221622
\bf{SCIRun4} & \bf{SCIRun 5} & \bf{Notes}\\
16231623
\hline
1624-
\verb|if (input.get_rep() == 0)| & \verb|if (!input)| & Checks for an empty handle.\\
1625-
& & Works for all major handle types. \\
1624+
\verb|if (input.get_rep()==0)| & \verb|if (!input)| & Checks for an empty handle.\\
1625+
& & Works for all major handle types. \\
16261626
\hline
1627-
1627+
\verb|output = input;| & \verb|FieldHandle output_field( | & Copy a field and \\
1628+
\verb|output.detach();| & \verb| input_field->clone());| & disconnect the data\\
1629+
\hline
1630+
\verb|output = input;| & \verb|FieldHandle output_field( | & Copy a field and disconnect \\
1631+
\verb|output.detach();| & \verb| input_field->deep_clone());| & the mesh and data. \\
1632+
\verb|output->mesh_detach();| & & \\
16281633
\hline
16291634
\end{tabular}
16301635

@@ -1639,8 +1644,7 @@ \section{Common Build Errors}
16391644
ConvertMeshToPointCloudDialog.h:32:10: fatal error:
16401645
'Interface/Modules/Field/ui_ConvertMeshToPointCloudDialog.h' file not found
16411646
\end{verbatim}
1642-
In this instance, the path to the header is misspelled.
1643-
1647+
In this instance, the path to the header is misspelled. Check for the correct path and filename. Make sure the file you want to include exists. If the code was converted from SCIRun4, some of the dependent header files are renamed, combined with other files, or deprecated.
16441648

16451649
\end{itemize}
16461650

0 commit comments

Comments
 (0)