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

A set of input parameters for visualizeImageChart(const VisualizeImageChartRequest&) const. More...

#include <gpudb/protocol/visualize_image_chart.h>

Public Member Functions

 VisualizeImageChartRequest ()
 Constructs a VisualizeImageChartRequest object with default parameter values. 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
 
std::vector< std::string > xColumnNames
 
std::vector< std::string > yColumnNames
 
double minX
 
double maxX
 
double minY
 
double maxY
 
int32_t width
 
int32_t height
 
std::string bgColor
 
std::map< std::string, std::vector< std::string > > styleOptions
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for visualizeImageChart(const VisualizeImageChartRequest&) const.

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 22 of file visualize_image_chart.h.

Constructor & Destructor Documentation

◆ VisualizeImageChartRequest() [1/2]

gpudb::VisualizeImageChartRequest::VisualizeImageChartRequest ( )
inline

Constructs a VisualizeImageChartRequest object with default parameter values.

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]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.

Definition at line 218 of file visualize_image_chart.h.

Member Data Documentation

◆ bgColor

std::string gpudb::VisualizeImageChartRequest::bgColor

Definition at line 243 of file visualize_image_chart.h.

◆ height

int32_t gpudb::VisualizeImageChartRequest::height

Definition at line 242 of file visualize_image_chart.h.

◆ maxX

double gpudb::VisualizeImageChartRequest::maxX

Definition at line 238 of file visualize_image_chart.h.

◆ maxY

double gpudb::VisualizeImageChartRequest::maxY

Definition at line 240 of file visualize_image_chart.h.

◆ minX

double gpudb::VisualizeImageChartRequest::minX

Definition at line 237 of file visualize_image_chart.h.

◆ minY

double gpudb::VisualizeImageChartRequest::minY

Definition at line 239 of file visualize_image_chart.h.

◆ options

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

Definition at line 245 of file visualize_image_chart.h.

◆ styleOptions

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

Definition at line 244 of file visualize_image_chart.h.

◆ tableName

std::string gpudb::VisualizeImageChartRequest::tableName

Definition at line 234 of file visualize_image_chart.h.

◆ width

int32_t gpudb::VisualizeImageChartRequest::width

Definition at line 241 of file visualize_image_chart.h.

◆ xColumnNames

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

Definition at line 235 of file visualize_image_chart.h.

◆ yColumnNames

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

Definition at line 236 of file visualize_image_chart.h.


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