GPUdb C++ API  Version 7.2.2.4
gpudb::VisualizeImageChartRequest Struct Reference

A set of parameters for GPUdb::visualizeImageChart. More...

#include <gpudb/protocol/visualize_image_chart.h>

Public Member Functions

 VisualizeImageChartRequest ()
 Constructs a VisualizeImageChartRequest object with default parameters. More...
 
 VisualizeImageChartRequest (const std::string &tableName_, const std::vector< std::string > &xColumnNames_, const std::vector< std::string > &yColumnNames_, const double minX_, const double maxX_, const double minY_, const double maxY_, const int32_t width_, const int32_t height_, const std::string &bgColor_, const std::map< std::string, std::vector< std::string > > &styleOptions_, const std::map< std::string, std::string > &options_)
 Constructs a VisualizeImageChartRequest object with the specified parameters. More...
 

Public Attributes

std::string tableName
 Name of the table containing the data to be drawn as a chart, in [ schema_name. ]table_name format, using standard name resolution rules. More...
 
std::vector< std::string > xColumnNames
 Names of the columns containing the data mapped to the x axis of a chart. More...
 
std::vector< std::string > yColumnNames
 Names of the columns containing the data mapped to the y axis of a chart. More...
 
double minX
 Lower bound for the x column values. More...
 
double maxX
 Upper bound for the x column values. More...
 
double minY
 Lower bound for the y column values. More...
 
double maxY
 Upper bound for the y column values. More...
 
int32_t width
 Width of the generated image in pixels. More...
 
int32_t height
 Height of the generated image in pixels. More...
 
std::string bgColor
 Background color of the generated image. More...
 
std::map< std::string, std::vector< std::string > > styleOptions
 Rendering style options for a chart. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::visualizeImageChart.

Scatter plot is the only plot type currently supported. A non-numeric column can be specified as x or y column and jitters can be added to them to avoid excessive overlapping. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). The image is contained in the imageData field.

Definition at line 23 of file visualize_image_chart.h.

Constructor & Destructor Documentation

◆ VisualizeImageChartRequest() [1/2]

gpudb::VisualizeImageChartRequest::VisualizeImageChartRequest ( )
inline

Constructs a VisualizeImageChartRequest object with default parameters.

Definition at line 29 of file visualize_image_chart.h.

◆ VisualizeImageChartRequest() [2/2]

gpudb::VisualizeImageChartRequest::VisualizeImageChartRequest ( const std::string &  tableName_,
const std::vector< std::string > &  xColumnNames_,
const std::vector< std::string > &  yColumnNames_,
const double  minX_,
const double  maxX_,
const double  minY_,
const double  maxY_,
const int32_t  width_,
const int32_t  height_,
const std::string &  bgColor_,
const std::map< std::string, std::vector< std::string > > &  styleOptions_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a VisualizeImageChartRequest object with the specified parameters.

Parameters
[in]tableName_Name of the table containing the data to be drawn as a chart, in [schema_name.]table_name format, using standard name resolution rules.
[in]xColumnNames_Names of the columns containing the data mapped to the x axis of a chart.
[in]yColumnNames_Names of the columns containing the data mapped to the y axis of a chart.
[in]minX_Lower bound for the x column values. For non-numeric x column, each x column item is mapped to an integral value starting from 0.
[in]maxX_Upper bound for the x column values. For non-numeric x column, each x column item is mapped to an integral value starting from 0.
[in]minY_Lower bound for the y column values. For non-numeric y column, each y column item is mapped to an integral value starting from 0.
[in]maxY_Upper bound for the y column values. For non-numeric y column, each y column item is mapped to an integral value starting from 0.
[in]width_Width of the generated image in pixels.
[in]height_Height of the generated image in pixels.
[in]bgColor_Background color of the generated image.
[in]styleOptions_Rendering style options for a chart.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 299 of file visualize_image_chart.h.

Member Data Documentation

◆ bgColor

std::string gpudb::VisualizeImageChartRequest::bgColor

Background color of the generated image.

Definition at line 372 of file visualize_image_chart.h.

◆ height

int32_t gpudb::VisualizeImageChartRequest::height

Height of the generated image in pixels.

Definition at line 367 of file visualize_image_chart.h.

◆ maxX

double gpudb::VisualizeImageChartRequest::maxX

Upper bound for the x column values.

For non-numeric x column, each x column item is mapped to an integral value starting from 0.

Definition at line 345 of file visualize_image_chart.h.

◆ maxY

double gpudb::VisualizeImageChartRequest::maxY

Upper bound for the y column values.

For non-numeric y column, each y column item is mapped to an integral value starting from 0.

Definition at line 357 of file visualize_image_chart.h.

◆ minX

double gpudb::VisualizeImageChartRequest::minX

Lower bound for the x column values.

For non-numeric x column, each x column item is mapped to an integral value starting from 0.

Definition at line 339 of file visualize_image_chart.h.

◆ minY

double gpudb::VisualizeImageChartRequest::minY

Lower bound for the y column values.

For non-numeric y column, each y column item is mapped to an integral value starting from 0.

Definition at line 351 of file visualize_image_chart.h.

◆ options

std::map<std::string, std::string> gpudb::VisualizeImageChartRequest::options

Optional parameters.

The default value is an empty map.

Definition at line 523 of file visualize_image_chart.h.

◆ styleOptions

std::map<std::string, std::vector<std::string> > gpudb::VisualizeImageChartRequest::styleOptions

Rendering style options for a chart.

Definition at line 499 of file visualize_image_chart.h.

◆ tableName

std::string gpudb::VisualizeImageChartRequest::tableName

Name of the table containing the data to be drawn as a chart, in [ schema_name. ]table_name format, using standard name resolution rules.

Definition at line 321 of file visualize_image_chart.h.

◆ width

int32_t gpudb::VisualizeImageChartRequest::width

Width of the generated image in pixels.

Definition at line 362 of file visualize_image_chart.h.

◆ xColumnNames

std::vector<std::string> gpudb::VisualizeImageChartRequest::xColumnNames

Names of the columns containing the data mapped to the x axis of a chart.

Definition at line 327 of file visualize_image_chart.h.

◆ yColumnNames

std::vector<std::string> gpudb::VisualizeImageChartRequest::yColumnNames

Names of the columns containing the data mapped to the y axis of a chart.

Definition at line 333 of file visualize_image_chart.h.


The documentation for this struct was generated from the following file: