Skip to content

Commit

Permalink
ImGui: Remove coverage specific code (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored Dec 16, 2024
1 parent 29faf3a commit b0f676f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions vtkext/private/module/vtkF3DImguiActor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ vtkF3DImguiActor::vtkF3DImguiActor()
//----------------------------------------------------------------------------
void vtkF3DImguiActor::Initialize(vtkOpenGLRenderWindow* renWin)
{
this->Superclass::Initialize(renWin);

// release existing context
this->ReleaseGraphicsResources(renWin);

Expand Down Expand Up @@ -290,8 +288,6 @@ vtkF3DImguiActor::~vtkF3DImguiActor() = default;
//----------------------------------------------------------------------------
void vtkF3DImguiActor::RenderFileName()
{
this->Superclass::RenderFileName();

ImGuiViewport* viewport = ImGui::GetMainViewport();

constexpr float marginTop = 5.f;
Expand All @@ -313,8 +309,6 @@ void vtkF3DImguiActor::RenderFileName()
//----------------------------------------------------------------------------
void vtkF3DImguiActor::RenderMetaData()
{
this->Superclass::RenderMetaData();

ImGuiViewport* viewport = ImGui::GetMainViewport();

constexpr float marginRight = 5.f;
Expand All @@ -339,8 +333,6 @@ void vtkF3DImguiActor::RenderMetaData()
//----------------------------------------------------------------------------
void vtkF3DImguiActor::RenderCheatSheet()
{
this->Superclass::RenderCheatSheet();

ImGuiViewport* viewport = ImGui::GetMainViewport();

constexpr float marginLeft = 5.f;
Expand Down Expand Up @@ -397,8 +389,6 @@ void vtkF3DImguiActor::RenderCheatSheet()
//----------------------------------------------------------------------------
void vtkF3DImguiActor::RenderFpsCounter()
{
this->Superclass::RenderFpsCounter();

ImGuiViewport* viewport = ImGui::GetMainViewport();

constexpr float marginRight = 3.f;
Expand Down Expand Up @@ -428,26 +418,20 @@ void vtkF3DImguiActor::RenderFpsCounter()
//----------------------------------------------------------------------------
void vtkF3DImguiActor::RenderConsole()
{
this->Superclass::RenderConsole();

vtkF3DImguiConsole* console = vtkF3DImguiConsole::SafeDownCast(vtkOutputWindow::GetInstance());
console->ShowConsole();
}

//----------------------------------------------------------------------------
void vtkF3DImguiActor::RenderConsoleBadge()
{
this->Superclass::RenderConsoleBadge();

vtkF3DImguiConsole* console = vtkF3DImguiConsole::SafeDownCast(vtkOutputWindow::GetInstance());
console->ShowBadge();
}

//----------------------------------------------------------------------------
void vtkF3DImguiActor::StartFrame(vtkOpenGLRenderWindow* renWin)
{
this->Superclass::StartFrame(renWin);

if (ImGui::GetCurrentContext() == nullptr)
{
this->Initialize(renWin);
Expand All @@ -466,8 +450,6 @@ void vtkF3DImguiActor::StartFrame(vtkOpenGLRenderWindow* renWin)
//----------------------------------------------------------------------------
void vtkF3DImguiActor::EndFrame(vtkOpenGLRenderWindow* renWin)
{
this->Superclass::EndFrame(renWin);

ImGui::Render();
this->Pimpl->RenderDrawData(renWin, ImGui::GetDrawData());
}

0 comments on commit b0f676f

Please sign in to comment.