- Timestamp:
- Mar 20, 2016, 10:00:11 PM (8 years ago)
- Location:
- vtkvis/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/trunk
- Property svn:mergeinfo changed
/vtkvis/branches/1.8 merged: 5843-5844
- Property svn:mergeinfo changed
-
vtkvis/trunk/Contour2D.cpp
r5835 r6162 12 12 #include <vtkPointData.h> 13 13 #include <vtkCellData.h> 14 #include <vtkTrivialProducer.h>15 14 #include <vtkCellDataToPointData.h> 16 15 #include <vtkContourFilter.h> … … 127 126 vtkAlgorithmOutput *dsOutput = NULL; 128 127 vtkSmartPointer<vtkCellDataToPointData> cellToPtData; 129 vtkSmartPointer<vtkTrivialProducer> prod;130 128 131 129 if (ds->GetPointData() == NULL || … … 143 141 } 144 142 } else { 145 prod = vtkSmartPointer<vtkTrivialProducer>::New(); 146 prod->SetOutput(ds); 147 dsOutput = prod->GetOutputPort(); 143 dsOutput = _dataSet->getProducerPort(); 148 144 } 149 145 -
vtkvis/trunk/Contour3D.cpp
r5835 r6162 12 12 #include <vtkPointData.h> 13 13 #include <vtkCellData.h> 14 #include <vtkTrivialProducer.h>15 14 #include <vtkCellDataToPointData.h> 16 15 #include <vtkContourFilter.h> … … 122 121 vtkAlgorithmOutput *dsOutput = NULL; 123 122 vtkSmartPointer<vtkCellDataToPointData> cellToPtData; 124 vtkSmartPointer<vtkTrivialProducer> prod;125 123 126 124 if (ds->GetPointData() == NULL || … … 138 136 } 139 137 } else { 140 prod = vtkSmartPointer<vtkTrivialProducer>::New(); 141 prod->SetOutput(ds); 142 dsOutput = prod->GetOutputPort(); 138 dsOutput = _dataSet->getProducerPort(); 143 139 } 144 140 -
vtkvis/trunk/DataSet.h
r4739 r6162 12 12 #include <vtkDataSet.h> 13 13 #include <vtkDataSetReader.h> 14 #include <vtkAlgorithmOutput.h> 15 #include <vtkTrivialProducer.h> 14 16 15 17 #include <string> … … 61 63 62 64 vtkDataSet *getVtkDataSet(); 65 66 vtkAlgorithmOutput *getProducerPort() 67 { 68 if (_producer == NULL) { 69 _producer = vtkSmartPointer<vtkTrivialProducer>::New(); 70 _producer->SetOutput(_dataSet); 71 } 72 return _producer->GetOutputPort(); 73 } 63 74 64 75 const char *getVtkType() const; … … 137 148 std::string _name; 138 149 vtkSmartPointer<vtkDataSet> _dataSet; 150 vtkSmartPointer<vtkTrivialProducer> _producer; 139 151 bool _visible; 140 152 double _opacity; -
vtkvis/trunk/HeightMap.cpp
r5835 r6162 11 11 #include <vtkPointData.h> 12 12 #include <vtkCellData.h> 13 #include <vtkTrivialProducer.h>14 13 #include <vtkCellDataToPointData.h> 15 14 #include <vtkPolyDataMapper.h> … … 230 229 vtkAlgorithmOutput *dsOutput = NULL; 231 230 vtkSmartPointer<vtkCellDataToPointData> cellToPtData; 232 vtkSmartPointer<vtkTrivialProducer> prod;233 231 234 232 if (ds->GetPointData() == NULL || … … 247 245 } 248 246 } else { 249 prod = vtkSmartPointer<vtkTrivialProducer>::New(); 250 prod->SetOutput(ds); 251 dsOutput = prod->GetOutputPort(); 247 dsOutput = _dataSet->getProducerPort(); 252 248 } 253 249 -
vtkvis/trunk/Warp.cpp
r5835 r6162 13 13 #include <vtkPointData.h> 14 14 #include <vtkCellData.h> 15 #include <vtkTrivialProducer.h>16 15 #include <vtkCellDataToPointData.h> 17 16 #include <vtkPolyDataMapper.h> … … 112 111 vtkAlgorithmOutput *dsOutput = NULL; 113 112 vtkSmartPointer<vtkCellDataToPointData> cellToPtData; 114 vtkSmartPointer<vtkTrivialProducer> prod;115 113 if (ds->GetPointData() == NULL || 116 114 ds->GetPointData()->GetVectors() == NULL) { … … 128 126 } 129 127 } else { 130 prod = vtkSmartPointer<vtkTrivialProducer>::New(); 131 prod->SetOutput(ds); 132 dsOutput = prod->GetOutputPort(); 128 dsOutput = _dataSet->getProducerPort(); 133 129 } 134 130
Note: See TracChangeset
for help on using the changeset viewer.