Commit e42d9ced authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Restored building of 2D titles

Change-Id: I6230a1e0209693d15ebf70629df951095dcc84f2
parent e97dc120
......@@ -65,6 +65,7 @@ vtkAxisActor::vtkAxisActor()
this->LabelFormat = new char[8];
sprintf(this->LabelFormat, "%s", "%-#6.3g");
// 2D-specific items
this->Use2DMode = 0;
this->SaveTitlePosition = 0;
this->TitleConstantPosition[0] = this->TitleConstantPosition[1] = 0.0;
......@@ -580,6 +581,10 @@ void vtkAxisActor::BuildAxis(vtkViewport *viewport, bool force)
if (this->Title != NULL && this->Title[0] != 0)
{
this->BuildTitle(force);
if( this->Use2DMode == 1 )
{
this->BuildTitle2D(viewport, force);
}
}
this->LastAxisPosition = this->AxisPosition;
......
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