Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
f97646aa
Commit
f97646aa
authored
Nov 18, 2011
by
Philippe Pébay
Browse files
Added instance variable and ancillaries for polar axis to API
Change-Id: I4b3c95a631b61a17eddf6f100a8c5fa88a7f0308
parent
3edf6f97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Hybrid/vtkPolarAxesActor.cxx
View file @
f97646aa
...
...
@@ -821,6 +821,19 @@ void vtkPolarAxesActor::AutoScale( vtkViewport *viewport,
}
}
//-----------------------------------------------------------------------------
void
vtkPolarAxesActor
::
SetPolarAxisProperty
(
vtkProperty
*
prop
)
{
this
->
PolarAxisProperty
->
DeepCopy
(
prop
);
this
->
Modified
();
}
//-----------------------------------------------------------------------------
vtkProperty
*
vtkPolarAxesActor
::
GetPolarAxisProperty
()
{
return
this
->
PolarAxisProperty
;
}
//-----------------------------------------------------------------------------
void
vtkPolarAxesActor
::
SetRadialAxesProperty
(
vtkProperty
*
prop
)
{
...
...
Hybrid/vtkPolarAxesActor.h
View file @
f97646aa
...
...
@@ -148,19 +148,19 @@ public:
void
ReleaseGraphicsResources
(
vtkWindow
*
);
// Description:
// Turn on and off the visibility of
radial
ax
e
s.
vtkSetMacro
(
Radial
Ax
e
sVisibility
,
int
);
vtkGetMacro
(
Radial
Ax
e
sVisibility
,
int
);
vtkBooleanMacro
(
Radial
Ax
e
sVisibility
,
int
);
// Turn on and off the visibility of
the polar
ax
i
s.
vtkSetMacro
(
Polar
Ax
i
sVisibility
,
int
);
vtkGetMacro
(
Polar
Ax
i
sVisibility
,
int
);
vtkBooleanMacro
(
Polar
Ax
i
sVisibility
,
int
);
// Description:
// Turn on and off the visibility of titles for
radial
ax
e
s.
vtkSetMacro
(
Radial
TitleVisibility
,
int
);
vtkGetMacro
(
Radial
TitleVisibility
,
int
);
vtkBooleanMacro
(
Radial
TitleVisibility
,
int
);
// Turn on and off the visibility of titles for
polar
ax
i
s.
vtkSetMacro
(
Polar
TitleVisibility
,
int
);
vtkGetMacro
(
Polar
TitleVisibility
,
int
);
vtkBooleanMacro
(
Polar
TitleVisibility
,
int
);
// Description:
// Turn on and off the visibility of labels for
radial
axis.
// Turn on and off the visibility of labels for
polar
axis.
vtkSetMacro
(
PolarLabelVisibility
,
int
);
vtkGetMacro
(
PolarLabelVisibility
,
int
);
vtkBooleanMacro
(
PolarLabelVisibility
,
int
);
...
...
@@ -171,6 +171,18 @@ public:
vtkGetMacro
(
PolarTickVisibility
,
int
);
vtkBooleanMacro
(
PolarTickVisibility
,
int
);
// Description:
// Turn on and off the visibility of non-polar radial axes.
vtkSetMacro
(
RadialAxesVisibility
,
int
);
vtkGetMacro
(
RadialAxesVisibility
,
int
);
vtkBooleanMacro
(
RadialAxesVisibility
,
int
);
// Description:
// Turn on and off the visibility of titles for non-polar radial axes.
vtkSetMacro
(
RadialTitleVisibility
,
int
);
vtkGetMacro
(
RadialTitleVisibility
,
int
);
vtkBooleanMacro
(
RadialTitleVisibility
,
int
);
// Description:
// Turn on and off the visibility of arcs for polar axis.
vtkSetMacro
(
PolarArcsVisibility
,
int
);
...
...
@@ -187,6 +199,11 @@ public:
virtual
void
SetPolarAxisLabelTextProperty
(
vtkTextProperty
*
p
);
vtkGetObjectMacro
(
PolarAxisLabelTextProperty
,
vtkTextProperty
);
// Description:
// Get/Set polar axis actor properties.
virtual
void
SetPolarAxisProperty
(
vtkProperty
*
);
vtkProperty
*
GetPolarAxisProperty
();
// Description:
// Get/Set radial axes actors properties.
virtual
void
SetRadialAxesProperty
(
vtkProperty
*
);
...
...
@@ -295,7 +312,11 @@ protected:
vtkCamera
*
Camera
;
// Description:
// Control variables for radial axes
// Control variables for polar axis
vtkAxisActor
*
PolarAxis
;
// Description:
// Control variables for non-polar radial axes
vtkAxisActor
**
RadialAxes
;
// Description:
...
...
@@ -309,13 +330,17 @@ protected:
int
TickLocation
;
// Visibility of polar axis and its title, labels, ticks (major only)
int
PolarAxisVisibility
;
int
PolarTitleVisibility
;
int
PolarLabelVisibility
;
int
PolarTickVisibility
;
// Visibility of radial axes and their titles
int
RadialAxesVisibility
;
int
RadialTitleVisibility
;
// Visibility of polar labels, ticks (major only), and arcs
int
PolarLabelVisibility
;
int
PolarTickVisibility
;
// Visibility of polar arcs
int
PolarArcsVisibility
;
char
*
RadialLabelFormat
;
...
...
@@ -330,6 +355,9 @@ protected:
vtkTextProperty
*
PolarAxisTitleTextProperty
;
vtkTextProperty
*
PolarAxisLabelTextProperty
;
// General properties of polar axis
vtkProperty
*
PolarAxisProperty
;
// General properties of radial axes
vtkProperty
*
RadialAxesProperty
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment