Commit 956c320f authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Add missing font file related API vtkPVPlotMatrixView

There were properties that used these method but the method was never
defined. Fixed that.
parent 3edadf80
......@@ -93,6 +93,7 @@ GENERATE_PLOT_TYPE_DEFINITION3(AxisColor, double, double, double);
GENERATE_PLOT_TYPE_DEFINITION3(GridColor, double, double, double);
GENERATE_PLOT_TYPE_DEFINITION(AxisLabelVisibility, bool);
GENERATE_PLOT_TYPE_DEFINITION(AxisLabelFontFamily, const char*);
GENERATE_PLOT_TYPE_DEFINITION(AxisLabelFontFile, const char*);
GENERATE_PLOT_TYPE_DEFINITION(AxisLabelFontSize, int);
GENERATE_PLOT_TYPE_DEFINITION(AxisLabelBold, bool);
GENERATE_PLOT_TYPE_DEFINITION(AxisLabelItalic, bool);
......@@ -243,6 +244,16 @@ void vtkPVPlotMatrixView::SetTitleFontSize(int pointSize)
}
}
//----------------------------------------------------------------------------
void vtkPVPlotMatrixView::SetTitleFontFile(const char* file)
{
if (this->PlotMatrix)
{
vtkTextProperty* prop = this->PlotMatrix->GetTitleProperties();
prop->SetFontFile(file);
}
}
//----------------------------------------------------------------------------
void vtkPVPlotMatrixView::SetTitleBold(bool bold)
{
......@@ -444,6 +455,17 @@ void vtkPVPlotMatrixView::SetAxisLabelFontFamily(int plotType, const char* famil
}
}
//----------------------------------------------------------------------------
void vtkPVPlotMatrixView::SetAxisLabelFontFile(int plotType, const char* file)
{
if (this->PlotMatrix)
{
vtkTextProperty* prop = this->PlotMatrix->GetAxisLabelProperties(plotType);
prop->SetFontFile(file);
this->PlotMatrix->UpdateChartSettings(plotType);
}
}
//----------------------------------------------------------------------------
void vtkPVPlotMatrixView::SetAxisLabelFontSize(int plotType, int pointSize)
{
......
......@@ -111,6 +111,7 @@ public:
void SetTitleFontSize(int pointSize);
void SetTitleBold(bool bold);
void SetTitleItalic(bool italic);
void SetTitleFontFile(const char* file);
const char* GetTitleFontFamily();
int GetTitleFontSize();
int GetTitleFontBold();
......@@ -246,6 +247,8 @@ public:
void SetAxisLabelFont(int plotType, const char* family, int pointSize, bool bold, bool italic);
void SetAxisLabelFontFamily(int plotType, const char* family);
GENERATE_PLOT_TYPE_DECLARATION(AxisLabelFontFamily, const char*);
void SetAxisLabelFontFile(int plotType, const char* file);
GENERATE_PLOT_TYPE_DECLARATION(AxisLabelFontFile, const char*);
void SetAxisLabelFontSize(int plotType, int pointSize);
GENERATE_PLOT_TYPE_DECLARATION(AxisLabelFontSize, int);
void SetAxisLabelBold(int plotType, bool bold);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment