Changeset 6162 for vtkvis/trunk/DataSet.h
- Timestamp:
- Mar 20, 2016, 10:00:11 PM (9 years ago)
- Location:
- vtkvis/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/trunk
- Property svn:mergeinfo changed
/vtkvis/branches/1.8 merged: 5843-5844
- Property svn:mergeinfo changed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.