Ignore:
Timestamp:
Jul 18, 2013, 2:51:21 PM (11 years ago)
Author:
ldelgass
Message:

Add colormode for PolyData?, by default color map if an active scalar field with
multiple components is present (color scalars). Add protocol for image/text3d
drawing components. Make 'color' synonym for 'ccolor' in protocol commands,
also accept 'ccolor' or 'constant' as colormode. Add experimental commands for
simple legend (no field info required), extended colormode for heightmap with
explicit range. Add fontconfig support (needs testing). Added code to remove
duplicate points from unstructured grids. Should probably be optional. Stack
trace on error (if WANT_TRACE is on) using VTK.

File:
1 edited

Legend:

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

    r3771 r3818  
    4040#include "Group.h"
    4141#include "HeightMap.h"
     42#include "Image.h"
    4243#include "LIC.h"
    4344#include "Line.h"
     
    4950#include "Sphere.h"
    5051#include "Streamlines.h"
     52#include "Text3D.h"
    5153#include "Volume.h"
    5254#include "Warp.h"
     
    420422
    421423    void setColorMapNumberOfTableEntries(const ColorMapId& id, int numEntries);
     424
     425    bool renderColorMap(const ColorMapId& id,
     426                        int width, int height,
     427                        bool opaque,
     428                        vtkUnsignedCharArray *imgData);
    422429
    423430    bool renderColorMap(const ColorMapId& id,
     
    745752                               const char *name, double range[2] = NULL);
    746753
     754    // Images
     755
     756    void setImageBackground(const DataSetId& id, bool state);
     757
     758    void setImageBacking(const DataSetId& id, bool state);
     759
     760    void setImageBorder(const DataSetId& id, bool state);
     761
     762    void setImageExtents(const DataSetId& id, int extents[6]);
     763
     764    void setImageLevel(const DataSetId& id, double level);
     765
     766    void setImageWindow(const DataSetId& id, double window);
     767
     768    void setImageZSlice(const DataSetId& id, int z);
    747769
    748770    // Lines
     
    796818                               PolyData::CloudStyle style);
    797819
     820    void setPolyDataColorMode(const DataSetId& id,
     821                              PolyData::ColorMode mode,
     822                              const char *name, double range[2] = NULL);
     823
     824    void setPolyDataColorMode(const DataSetId& id,
     825                              PolyData::ColorMode mode,
     826                              DataSet::DataAttributeType type,
     827                              const char *name, double range[2] = NULL);
     828
    798829    // Color-mapped surfaces
    799830
     
    880911
    881912    void setStreamlinesTypeToRibbons(const DataSetId& id, double width, double angle);
     913
     914    // Text3Ds
     915
     916    bool addText3D(const DataSetId& id, const char *string,
     917                   const char *fontFamily, int fontSize,
     918                   bool bold = false, bool italic = false, bool shadow = false);
     919
     920    void setText3DBold(const DataSetId& id, bool state);
     921
     922    void setText3DFollowCamera(const DataSetId& id, bool state);
     923
     924    void setText3DFont(const DataSetId& id, const char *fontFamily);
     925
     926    void setText3DFontSize(const DataSetId& id, int size);
     927
     928    void setText3DItalic(const DataSetId& id, bool state);
     929
     930    void setText3DShadow(const DataSetId& id, bool state);
     931
     932    void setText3DText(const DataSetId& id, const char *text);
    882933
    883934    // Volumes
     
    919970    typedef std::tr1::unordered_map<DataSetId, Group *> GroupHashmap;
    920971    typedef std::tr1::unordered_map<DataSetId, HeightMap *> HeightMapHashmap;
     972    typedef std::tr1::unordered_map<DataSetId, Image *> ImageHashmap;
    921973    typedef std::tr1::unordered_map<DataSetId, LIC *> LICHashmap;
    922974    typedef std::tr1::unordered_map<DataSetId, Line *> LineHashmap;
     
    928980    typedef std::tr1::unordered_map<DataSetId, Sphere *> SphereHashmap;
    929981    typedef std::tr1::unordered_map<DataSetId, Streamlines *> StreamlinesHashmap;
     982    typedef std::tr1::unordered_map<DataSetId, Text3D *> Text3DHashmap;
    930983    typedef std::tr1::unordered_map<DataSetId, Volume *> VolumeHashmap;
    931984    typedef std::tr1::unordered_map<DataSetId, Warp *> WarpHashmap;
     
    10231076    FieldRangeHashmap _vectorCellDataRange;
    10241077    FieldRangeHashmap _vectorCompCellDataRange[3];
     1078    FieldRangeHashmap _scalarFieldDataRange;
     1079    FieldRangeHashmap _vectorFieldDataRange;
     1080    FieldRangeHashmap _vectorCompFieldDataRange[3];
    10251081
    10261082    FieldRangeHashmap _userScalarPointDataRange;
     
    10301086    FieldRangeHashmap _userVectorCellDataRange;
    10311087    FieldRangeHashmap _userVectorCompCellDataRange[3];
     1088    FieldRangeHashmap _userScalarFieldDataRange;
     1089    FieldRangeHashmap _userVectorFieldDataRange;
     1090    FieldRangeHashmap _userVectorCompFieldDataRange[3];
    10321091
    10331092    bool _axesAutoBounds[3];
     
    10501109    GroupHashmap _groups;
    10511110    HeightMapHashmap _heightMaps;
     1111    ImageHashmap _images;
    10521112    LICHashmap _lics;
    10531113    LineHashmap _lines;
     
    10591119    SphereHashmap _spheres;
    10601120    StreamlinesHashmap _streamlines;
     1121    Text3DHashmap _text3Ds;
    10611122    VolumeHashmap _volumes;
    10621123    WarpHashmap _warps;
Note: See TracChangeset for help on using the changeset viewer.