Commit 447a2d32 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot

Merge topic 'view-setings' into pv-master

de01f9e8 Set Bold and Italic axis label properties for ScatterPlotMatrix.
5d417755 Add component-wise set functions for Border and Gutter (vtkChartMatrix)
parents 00e998ce de01f9e8
......@@ -147,12 +147,49 @@ void vtkChartMatrix::SetBorders(int left, int bottom, int right, int top)
this->LayoutIsDirty = true;
}
void vtkChartMatrix::SetBorderLeft(int value)
{
this->Borders[vtkAxis::LEFT] = value;
this->LayoutIsDirty = true;
}
void vtkChartMatrix::SetBorderBottom(int value)
{
this->Borders[vtkAxis::BOTTOM] = value;
this->LayoutIsDirty = true;
}
void vtkChartMatrix::SetBorderRight(int value)
{
this->Borders[vtkAxis::RIGHT] = value;
this->LayoutIsDirty = true;
}
void vtkChartMatrix::SetBorderTop(int value)
{
this->Borders[vtkAxis::TOP] = value;
this->LayoutIsDirty = true;
}
void vtkChartMatrix::SetGutter(const vtkVector2f &gutter)
{
this->Gutter = gutter;
this->LayoutIsDirty = true;
}
void vtkChartMatrix::SetGutterX(float value)
{
this->Gutter.SetX (value);
this->LayoutIsDirty = true;
}
void vtkChartMatrix::SetGutterY(float value)
{
this->Gutter.SetY (value);
this->LayoutIsDirty = true;
}
void vtkChartMatrix::Allocate()
{
// Force allocation of all objects as vtkChartXY.
......
......@@ -60,6 +60,10 @@ public:
// Description:
// Set/get the borders of the chart matrix (space in pixels around each chart).
virtual void SetBorders(int left, int bottom, int right, int top);
void SetBorderLeft(int value);
void SetBorderBottom(int value);
void SetBorderRight(int value);
void SetBorderTop(int value);
virtual void GetBorders(int borders[4])
{
for(int i=0;i<4;i++)
......@@ -71,6 +75,8 @@ public:
// Description:
// Set the gutter that should be left between the charts in the matrix.
virtual void SetGutter(const vtkVector2f& gutter);
void SetGutterX(float value);
void SetGutterY(float value);
// Description:
// Get the gutter that should be left between the charts in the matrix.
......
......@@ -153,6 +153,8 @@ public:
axis->GetLabelProperties()->SetOpacity(prop->GetOpacity());
axis->GetLabelProperties()->SetFontFamilyAsString(
prop->GetFontFamilyAsString());
axis->GetLabelProperties()->SetBold(prop->GetBold());
axis->GetLabelProperties()->SetItalic(prop->GetItalic());
}
}
}
......
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