First compilable version of KERNEL and GUI modules.
libSalomePy_la_LDFLAGS = $(PYTHON_LIBS) $(QT_MT_LIBS) $(VTK_LIBS) $(OGL_LIBS) \
../LightApp/libLightApp.la \
- -lvtkCommonPythonD -lvtkGraphicsPythonD -lvtkImagingPythonD -lvtkPythonCore
+ -lvtkWrappingPython26
SVTK_RecorderDlg.cxx \
SVTK_ImageWriter.cxx \
SVTK_ImageWriterMgr.cxx \
- SVTK_Utils.cxx \
- vtkPVAxesActor.h \
- vtkPVAxesActor.cxx \
- vtkPVAxesWidget.h \
- vtkPVAxesWidget.cxx
+ SVTK_Utils.cxx
+# OUV_PORTING_VTK6: to do
+# vtkPVAxesActor.h \
+# vtkPVAxesActor.cxx \
+# vtkPVAxesWidget.h \
+# vtkPVAxesWidget.cxx
# internal headers
-I$(srcdir)/../OBJECT \
-I$(srcdir)/../Prs \
-I$(srcdir)/../VTKViewer \
- -I$(srcdir)/../OpenGLUtils
+ -I$(srcdir)/../OpenGLUtils \
+ -DvtkRenderingCore_AUTOINIT="2(vtkInteractionStyle,vtkRenderingOpenGL)"
libSVTK_la_LDFLAGS = \
$(VTK_LIBS) $(OGL_LIBS) \
myOutline->Delete();
vtkPolyDataMapper* anOutlineMapper = vtkPolyDataMapper::New();
- anOutlineMapper->SetInput(myOutline->GetOutput());
+ anOutlineMapper->SetInputConnection(myOutline->GetOutputPort());
myOutlineActor->Delete();
myOutlineActor->SetMapper( anOutlineMapper );
this->rgridMapperYZ = vtkPolyDataMapper::New();
this->rgridMapperXZ = vtkPolyDataMapper::New();
- this->rgridMapperXY->SetInput(this->planeXY->GetOutput());
- this->rgridMapperYZ->SetInput(this->planeYZ->GetOutput());
- this->rgridMapperXZ->SetInput(this->planeXZ->GetOutput());
+ this->rgridMapperXY->SetInputConnection(this->planeXY->GetOutputPort());
+ this->rgridMapperYZ->SetInputConnection(this->planeYZ->GetOutputPort());
+ this->rgridMapperXZ->SetInputConnection(this->planeXZ->GetOutputPort());
this->wireActorXY->SetMapper(rgridMapperXY);
this->wireActorYZ->SetMapper(rgridMapperYZ);
rgrid->SetYCoordinates(YCoords);
rgrid->SetZCoordinates(ZCoords);
- this->planeXY->SetInput(rgrid);
- this->planeYZ->SetInput(rgrid);
- this->planeXZ->SetInput(rgrid);
+ this->planeXY->SetInputData(rgrid);
+ this->planeYZ->SetInputData(rgrid);
+ this->planeXZ->SetInputData(rgrid);
rgrid->Delete();
#endif
#ifndef WIN32
-class VTK_HYBRID_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
+class VTKRENDERINGANNOTATION_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
#else
class SVTK_EXPORT SVTK_CubeAxesActor2D : public vtkCubeAxesActor2D
#endif
{
if(theMapper){
int anId = 0;
- myPassFilter[ anId ]->SetInput( theMapper->GetInput() );
- myPassFilter[ anId + 1]->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myPassFilter[ anId ]->SetInputData( theMapper->GetInput() );
+ myPassFilter[ anId + 1]->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 1
- myGeomFilter->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myGeomFilter->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 2
- myPassFilter[ anId ]->SetInput( myGeomFilter->GetOutput() );
- myPassFilter[ anId + 1 ]->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myPassFilter[ anId ]->SetInputConnection( myGeomFilter->GetOutputPort() );
+ myPassFilter[ anId + 1 ]->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 3
- myTransformFilter->SetInput( myPassFilter[ anId ]->GetPolyDataOutput() );
+ myTransformFilter->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 4
- myPassFilter[ anId ]->SetInput( myTransformFilter->GetOutput() );
- myPassFilter[ anId + 1 ]->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myPassFilter[ anId ]->SetInputConnection( myTransformFilter->GetOutputPort() );
+ myPassFilter[ anId + 1 ]->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 5
+ // OUV_PORTING_VTK6: to check
if(VTKViewer_DataSetMapper* aMapper = dynamic_cast<VTKViewer_DataSetMapper*>(theMapper)){
- aMapper->SetInput(myPassFilter[anId]->GetOutput());
+ aMapper->SetInputConnection(myPassFilter[anId]->GetOutputPort());
}else if(VTKViewer_PolyDataMapper* aMapper = dynamic_cast<VTKViewer_PolyDataMapper*>(theMapper)){
- aMapper->SetInput(myPassFilter[anId]->GetPolyDataOutput());
+ aMapper->SetInputConnection(myPassFilter[anId]->GetOutputPort());
}
}
Superclass::SetMapper(theMapper);
SVTK_DeviceActor
::SetInput(vtkDataSet* theDataSet)
{
- myMapper->SetInput(theDataSet);
+ myMapper->SetInputData(theDataSet);
InitPipeLine(myMapper);
}
if ( !myIsShrinkable )
return;
- if ( vtkDataSet* aDataSet = myPassFilter[ 0 ]->GetOutput() )
+ if ( vtkAlgorithmOutput* aDataSet = myPassFilter[ 0 ]->GetOutputPort() )
{
- aDataSet->Update();
+ myPassFilter[ 0 ]->Update();
+ // OUV_PORTING_VTK6: to do
+ /*
int numCells=aDataSet->GetNumberOfCells();
int numPts = aDataSet->GetNumberOfPoints();
//It's impossible to use to apply "shrink" for "empty" dataset
if (numCells < 1 || numPts < 1)
return;
- myShrinkFilter->SetInput( aDataSet );
- myPassFilter[ 1 ]->SetInput( myShrinkFilter->GetOutput() );
+ */
+ myShrinkFilter->SetInputConnection( aDataSet );
+ myPassFilter[ 1 ]->SetInputConnection( myShrinkFilter->GetOutputPort() );
myIsShrunk = true;
}
}
::UnShrink()
{
if ( !myIsShrunk ) return;
- if ( vtkDataSet* aDataSet = myPassFilter[ 0 ]->GetOutput() )
+ if ( vtkAlgorithmOutput* aDataSet = myPassFilter[ 0 ]->GetOutputPort() )
{
- myPassFilter[ 1 ]->SetInput( aDataSet );
+ myPassFilter[ 1 ]->SetInputConnection( aDataSet );
myIsShrunk = false;
}
}
if ( !myIsFeatureEdgesAllowed || myIsFeatureEdgesEnabled == theIsFeatureEdgesEnabled )
return;
- if ( vtkPolyData* aPolyData = myPassFilter[ 2 ]->GetPolyDataOutput() )
+ if ( vtkAlgorithmOutput* aPolyData = myPassFilter[ 2 ]->GetOutputPort() )
{
if( theIsFeatureEdgesEnabled )
{
- aPolyData->Update();
- myFeatureEdges->SetInput( aPolyData );
- myPassFilter[ 3 ]->SetInput( myFeatureEdges->GetOutput() );
+ myPassFilter[ 2 ]->Update();
+ myFeatureEdges->SetInputConnection( aPolyData );
+ myPassFilter[ 3 ]->SetInputConnection( myFeatureEdges->GetOutputPort() );
myIsFeatureEdgesEnabled = true;
}
else
{
- myPassFilter[3]->SetInput( aPolyData );
+ myPassFilter[3]->SetInputConnection( aPolyData );
myIsFeatureEdgesEnabled = false;
}
myIsFeatureEdgesEnabled = theIsFeatureEdgesEnabled;
::run()
{
vtkJPEGWriter *aWriter = vtkJPEGWriter::New();
- vtkImageData *anImageData = myImageData;
+ vtkAlgorithmOutput *anImageData = 0;
vtkSmartPointer<vtkImageClip> anImageClip;
//
if(myConstraint16Flag){
int uExtent[6];
+ // OUV_PORTING_VTK6: to do
+ /*
myImageData->UpdateInformation();
myImageData->GetUpdateExtent(uExtent);
+ */
unsigned int width = uExtent[1] - uExtent[0] + 1;
unsigned int height = uExtent[3] - uExtent[2] + 1;
width = (width / 16) * 16;
anImageClip = vtkImageClip::New();
anImageClip->Delete();
- anImageClip->SetInput(myImageData);
+ anImageClip->SetInputData(myImageData);
anImageClip->SetOutputWholeExtent(uExtent);
anImageClip->ClipDataOn();
- anImageData = anImageClip->GetOutput();
+ anImageData = anImageClip->GetOutputPort();
}
//
aWriter->WriteToMemoryOff();
aWriter->SetFileName(myName.c_str());
aWriter->SetQuality(myQuality);
aWriter->SetProgressive(myProgressive);
- aWriter->SetInput(anImageData);
+ if(myConstraint16Flag)
+ aWriter->SetInputConnection(anImageData);
+ else
+ aWriter->SetInputData(myImageData);
aWriter->Write();
aWriter->Delete();
myErrorStatus = 20;
return;
}
+ // OUV_PORTING_VTK6: to do
+ /*
anImageData->UpdateInformation();
int *anExtent = anImageData->GetWholeExtent();
anImageData->SetUpdateExtent(anExtent[0], anExtent[1],
anExtent[2], anExtent[3],
0,0);
anImageData->UpdateData();
+ */
}
#include "SVTK_Recorder.h"
#include "SVTK_RecorderDlg.h"
-#include "vtkPVAxesWidget.h"
-#include "vtkPVAxesActor.h"
+// OUV_PORTING_VTK6: to do
+//#include "vtkPVAxesWidget.h"
+//#include "vtkPVAxesActor.h"
#include "SALOME_ListIteratorOfListIO.hxx"
setCentralWidget(myInteractor);
+ // OUV_PORTING_VTK6: to do
+ /*
myAxesWidget = vtkPVAxesWidget::New();
myAxesWidget->SetParentRenderer(aRenderer->GetDevice());
myAxesWidget->SetViewport(0, 0, 0.25, 0.25);
anAxesActor->GetZAxisTipProperty()->SetColor( 0.0, 0.0, 1.0 );
anAxesActor->GetZAxisShaftProperty()->SetColor( 0.0, 0.0, 1.0 );
anAxesActor->GetZAxisLabelProperty()->SetColor( 0.0, 0.0, 1.0 );
+ */
myView = new SVTK_View(this);
Initialize(myView,theModel);
SVTK_ViewWindow::~SVTK_ViewWindow()
{
myRecorder->Delete();
- myAxesWidget->Delete();
+ // OUV_PORTING_VTK6: to do
+ //myAxesWidget->Delete();
}
*/
bool SVTK_ViewWindow::IsStaticTrihedronVisible() const
{
- return (bool)myAxesWidget->GetEnabled();
+ // OUV_PORTING_VTK6: to do
+ //return (bool)myAxesWidget->GetEnabled();
+ return false;
}
/*!
*/
void SVTK_ViewWindow::SetStaticTrihedronVisible( const bool theIsVisible )
{
- myAxesWidget->SetEnabled( (int)theIsVisible );
+ // OUV_PORTING_VTK6: to do
+ //myAxesWidget->SetEnabled( (int)theIsVisible );
}
/*!
class SVTK_ViewParameterDlg;
class SVTK_Recorder;
-class vtkPVAxesWidget;
+// OUV_PORTING_VTK6: to do
+//class vtkPVAxesWidget;
class vtkObject;
class QtxAction;
int myToolBar;
int myRecordingToolBar;
- vtkPVAxesWidget* myAxesWidget;
+ // OUV_PORTING_VTK6: to do
+ //vtkPVAxesWidget* myAxesWidget;
Qtx::BackgroundData myBackground;
private:
{
if(theMapper){
int anId = 0;
- myPassFilter[ anId ]->SetInput( theMapper->GetInput() );
- myPassFilter[ anId + 1]->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myPassFilter[ anId ]->SetInputData( theMapper->GetInput() );
+ myPassFilter[ anId + 1]->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 1
myGeomFilter->SetStoreMapping( myStoreMapping );
- myGeomFilter->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myGeomFilter->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 2
- myPassFilter[ anId ]->SetInput( myGeomFilter->GetOutput() );
- myPassFilter[ anId + 1 ]->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myPassFilter[ anId ]->SetInputConnection( myGeomFilter->GetOutputPort() );
+ myPassFilter[ anId + 1 ]->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 3
- myTransformFilter->SetInput( myPassFilter[ anId ]->GetPolyDataOutput() );
+ myTransformFilter->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 4
- myPassFilter[ anId ]->SetInput( myTransformFilter->GetOutput() );
- myPassFilter[ anId + 1 ]->SetInput( myPassFilter[ anId ]->GetOutput() );
+ myPassFilter[ anId ]->SetInputConnection( myTransformFilter->GetOutputPort() );
+ myPassFilter[ anId + 1 ]->SetInputConnection( myPassFilter[ anId ]->GetOutputPort() );
anId++; // 5
+ // OUV_PORTING_VTK6: to check
if(vtkDataSetMapper* aMapper = dynamic_cast<vtkDataSetMapper*>(theMapper)){
- aMapper->SetInput(myPassFilter[anId]->GetOutput());
+ aMapper->SetInputConnection(myPassFilter[anId]->GetOutputPort());
}else if(vtkPolyDataMapper* aMapper = dynamic_cast<vtkPolyDataMapper*>(theMapper)){
- aMapper->SetInput(myPassFilter[anId]->GetPolyDataOutput());
+ aMapper->SetInputConnection(myPassFilter[anId]->GetOutputPort());
}
}
Superclass::SetMapper(theMapper);
vtkUnstructuredGrid* aTransformedGrid;
if(needRotation) {
aTransformedGrid = TransformGrid(aGrid,aAxis,anAngle);
- aTransformedGrid->Update();
+ //aTransformedGrid->Update(); // OUV_PORTING_VTK6: seems to be useless
#ifdef _MY_DEBUG_
cout<<"Need Rotation!!!"<<endl;
#endif
vtkUnstructuredGrid* anTransArc;
if(needRotation) {
anTransArc = TransformGrid(anArc,aAxis,-anAngle);
- anTransArc->Update();
+ //anTransArc->Update(); // OUV_PORTING_VTK6: seems to be useless
}
else
anTransArc = anArc;
aList.push_back(thePnt2);
aList.push_back(thePnt3);
vtkUnstructuredGrid* aGrid = BuildGrid(aList);
- aGrid->Update();
+ //aGrid->Update(); // OUV_PORTING_VTK6: seems to be useless
myPoints = aGrid->GetPoints();
myScalarValues.clear();
aTransform->RotateWXYZ(angle, theAxis.GetXYZ().X(), theAxis.GetXYZ().Y(), theAxis.GetXYZ().Z());
vtkTransformFilter* aTransformFilter = vtkTransformFilter::New();
aTransformFilter->SetTransform(aTransform);
- aTransformFilter->SetInput(theGrid);
+ aTransformFilter->SetInputData(theGrid);
aTransform->Delete();
return aTransformFilter->GetUnstructuredGridOutput();
}
/* double aTotalAngle = fabs(angle3 - angle1);
- if (aTotalAngle > vtkMath::DoublePi())
- aTotalAngle = 2*vtkMath::DoublePi()-aTotalAngle;
+ if (aTotalAngle > vtkMath::Pi())
+ aTotalAngle = 2*vtkMath::Pi()-aTotalAngle;
*/
double aTotalAngle = 0;
const double theXPoint, const double theYPoint){
double result = atan2(theYCenter - theYPoint, theXPoint - theXCenter);
if(result < 0 )
- result = result+vtkMath::DoublePi()*2;
- return vtkMath::DoublePi()*2-result;
+ result = result+vtkMath::Pi()*2;
+ return vtkMath::Pi()*2-result;
return result;
}
aResult = VTKViewer_ArcBuilder::PLUS;
}
else if((P1 < P3 && P3 < P2) || (P2 < P1 && P1 < P3)){
- *Ang = 2*vtkMath::DoublePi() - P3 + P1;
+ *Ang = 2*vtkMath::Pi() - P3 + P1;
aResult = VTKViewer_ArcBuilder::MINUS;
}
else if((P2 < P3 && P3 < P1) || (P3 < P1 && P1 < P2)){
- *Ang = 2*vtkMath::DoublePi() - P1 + P3;
+ *Ang = 2*vtkMath::Pi() - P1 + P3;
aResult = VTKViewer_ArcBuilder::PLUS;
}
else if(P3 < P2 && P2 < P1){
myUnstructuredGrid->Allocate();
myUnstructuredGrid->SetPoints(myPoints);
- myDelaunay3D->SetInput(myUnstructuredGrid);
- myGeometryFilter->SetInput(myDelaunay3D->GetOutput());
+ myDelaunay3D->SetInputData(myUnstructuredGrid);
+ myGeometryFilter->SetInputConnection(myDelaunay3D->GetOutputPort());
myPolyData = myGeometryFilter->GetOutput();
}
{
vtkDataSetSurfaceFilter *gf = vtkDataSetSurfaceFilter::New();
VTKViewer_PolyDataMapper *pm = VTKViewer_PolyDataMapper::New();
- pm->SetInput(gf->GetOutput());
+ pm->SetInputConnection(gf->GetOutputPort());
pm->SetMarkerEnabled( this->MarkerEnabled );
if( this->MarkerType != VTK::MT_USER )
}
-// int VTKViewer_ExtractUnstructuredGrid::RequestData(
-// vtkInformation *vtkNotUsed(request),
-// vtkInformationVector **inputVector,
-// vtkInformationVector *outputVector)
-void VTKViewer_ExtractUnstructuredGrid::Execute()
+int VTKViewer_ExtractUnstructuredGrid::RequestData(vtkInformation *vtkNotUsed(request),
+ vtkInformationVector **inputVector,
+ vtkInformationVector *outputVector)
{
- /*
- not ported yet to the new executive-based pipeline architecture.
-
// get the info objects
vtkInformation *inInfo = inputVector[0]->GetInformationObject(0);
vtkInformation *outInfo = outputVector->GetInformationObject(0);
inInfo->Get(vtkDataObject::DATA_OBJECT()));
vtkUnstructuredGrid *anOutput = vtkUnstructuredGrid::SafeDownCast(
outInfo->Get(vtkDataObject::DATA_OBJECT()));
- */
- vtkUnstructuredGrid *anInput = this->GetInput();
- vtkUnstructuredGrid *anOutput = this->GetOutput();
+
+ //vtkUnstructuredGrid *anInput = this->GetInput();
+ //vtkUnstructuredGrid *anOutput = this->GetOutput();
myOut2InId.clear(); myIn2OutId.clear();
MESSAGE("Execute - myIn2OutId.size() = "<<myIn2OutId.size());
}
}*/
-// return 1;
+ return 1;
}
#include "VTKViewer.h"
-#include <vtkUnstructuredGridToUnstructuredGridFilter.h>
+#include <vtkUnstructuredGridAlgorithm.h>
#include <set>
#include <map>
#pragma warning ( disable:4251 )
#endif
-/*! \class vtkUnstructuredGridToUnstructuredGridFilter
+/*! \class vtkUnstructuredGridAlgorithm
* \brief For more information see <a href="http://www.vtk.org/">VTK documentation</a>
*/
-/*! \class vtkUnstructuredGridToUnstructuredGridFilter
+/*! \class vtkUnstructuredGridAlgorithm
* \brief For more information see VTK documentation.
*/
-class VTKVIEWER_EXPORT VTKViewer_ExtractUnstructuredGrid : public vtkUnstructuredGridToUnstructuredGridFilter
+class VTKVIEWER_EXPORT VTKViewer_ExtractUnstructuredGrid : public vtkUnstructuredGridAlgorithm
{
public:
//! VTK type macros.
- vtkTypeMacro( VTKViewer_ExtractUnstructuredGrid, vtkUnstructuredGridToUnstructuredGridFilter );
+ vtkTypeMacro( VTKViewer_ExtractUnstructuredGrid, vtkUnstructuredGridAlgorithm );
//! \brief Construct with all types of clipping turned off.
static VTKViewer_ExtractUnstructuredGrid *New();
VTKViewer_ExtractUnstructuredGrid();
~VTKViewer_ExtractUnstructuredGrid();
- //! Main method, which calculate output
- // not ported yet to the new executive-based pipeline architecture.
- // see http://www.vtk.org/cgi-bin/viewcvs.cgi/Filtering/vtkUnstructuredGridToUnstructuredGridFilter.h?rev=1.19&view=log
- // virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
- virtual void Execute();
+ virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
EExtraction myExtractionMode;
myTransparency=0.;
myBar = vtkPolyData::New();
myBarMapper = vtkPolyDataMapper2D::New();
- myBarMapper->SetInput(myBar);
+ myBarMapper->SetInputData(myBar);
myBarActor = vtkActor2D::New();
myBarActor->SetMapper(myBarMapper);
myBarActor->GetProperty()->SetOpacity(1.-myTransparency);
// from ParaView-3.4.0 compiled on 64-bit Debian platform with VTK_USE_64BIT_IDS = ON
vtkIdType aNewPts[VTK_CELL_SIZE];
// ghost cell stuff
- unsigned char updateLevel = (unsigned char)(output->GetUpdateGhostLevel());
+ unsigned char updateLevel = (unsigned char)(GetUpdateGhostLevel());
unsigned char *cellGhostLevels = 0;
PixelConvert[0] = 0;
anImageData->Delete();
anImageData->SetExtent( 0, aWidth-1, 0, aHeight-1, 0, 0 );
- anImageData->SetScalarTypeToUnsignedChar();
- anImageData->SetNumberOfScalarComponents( 4 );
- anImageData->AllocateScalars();
+ // OUV_PORTING_VTK6: to do (see Scalars Manipulation Functions)
+ //anImageData->SetScalarTypeToUnsignedChar();
+ //anImageData->SetNumberOfScalarComponents( 4 );
+ //anImageData->AllocateScalars();
unsigned char* aDataPtr = (unsigned char*)anImageData->GetScalarPointer();
aDataPtr[ anId++ ] = aValue * aCoef;
aDataPtr[ anId++ ] = aValue;
}
- anImageData->Update();
+ //anImageData->Update(); // OUV_PORTING_VTK6: seems to be useless
return anImageData;
}
int* aSize = theRenderer->GetRenderWindow()->GetSize();
vtkFloatingPointType aWinDiag = sqrt(vtkFloatingPointType(aSize[0]*aSize[0]+aSize[1]*aSize[1]));
vtkDataSet* aDataSet = GetMapper()->GetInput();
- aDataSet->Update();
+ GetMapper()->Update();
vtkFloatingPointType aLength = aDataSet->GetLength();
vtkFloatingPointType aPrecision = 1.0E-3;
vtkFloatingPointType aZeroTol = 1.0E-12;
myLineSource->SetPoint1(0.0,0.0,0.0);
myMapper[0] = vtkPolyDataMapper::New();
- myMapper[0]->SetInput(myLineSource->GetOutput());
+ myMapper[0]->SetInputConnection(myLineSource->GetOutputPort());
myLineActor = VTKViewer_LineActor::New();
myLineActor->SetMapper(myMapper[0]);
myConeSource->SetCenter(-0.5,0.0,0.0);
myMapper[1] = vtkPolyDataMapper::New();
- myMapper[1]->SetInput(myConeSource->GetOutput());
+ myMapper[1]->SetInputConnection(myConeSource->GetOutputPort());
myArrowActor = vtkFollower::New();
myArrowActor->SetMapper(myMapper[1]);
myVectorText = vtkVectorText::New();
myMapper[2] = vtkPolyDataMapper::New();
- myMapper[2]->SetInput(myVectorText->GetOutput());
+ myMapper[2]->SetInputConnection(myVectorText->GetOutputPort());
myLabelActor = VTKViewer_UnScaledActor::New();
myLabelActor->SetMapper(myMapper[2]);