You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.6 KiB
103 lines
3.6 KiB
/*=========================================================================
|
|
|
|
Program: Visualization Toolkit
|
|
Module: $RCSfile: vtkParallelFactory.cxx,v $
|
|
|
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
|
All rights reserved.
|
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
PURPOSE. See the above copyright notice for more information.
|
|
|
|
=========================================================================*/
|
|
|
|
#include "vtkParallelFactory.h"
|
|
#include "vtkPImageWriter.h"
|
|
#include "vtkPPolyDataNormals.h"
|
|
#include "vtkPSphereSource.h"
|
|
#include "vtkPOutlineCornerFilter.h"
|
|
#include "vtkPOutlineFilter.h"
|
|
#include "vtkPStreamTracer.h"
|
|
#include "vtkPProbeFilter.h"
|
|
#include "vtkPLinearExtrusionFilter.h"
|
|
#include "vtkVersion.h"
|
|
|
|
vtkCxxRevisionMacro(vtkParallelFactory, "$Revision: 1.10 $");
|
|
vtkStandardNewMacro(vtkParallelFactory);
|
|
|
|
void vtkParallelFactory::PrintSelf(ostream& os, vtkIndent indent)
|
|
{
|
|
os << indent << "VTK Parallel object factory" << endl;
|
|
}
|
|
|
|
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPImageWriter);
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPPolyDataNormals);
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPSphereSource);
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPStreamTracer);
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPLinearExtrusionFilter);
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPOutlineCornerFilter);
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPOutlineFilter);
|
|
VTK_CREATE_CREATE_FUNCTION(vtkPProbeFilter);
|
|
|
|
vtkParallelFactory::vtkParallelFactory()
|
|
{
|
|
this->RegisterOverride("vtkImageWriter",
|
|
"vtkPImageWriter",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPImageWriter);
|
|
this->RegisterOverride("vtkPolyDataNormals",
|
|
"vtkPPolyDataNormals",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPPolyDataNormals);
|
|
this->RegisterOverride("vtkSphereSource",
|
|
"vtkPSphereSource",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPSphereSource);
|
|
this->RegisterOverride("vtkStreamTracer",
|
|
"vtkPStreamTracer",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPStreamTracer);
|
|
this->RegisterOverride("vtkLinearExtrusionFilter",
|
|
"vtkPLinearExtrusionFilter",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPLinearExtrusionFilter);
|
|
this->RegisterOverride("vtkOutlineCornerFilter",
|
|
"vtkPOutlineCornerFilter",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPOutlineCornerFilter);
|
|
this->RegisterOverride("vtkOutlineFilter",
|
|
"vtkPOutlineFilter",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPOutlineFilter);
|
|
this->RegisterOverride("vtkProbeFilter",
|
|
"vtkPProbeFilter",
|
|
"Parallel",
|
|
1,
|
|
vtkObjectFactoryCreatevtkPProbeFilter);
|
|
}
|
|
|
|
const char* vtkParallelFactory::GetVTKSourceVersion()
|
|
{
|
|
return VTK_SOURCE_VERSION;
|
|
}
|
|
|
|
const char* vtkParallelFactory::GetDescription()
|
|
{
|
|
return "VTK Parallel Support Factory";
|
|
}
|
|
|
|
|
|
extern "C" vtkObjectFactory* vtkLoad()
|
|
{
|
|
return vtkParallelFactory::New();
|
|
}
|
|
|