#include <dvs_plot_chunk_interface.h>
Inheritance diagram for DVS::IPlotChunk:

Public Member Functions
Public Member Functions inherited from DVS::IHash
Public Member Functions inherited from DVS::IHash
Public Member Functions inherited from DVS::IHash
Detailed Description
Plot Chunk Interface for DVS Reader API. A Plot Chunk in DVS contains the x/y coordinates for a specific timestep. In general there is only 1 of these across all ranks for a specific time as plots aren’t spatially decomposed. Variable information is stored in metadata attached to the referenced plot object. See DVS::IHash for the hash object interface. Axis title/unit information is stored in metadata on the DVS::IObject interface from IPlotChunk::get_object() Definition at line 50 of file dvs_plot_chunk_interface.h.Member Function Documentation
get_data()
pure virtual
Get data for plot chunk.
This method retrieves data for the plot chunk. It should be first called with non nullptr num_values to get the size of the individual x and y axis values arrays. Example usage: DVS::IPlotChunk* plot = //get object instance uint32_t axis_size = 0; if (DVS_NONE == plot->get_data(&axis_size, nullptr, nullptr)) { std::vector<float> x_values(axis_size); std::vector<float> y_values(axis_size); plot->get_data(nullptr, x_values.data(), y_values.data()); }
Error Codes:
- DVS_NONE: No error
- DVS_NO_DATA: Object has no data, should not happen through DVS Reader API
- DVS_PARAM_NULL: All parameters are null. Method will do nothing.
- DVS_INVALID_CACHE: Loading cache failed, possibly invalid cache or invalid permissions
- DVS_DATA_FAILED_LOAD: There was a failure loading data, data is either empty or missing
- DVS_INVALID_HASH: Hash of variable data is invalid. There is a problem with the data
Returns
dvs_ret DVS_NONE on no error, see the method description for errors
get_object()
pure virtual
Get the plot definition this plot chunk is associated with.
Returns
const DVS::IObject* the object definition
get_rank()
pure virtual
Get the rank for the plot.
Plots are generally sent by 1 rank. Specific plots can be sent from different ranks but across ranks only 1 rank should send plot data for a specific time and plot.
Returns
uint32_t the rank this plot is assocaited with (zero based)
get_time()
pure virtual
Get the time for this plot.
Returns
float the time this plot is associated with
The documentation for this class was generated from the following file:
- D:/ANSYSDev/Product-src/ensight/user_defined_src/readers/dvs/include/dvs_plot_chunk_interface.h