Ignore:
Timestamp:
Mar 20, 2016, 10:00:11 PM (9 years ago)
Author:
ldelgass
Message:

merge r5843:5844 from 1.8 branch

Location:
vtkvis/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vtkvis/trunk

  • vtkvis/trunk/DataSet.h

    r4739 r6162  
    1212#include <vtkDataSet.h>
    1313#include <vtkDataSetReader.h>
     14#include <vtkAlgorithmOutput.h>
     15#include <vtkTrivialProducer.h>
    1416
    1517#include <string>
     
    6163
    6264    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    }
    6374
    6475    const char *getVtkType() const;
     
    137148    std::string _name;
    138149    vtkSmartPointer<vtkDataSet> _dataSet;
     150    vtkSmartPointer<vtkTrivialProducer> _producer;
    139151    bool _visible;
    140152    double _opacity;
Note: See TracChangeset for help on using the changeset viewer.