Ignore:
Timestamp:
Jun 7, 2013 2:27:25 PM (11 years ago)
Author:
ldelgass
Message:

Improved cloud support in vtkvis: handle ugrids with no cells as well as
polydata clouds, add cloudstyle options to some graphics objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/HeightMap.h

    r3621 r3680  
    1313#include <vtkContourFilter.h>
    1414#include <vtkLookupTable.h>
    15 #include <vtkDataSetMapper.h>
     15#include <vtkPolyDataMapper.h>
    1616#include <vtkActor.h>
    1717#include <vtkPlaneCollection.h>
     
    2121#include <vtkPolyDataNormals.h>
    2222#include <vtkAssembly.h>
    23 #include <vtkPolyData.h>
     23#include <vtkDataSet.h>
    2424#include <vtkPlane.h>
    2525
     
    3737class HeightMap : public GraphicsObject {
    3838public:
     39    enum CloudStyle {
     40        CLOUD_MESH,
     41        CLOUD_SPLAT
     42    };
    3943    enum ColorMode {
    4044        COLOR_BY_SCALAR,
     
    7377
    7478    virtual void setAspect(double aspect);
     79
     80    void setCloudStyle(CloudStyle style);
    7581
    7682    void selectVolumeSlice(Axis axis, double ratio);
     
    134140
    135141    vtkAlgorithmOutput *initWarp(vtkAlgorithmOutput *input);
    136     vtkAlgorithmOutput *initWarp(vtkPolyData *input);
     142    vtkAlgorithmOutput *initWarp(vtkDataSet *input);
    137143
    138144    int _numContours;
     
    147153    bool _pipelineInitialized;
    148154
     155    CloudStyle _cloudStyle;
    149156    ColorMap *_colorMap;
    150157    ColorMode _colorMode;
     
    157164
    158165    vtkSmartPointer<vtkLookupTable> _lut;
    159     vtkSmartPointer<vtkDataSetMapper> _dsMapper;
     166    vtkSmartPointer<vtkPolyDataMapper> _mapper;
    160167    vtkSmartPointer<vtkContourFilter> _contourFilter;
    161168    vtkSmartPointer<vtkPolyDataMapper> _contourMapper;
    162     vtkSmartPointer<vtkGaussianSplatter> _pointSplatter;
     169    vtkSmartPointer<vtkGaussianSplatter> _splatter;
    163170    vtkSmartPointer<vtkExtractVOI> _volumeSlicer;
    164171    vtkSmartPointer<vtkPlane> _cutPlane;
Note: See TracChangeset for help on using the changeset viewer.