Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Testing/vtkAddonTestingUtilitiesTest1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
// vtkAddon includes
#include "vtkAddonTestingUtilities.h"

// STD includes
#include <iostream>

using namespace vtkAddonTestingUtilities;

//----------------------------------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion Testing/vtkParallelTransportTest1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#include <vtkNew.h>
#include <vtkPointData.h>

// STD includes
#include <iostream>

//----------------------------------------------------------------------------
int vtkParallelTransportTest1(int vtkNotUsed(argc), char* vtkNotUsed(argv)[])
{
Expand Down Expand Up @@ -87,7 +90,7 @@ int vtkParallelTransportTest1(int vtkNotUsed(argc), char* vtkNotUsed(argv)[])
arc->GetOutput()->GetPoint(0, arcFirstPoint);
double preferredNormalDirection[3] = { arcCenter[0] - arcFirstPoint[0], arcCenter[1] - arcFirstPoint[1], arcCenter[2] - arcFirstPoint[2] };
parallelTransportFrame->SetPreferredInitialNormalVector(preferredNormalDirection);

parallelTransportFrame->SetInputConnection(arc->GetOutputPort());
parallelTransportFrame->Update();

Expand Down
19 changes: 11 additions & 8 deletions vtkTestingOutputWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#include "vtkOutputWindow.h"
#include "vtkLoggingMacros.h" // for vtkInfoWithoutObjectMacro

// STD includes
#include <iostream>

/// \brief VTK message output window class for automated testing.
///
/// This is a VTK output window class that is optimized to be used
Expand Down Expand Up @@ -51,7 +54,7 @@ class VTK_ADDON_EXPORT vtkTestingOutputWindow : public vtkOutputWindow
/* Explicitly deleted functions belong in the public interface */
vtkTestingOutputWindow(const vtkTestingOutputWindow&) = delete;
void operator=(const vtkTestingOutputWindow&) = delete;

// Gets a pointer to the singleton testing output window instance.
// If the current VTK output window is not vtkTestingOutputWindow type then
// it changes the output window to that.
Expand All @@ -67,26 +70,26 @@ class VTK_ADDON_EXPORT vtkTestingOutputWindow : public vtkOutputWindow

// Sets number of warning and error messages to zero
virtual void ResetNumberOfLoggedMessages();

// Number of any logged messages
vtkGetMacro(NumberOfLoggedMessages, int);
vtkSetMacro(NumberOfLoggedMessages, int);

// Number of logged warning or generic warning messages
vtkGetMacro(NumberOfLoggedWarningMessages, int);
vtkSetMacro(NumberOfLoggedWarningMessages, int);

// Number of logged error messages
vtkGetMacro(NumberOfLoggedErrorMessages, int);
vtkSetMacro(NumberOfLoggedErrorMessages, int);

// Returns the sum of warning and error messages logged
int GetNumberOfLoggedWarningErrorMessages();

protected:
vtkTestingOutputWindow();
~vtkTestingOutputWindow() override;
vtkTestingOutputWindow();
~vtkTestingOutputWindow() override;

int NumberOfLoggedWarningMessages{0};
int NumberOfLoggedErrorMessages{0};
int NumberOfLoggedMessages{0};
Expand Down