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
a89eb38f
Commit
a89eb38f
authored
Nov 18, 2011
by
Philippe Pébay
Browse files
Removing TransformBounds() which will never be used
Change-Id: I9a2c9d30d16cff2d2e52a8694e2ec7731c5f6917
parent
cade9cea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Hybrid/vtkPolarAxesActor.cxx
View file @
a89eb38f
...
...
@@ -423,36 +423,10 @@ double *vtkPolarAxesActor::GetBounds()
return
this
->
Bounds
;
}
//-----------------------------------------------------------------------------
void
vtkPolarAxesActor
::
TransformBounds
(
vtkViewport
*
viewport
,
double
bounds
[
6
]
)
{
double
minPt
[
3
],
maxPt
[
3
],
transMinPt
[
3
],
transMaxPt
[
3
];
minPt
[
0
]
=
this
->
Bounds
[
0
];
minPt
[
1
]
=
this
->
Bounds
[
2
];
minPt
[
2
]
=
this
->
Bounds
[
4
];
maxPt
[
0
]
=
this
->
Bounds
[
1
];
maxPt
[
1
]
=
this
->
Bounds
[
3
];
maxPt
[
2
]
=
this
->
Bounds
[
5
];
viewport
->
SetWorldPoint
(
minPt
[
0
],
minPt
[
1
],
minPt
[
2
],
1.0
);
viewport
->
WorldToDisplay
();
viewport
->
GetDisplayPoint
(
transMinPt
);
viewport
->
SetWorldPoint
(
maxPt
[
0
],
maxPt
[
1
],
maxPt
[
2
],
1.0
);
viewport
->
WorldToDisplay
();
viewport
->
GetDisplayPoint
(
transMaxPt
);
bounds
[
0
]
=
transMinPt
[
0
];
bounds
[
2
]
=
transMinPt
[
1
];
bounds
[
4
]
=
transMinPt
[
2
];
bounds
[
1
]
=
transMaxPt
[
0
];
bounds
[
3
]
=
transMaxPt
[
1
];
bounds
[
5
]
=
transMaxPt
[
2
];
}
//-----------------------------------------------------------------------------
void
vtkPolarAxesActor
::
BuildAxes
(
vtkViewport
*
viewport
)
{
cerr
<<
"In BuildAxes
\n
"
;
double
bounds
[
6
];
if
(
(
this
->
GetMTime
()
<
this
->
BuildTime
.
GetMTime
()
))
...
...
Hybrid/vtkPolarAxesActor.h
View file @
a89eb38f
...
...
@@ -228,10 +228,6 @@ protected:
vtkPolarAxesActor
();
~
vtkPolarAxesActor
();
// Description:
// Transform the bounding box to display coordinates.
void
TransformBounds
(
vtkViewport
*
,
double
*
);
// Description:
// Build the axes.
// Determine coordinates, position, etc.
...
...
@@ -325,8 +321,6 @@ protected:
// Use angle units (degrees) to label radial axes
bool
RadialUnits
;
int
TickLocation
;
// Visibility of polar axis and its title, labels, ticks (major only)
int
PolarAxisVisibility
;
int
PolarTitleVisibility
;
...
...
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