Commit 320a8022 authored by Kitware Robot's avatar Kitware Robot Committed by Shawn Waldon

Apply clang-format settings

This commit was generated automatically by running:

Utilities/Scripts/clang-format.bash --tracked
parent 609f2afc
Pipeline #31543 passed with stage

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -39,14 +39,15 @@ class ParaViewMainWindow : public QMainWindow
{
Q_OBJECT
typedef QMainWindow Superclass;
public:
ParaViewMainWindow();
~ParaViewMainWindow();
protected:
void dragEnterEvent(QDragEnterEvent *evt);
void dropEvent(QDropEvent *evt);
void showEvent(QShowEvent * evt);
void dragEnterEvent(QDragEnterEvent* evt);
void dropEvent(QDropEvent* evt);
void showEvent(QShowEvent* evt);
protected slots:
void showHelpForProxy(const QString& proxyname, const QString& groupname);
......@@ -60,5 +61,3 @@ private:
};
#endif
This diff is collapsed.
......@@ -25,31 +25,29 @@ int main(int argc, char* argv[])
{
// Initialization
vtkPVOptions* options = vtkPVOptions::New();
vtkInitializationHelper::Initialize(argc, argv,
vtkProcessModule::PROCESS_BATCH,
options);
vtkInitializationHelper::Initialize(argc, argv, vtkProcessModule::PROCESS_BATCH, options);
vtkSMSession* session = vtkSMSession::New();
vtkProcessModule::GetProcessModule()->RegisterSession(session);
vtkSMSessionProxyManager* pxm =
vtkSMProxyManager::GetProxyManager()->GetSessionProxyManager(session);
vtkSMProxyManager::GetProxyManager()->GetSessionProxyManager(session);
//---------------------------------------------------------------------------
if (!pxm)
{
{
cout << "Null proxy manager" << endl;
session->Delete();
return EXIT_FAILURE;
}
}
// Create proxy and change main radius value
vtkSMProxy* proxy = pxm->NewProxy("testcase", "None");
if (!proxy)
{
{
cout << "Null proxy" << endl;
session->Delete();
return EXIT_FAILURE;
}
}
proxy->UpdateVTKObjects();
// *******************************************************************
......
......@@ -26,49 +26,41 @@ int main(int argc, char* argv[])
{
// Initialization
vtkPVOptions* options = vtkPVOptions::New();
vtkInitializationHelper::Initialize(argc, argv,
vtkProcessModule::PROCESS_BATCH,
options);
vtkInitializationHelper::Initialize(argc, argv, vtkProcessModule::PROCESS_BATCH, options);
vtkSMSession* session = vtkSMSession::New();
vtkProcessModule::GetProcessModule()->RegisterSession(session);
vtkSMSessionProxyManager* pxm =
vtkSMProxyManager::GetProxyManager()->GetSessionProxyManager(session);
vtkSMProxyManager::GetProxyManager()->GetSessionProxyManager(session);
//---------------------------------------------------------------------------
if (!pxm)
{
{
cout << "Null proxy manager" << endl;
session->Delete();
return EXIT_FAILURE;
}
}
static const char* const filters[] = {
"Calculator",
"Contour",
"Clip",
"Cut",
NULL
};
static const char* const filters[] = { "Calculator", "Contour", "Clip", "Cut", NULL };
const char* const* name = &filters[0];
int result = EXIT_SUCCESS;
while (*name)
{
{
// Create proxy and change main radius value
vtkSmartPointer<vtkSMProxy> proxy;
proxy.TakeReference(pxm->NewProxy("filters", *name));
++name;
if (!proxy)
{
{
cout << "Null proxy for " << *name << endl;
result = EXIT_FAILURE;
continue;
}
proxy->UpdateVTKObjects();
}
proxy->UpdateVTKObjects();
}
// *******************************************************************
......
......@@ -26,52 +26,42 @@ int main(int argc, char* argv[])
{
// Initialization
vtkPVOptions* options = vtkPVOptions::New();
vtkInitializationHelper::Initialize(argc, argv,
vtkProcessModule::PROCESS_BATCH,
options);
vtkInitializationHelper::Initialize(argc, argv, vtkProcessModule::PROCESS_BATCH, options);
vtkSMSession* session = vtkSMSession::New();
vtkProcessModule::GetProcessModule()->RegisterSession(session);
vtkSMSessionProxyManager* pxm =
vtkSMProxyManager::GetProxyManager()->GetSessionProxyManager(session);
vtkSMProxyManager::GetProxyManager()->GetSessionProxyManager(session);
//---------------------------------------------------------------------------
if (!pxm)
{
{
cout << "Null proxy manager" << endl;
session->Delete();
return EXIT_FAILURE;
}
}
static const char* const filters[] = {
"PVExtractSelection",
"ExtractHistogram",
"Glyph",
"WarpScalar",
"WarpVector",
"IntegrateAttributes",
"DataSetSurfaceFilter",
NULL
};
static const char* const filters[] = { "PVExtractSelection", "ExtractHistogram", "Glyph",
"WarpScalar", "WarpVector", "IntegrateAttributes", "DataSetSurfaceFilter", NULL };
const char* const* name = &filters[0];
int result = EXIT_SUCCESS;
while (*name)
{
{
// Create proxy and change main radius value
vtkSmartPointer<vtkSMProxy> proxy;
proxy.TakeReference(pxm->NewProxy("filters", *name));
++name;
if (!proxy)
{
{
cout << "Null proxy for " << *name << endl;
result = EXIT_FAILURE;
continue;
}
proxy->UpdateVTKObjects();