This group is for functions that make and edit Results plots. Plots are saved with the model and shown on the Plot tab of the Results viewer. Each plot holds curves that name the kinds of Result and the variables they plot. Click here to return to the main page. More...
Functions | |
| std::string | vsp::AddResultsPlot () |
| std::string | vsp::CopyResultsPlot (const std::string &plot_id) |
| void | vsp::DeleteResultsPlot (const std::string &plot_id) |
| void | vsp::DeleteAllResultsPlots () |
| void | vsp::WriteResultsPlotFile (const std::string &plot_id, const std::string &file_name) |
| std::string | vsp::ReadResultsPlotFile (const std::string &file_name) |
| std::vector< std::string > | vsp::GetAllResultsPlotIDs () |
| void | vsp::SetActiveResultsPlot (const std::string &plot_id) |
| std::string | vsp::GetActiveResultsPlot () |
| std::string | vsp::AddResultsCurve (const std::string &plot_id) |
| void | vsp::DeleteResultsCurve (const std::string &curve_id) |
| std::vector< std::string > | vsp::GetResultsCurveIDs (const std::string &plot_id) |
| void | vsp::SetResultsCurveSources (const std::string &curve_id, const std::vector< std::string > &names, const std::vector< std::string > &case_names) |
| std::vector< std::string > | vsp::GetResultsCurveSourceNames (const std::string &curve_id) |
| std::vector< std::string > | vsp::GetResultsCurveSourceCaseNames (const std::string &curve_id) |
| void | vsp::SetResultsCurveXVar (const std::string &curve_id, const std::string &label) |
| std::string | vsp::GetResultsCurveXVar (const std::string &curve_id) |
| void | vsp::SetResultsCurveYVars (const std::string &curve_id, const std::vector< std::string > &labels) |
| std::vector< std::string > | vsp::GetResultsCurveYVars (const std::string &curve_id) |
| std::vector< std::string > | vsp::GetResultsCurveResultIDs (const std::string &curve_id) |
| void | vsp::SetResultsCurveChosenIDs (const std::string &curve_id, const std::vector< std::string > &results_ids) |
| std::vector< std::string > | vsp::GetResultsCurveChosenIDs (const std::string &curve_id) |
| std::vector< std::string > | vsp::GetResultsPlotVarLabels (const std::string &results_id, bool matrix_rows=false) |
| std::vector< double > | vsp::GetResultsPlotVarData (const std::string &results_id, const std::string &label, bool matrix_rows=false) |
|
extern |
Add an empty curve to a Results plot. A curve plots kinds of Result, named with SetResultsCurveSources, and the variables named with SetResultsCurveXVar and SetResultsCurveYVars. How it plots them is set by Parms in group "ResultsCurve": Mode (see RESULTS_PLOT_MODE), Element (see RESULTS_PLOT_ELEMENT), MatrixRows, and Run (0 for every run of each kind of Result, 1 for the newest, 2 for the one before it, and so on).
| [in] | plot_id | string Results plot ID |
|
extern |
Add a Results plot to the model. The plot starts with one empty curve and becomes the active plot. A plot's axes and style are Parms in group "ResultsPlot" (XMin, XMax, YMin, YMax and their XMinManual etc. flags, XLog, YLog, ShowLines, ShowPoints and Legend, see RESULTS_PLOT_LEGEND), and its name is set with SetContainerName.
|
extern |
Add a copy of a Results plot, with copies of its curves. The copy becomes the active plot.
| [in] | plot_id | string Results plot ID |
|
extern |
Delete every Results plot.
|
extern |
Delete a curve from its Results plot.
| [in] | curve_id | string Results curve ID |
|
extern |
Delete a Results plot and its curves.
| [in] | plot_id | string Results plot ID |
|
extern |
Get the ID of the active Results plot, the plot the Results viewer shows.
|
extern |
Get the IDs of every Results plot, in the order the Results viewer lists them.
|
extern |
Get the IDs of the Results of a curve's kinds that it plots when its Run Parm is RESULTS_RUN_CHOSEN. Until some are left out with SetResultsCurveChosenIDs, every one is chosen.
| [in] | curve_id | string Results curve ID |
|
extern |
Get the IDs of a Results plot's curves, in order.
| [in] | plot_id | string Results plot ID |
|
extern |
Get the IDs of the Results a curve plots now: the runs its Run Parm picks of each of its kinds of Result, oldest first.
| [in] | curve_id | string Results curve ID |
|
extern |
Get the case names of the kinds of Result a curve plots, empty for a kind with no case name.
| [in] | curve_id | string Results curve ID |
|
extern |
Get the Results names of the kinds of Result a curve plots.
| [in] | curve_id | string Results curve ID |
|
extern |
Get the label of the variable a curve plots on the X axis.
| [in] | curve_id | string Results curve ID |
|
extern |
Get the labels of the variables a curve plots on the Y axis.
| [in] | curve_id | string Results curve ID |
|
extern |
Get the values of a variable in a Result, as a curve plots them.
| [in] | results_id | string Results ID |
| [in] | label | string Variable label |
| [in] | matrix_rows | bool True when the label names a matrix row rather than a column |
|
extern |
Get the labels of the variables in a Result that a curve can plot. A numeric vector is labeled with its data name, followed by #1, #2, ... for a second or later entry of the same name. A vec3d vector gives .x, .y and .z components and its magnitude, |name|; a matrix gives its columns, name[:,j], or its rows, name[i,:].
| [in] | results_id | string Results ID |
| [in] | matrix_rows | bool True to label a matrix's rows rather than its columns |
|
extern |
Add the Results plot a file written by WriteResultsPlotFile holds. The plot goes after the others and becomes the active plot; a name already taken gets a number added. Its curves plot the Results of the kinds they name that the model has, and stay empty until it has some.
| [in] | file_name | string File name |
|
extern |
Make a Results plot the active one, the plot the Results viewer shows.
| [in] | plot_id | string Results plot ID |
|
extern |
Choose the Results a curve plots when its Run Parm is RESULTS_RUN_CHOSEN. Of its kinds of Result, the curve leaves out those not chosen; Results made later are plotted until they are left out too. The choice is not saved with the model, as Results are not.
| [in] | curve_id | string Results curve ID |
| [in] | results_ids | vector<string> IDs of the Results to plot |
|
extern |
Set the kinds of Result a curve plots. A kind is a Results name, such as "Test_Results", and a case name, which is empty for Results that carry no Case_Name. The curve plots the Results of those kinds that exist when it is drawn, so it can name kinds that have not been made yet.
| [in] | curve_id | string Results curve ID |
| [in] | names | vector<string> Results name of each kind |
| [in] | case_names | vector<string> Case name of each kind, empty for none; as many as names |
|
extern |
Set the variable a curve plots on the X axis, by its label from GetResultsPlotVarLabels. An empty label plots against the point index, or against the Results' order when the curve plots across Results.
| [in] | curve_id | string Results curve ID |
| [in] | label | string Variable label, empty for the point index or Results order |
|
extern |
Set the variables a curve plots on the Y axis, by their labels from GetResultsPlotVarLabels. Each makes its own series.
| [in] | curve_id | string Results curve ID |
| [in] | labels | vector<string> Variable labels |
|
extern |
Write a Results plot to a file of its own: its name, axes, style and curves, without any Results. The curves name kinds of Result and variables, not particular Results, so ReadResultsPlotFile can bring the plot into another model, where it plots that model's Results of the same kinds.
| [in] | plot_id | string Results plot ID |
| [in] | file_name | string File name, by convention ending in .vspplot |