> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DVS::IPlotChunk Class Reference

Plot Chunk Interface for DVS Reader API.

`#include <dvs_plot_chunk_interface.h>`

Inheritance diagram for DVS::IPlotChunk:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=639ba3b391b13632a105a74baf5642d2)

## Public Member Functions

| Type | Name |
| - | - |
| | **IPlotChunk** ()=default default |
|  virtual | **\~IPlotChunk** ()=default default |
| | **IPlotChunk** ([IPlotChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.md) &&)=default default |
| [IPlotChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.md) & | **operator=** ([IPlotChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.md) &&)=default default |
| | **IPlotChunk** (const [IPlotChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.md) &)=default support copying |
| [IPlotChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.md) & | **operator=** (const [IPlotChunk](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.md) &)=default default |
| virtual float | [get\_time](#ad9ff283c65e3a3ca1833fa95739cefbb) () const =0 Get the time for this plot. |
| virtual uint32\_t | [get\_rank](#ac8cfe243352cdc8d6882f521a6382df6) () const =0 Get the rank for the plot. |
| virtual const [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) \* | [get\_object](#a3eaf3659a02d09c641ba70a1a402053b) () const =0 Get the plot definition this plot chunk is associated with. |
| virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dynamic__visualization__store__error__codes_8h.md#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_data](#a9dd0631a3b7c171a8593289cc7aa84b3) (uint32\_t \*num\_values, float \*x\_axis\_values, float \*y\_axis\_values)=0 Get data for plot chunk. |

> [accordion] Public Member Functions inherited from DVS::IHash
>
> Public Member Functions inherited from [DVS::IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md)
>
> | Type | Name |
> | - | - |
> | | **IHash** ()=default default |
> | virtual | **\~IHash** ()=default default |
> | | **IHash** ([IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md) &&)=default default |
> | [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md) & | **operator=** ([IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md) &&)=default default |
> | | **IHash** (const [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md) &)=default support copying |
> | [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md) & | **operator=** (const [IHash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md) &)=default default |
> | virtual uint32\_t | [get\_hash\_size](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md#ac0dedeb8d9dfd442d49d16cb4ddfb221) () const =0 Get the size of the hash to use with [IHash::get\_hash()](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md#a51eaee86a6e2db4dda7f4326daa33874) |
> | virtual [dvs\_ret](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dynamic__visualization__store__error__codes_8h.md#a1d7466ae72e89fe36cbf2408b4f7d9c1) | [get\_hash](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md#a51eaee86a6e2db4dda7f4326daa33874) (char \*hash) const =0 Get the hash of the data. |

## 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](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_hash.md) for the hash object interface.

Axis title/unit information is stored in metadata on the [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md) interface from [IPlotChunk::get\_object()](#a3eaf3659a02d09c641ba70a1a402053b)

Definition at line [50](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__plot__chunk__interface_8h_source) of file [dvs\_plot\_chunk\_interface.h](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__plot__chunk__interface_8h_source).

## Member Function Documentation

### get\_data()

```cpp theme={null}
virtual dvs_ret DVS::IPlotChunk::get_data(
    uint32_t * num_values,
    float * x_axis_values,
    float * y_axis_values
)
```

`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](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_plot_chunk.md)\* 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

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[out] | num\_values | if not nullptr returns the number of values for each axis |
| \[out] | x\_axis\_values | if not nullptr the x axis values, must be of size num\_values |
| \[out] | y\_axis\_values | if not nullptr the y axis values, must be of size num\_values |

**Returns**

dvs\_ret DVS\_NONE on no error, see the method description for errors

### get\_object()

```cpp theme={null}
virtual const DVS::IObject * DVS::IPlotChunk::get_object() const
```

`pure virtual`

Get the plot definition this plot chunk is associated with.

**Returns**

const [DVS::IObject](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/class_d_v_s_1_1_i_object.md)\* the object definition

### get\_rank()

```cpp theme={null}
virtual uint32_t DVS::IPlotChunk::get_rank() const
```

`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()

```cpp theme={null}
virtual float DVS::IPlotChunk::get_time() const
```

`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](https://developer.synopsys.com/docs/ensight/ensight-apis/2025-r2/dvs__plot__chunk__interface_8h_source)
