Commit e1784d6f authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

ENH: Removed the Render() implementation.

This wasn't doing anything special, and so use the default version.
parent c2aae58e
......@@ -50,7 +50,7 @@ vtkContextView::vtkContextView()
vtkInteractorStyle::SafeDownCast(this->RenderWindow->GetInteractor()
->GetInteractorStyle()));
// Single color background
// Single color background by default.
this->Renderer->SetBackground(1.0, 1.0, 1.0);
}
......@@ -71,24 +71,6 @@ vtkContextScene* vtkContextView::GetScene()
return this->Scene;
}
//----------------------------------------------------------------------------
void vtkContextView::Render()
{
this->Update();
this->PrepareForRendering();
this->Renderer->ResetCameraClippingRange();
this->RenderWindow->Render();
// Render our scene
/* this->Context->GetDevice()->Begin(this->Renderer);
int size[2];
size[0] = this->Renderer->GetSize()[0];
size[1] = this->Renderer->GetSize()[1];
this->Scene->SetGeometry(&size[0]);
this->Scene->Paint(this->Context);
this->Context->GetDevice()->End(); */
}
//----------------------------------------------------------------------------
void vtkContextView::PrintSelf(ostream& os, vtkIndent indent)
{
......
......@@ -19,6 +19,8 @@
// vtkContextScene, with a default interactor style, renderer etc. It is
// the simplest way to create a vtkRenderWindow and display a 2D scene inside
// of it.
//
// By default the scene has a white background.
#ifndef __vtkContextView_h
#define __vtkContextView_h
......@@ -53,11 +55,6 @@ public:
// Get the scene of the view.
virtual vtkContextScene* GetScene();
// Description:
// Updates the representations, then calls Render() on the render window
// associated with this view.
virtual void Render();
protected:
vtkContextView();
~vtkContextView();
......
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