Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rhodanos
VTK
Commits
a3be2cd3
Commit
a3be2cd3
authored
9 years ago
by
Sean McBride
Browse files
Options
Downloads
Patches
Plain Diff
Removed dead code, since
08d7b9fe
(September 2014)
Seems like no longer needed OS X workaround.
parent
0588efe6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Rendering/OpenGL/vtkChooserPainter.cxx
+3
-27
3 additions, 27 deletions
Rendering/OpenGL/vtkChooserPainter.cxx
Rendering/OpenGL/vtkChooserPainter.h
+0
-8
0 additions, 8 deletions
Rendering/OpenGL/vtkChooserPainter.h
with
3 additions
and
35 deletions
Rendering/OpenGL/vtkChooserPainter.cxx
+
3
−
27
View file @
a3be2cd3
...
...
@@ -44,14 +44,6 @@ vtkChooserPainter::vtkChooserPainter()
this
->
PolyPainter
=
NULL
;
this
->
StripPainter
=
NULL
;
this
->
LastRenderer
=
NULL
;
this
->
UseLinesPainterForWireframes
=
0
;
#if defined(__APPLE__) && defined(VTK_USE_COCOA)
/*
* On some Macs, glPolygonMode(*,GL_LINE) does not render anything
* for polys. To fix this, we use the GL_LINE_LOOP to render the polygons.
*/
// this->UseLinesPainterForWireframes = 1;
#endif
}
//-----------------------------------------------------------------------------
...
...
@@ -333,23 +325,9 @@ void vtkChooserPainter::RenderInternal(vtkRenderer* renderer, vtkActor* actor,
{
//cout << this << "Polys" << endl;
this
->
ProgressScaleFactor
=
static_cast
<
double
>
(
numPolys
)
/
total_cells
;
if
(
this
->
UseLinesPainterForWireframes
&&
(
actor
->
GetProperty
()
->
GetRepresentation
()
==
VTK_WIREFRAME
)
&&
!
actor
->
GetProperty
()
->
GetBackfaceCulling
()
&&
!
actor
->
GetProperty
()
->
GetFrontfaceCulling
()
&&
!
this
->
GetInputAsPolyData
()
->
GetPointData
()
->
GetAttribute
(
vtkDataSetAttributes
::
EDGEFLAG
)
)
{
this
->
LinePainter
->
Render
(
renderer
,
actor
,
vtkPainter
::
POLYS
,
forceCompileOnly
);
this
->
TimeToDraw
+=
this
->
LinePainter
->
GetTimeToDraw
();
}
else
{
this
->
PolyPainter
->
Render
(
renderer
,
actor
,
vtkPainter
::
POLYS
,
forceCompileOnly
);
this
->
TimeToDraw
+=
this
->
PolyPainter
->
GetTimeToDraw
();
}
this
->
PolyPainter
->
Render
(
renderer
,
actor
,
vtkPainter
::
POLYS
,
forceCompileOnly
);
this
->
TimeToDraw
+=
this
->
PolyPainter
->
GetTimeToDraw
();
this
->
ProgressOffset
+=
this
->
ProgressScaleFactor
;
}
...
...
@@ -373,6 +351,4 @@ void vtkChooserPainter::PrintSelf(ostream &os, vtkIndent indent)
os
<<
indent
<<
"LinePainter: "
<<
this
->
LinePainter
<<
endl
;
os
<<
indent
<<
"PolyPainter: "
<<
this
->
PolyPainter
<<
endl
;
os
<<
indent
<<
"StripPainter: "
<<
this
->
StripPainter
<<
endl
;
os
<<
indent
<<
"UseLinesPainterForWireframes: "
<<
this
->
UseLinesPainterForWireframes
<<
endl
;
}
This diff is collapsed.
Click to expand it.
Rendering/OpenGL/vtkChooserPainter.h
+
0
−
8
View file @
a3be2cd3
...
...
@@ -41,13 +41,6 @@ public:
void
SetPolyPainter
(
vtkPolyDataPainter
*
);
void
SetStripPainter
(
vtkPolyDataPainter
*
);
// Description:
// When set, the lines painter is used for drawing wireframes (off by
// default, except on Mac, where it's on by default).
vtkSetMacro
(
UseLinesPainterForWireframes
,
int
);
vtkGetMacro
(
UseLinesPainterForWireframes
,
int
);
vtkBooleanMacro
(
UseLinesPainterForWireframes
,
int
);
// Description:
// Release any graphics resources that are being consumed by this mapper.
// The parameter window could be used to determine which graphic
...
...
@@ -111,7 +104,6 @@ protected:
vtkRenderer
*
LastRenderer
;
vtkTimeStamp
PaintersChoiceTime
;
int
UseLinesPainterForWireframes
;
private:
vtkChooserPainter
(
const
vtkChooserPainter
&
);
// Not implemented
void
operator
=
(
const
vtkChooserPainter
&
);
// Not implemented
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment