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

Added text properties for both polar axis title and labels

Change-Id: I0a9b912a4425a01afb29b727149ad9cc6c97b1eb
parent 96745df0
......@@ -24,12 +24,15 @@
#include "vtkObjectFactory.h"
#include "vtkProperty.h"
#include "vtkStringArray.h"
#include "vtkTextProperty.h"
#include "vtkViewport.h"
#include <vtksys/ios/sstream>
vtkStandardNewMacro(vtkPolarAxesActor);
vtkCxxSetObjectMacro(vtkPolarAxesActor, Camera,vtkCamera);
vtkCxxSetObjectMacro(vtkPolarAxesActor,PolarAxisLabelTextProperty,vtkTextProperty);
vtkCxxSetObjectMacro(vtkPolarAxesActor,PolarAxisTitleTextProperty,vtkTextProperty);
// ******************************************************************
void vtkPolarAxesActor::PrintSelf( ostream& os, vtkIndent indent )
......
......@@ -39,6 +39,7 @@ All rights reserve
class vtkAxisActor;
class vtkCamera;
class vtkTextProperty;
class VTK_HYBRID_EXPORT vtkPolarAxesActor : public vtkActor
{
......@@ -159,6 +160,16 @@ public:
vtkGetMacro( PolarTickVisibility, int );
vtkBooleanMacro( PolarTickVisibility, int );
// Description:
// Set/Get the polar axis title text property.
virtual void SetPolarAxisTitleTextProperty(vtkTextProperty *p);
vtkGetObjectMacro(PolarAxisTitleTextProperty,vtkTextProperty);
// Description:
// Set/Get the polar axis labels text property.
virtual void SetPolarAxisLabelTextProperty(vtkTextProperty *p);
vtkGetObjectMacro(PolarAxisLabelTextProperty,vtkTextProperty);
// Description:
// Get/Set radial axes actors properties.
void SetRadialAxesProperty(vtkProperty *);
......@@ -282,6 +293,11 @@ void BuildPolarAxisTicks( double );
double LabelScreenOffset;
// Text properties of polar axis title and labels
vtkTextProperty *PolarAxisTitleTextProperty;
vtkTextProperty *PolarAxisLabelTextProperty;
// General properties of radial axes
vtkProperty* RadialAxesProperty;
vtkSetStringMacro( ActualRadialLabel );
......
Supports Markdown
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