Changeset 3621 for trunk/packages


Ignore:
Timestamp:
Apr 3, 2013, 10:46:28 AM (12 years ago)
Author:
ldelgass
Message:

Some more renaming: remove Vtk from some filenames and rename VtkGraphicsObject?
to GraphicsObject? to avoid confusion with vtk classes.

Location:
trunk/packages/vizservers/vtkvis
Files:
40 edited
12 moved

Legend:

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

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/Arrow.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/Box.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/Cone.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/Contour2D.cpp

    r3616 r3621  
    2424
    2525#include "Contour2D.h"
    26 #include "VtkRenderer.h"
     26#include "Renderer.h"
    2727#include "Trace.h"
    2828
     
    3030
    3131Contour2D::Contour2D(int numContours) :
    32     VtkGraphicsObject(),
     32    GraphicsObject(),
    3333    _numContours(numContours),
    3434    _pipelineInitialized(false),
     
    4747
    4848Contour2D::Contour2D(const std::vector<double>& contours) :
    49     VtkGraphicsObject(),
     49    GraphicsObject(),
    5050    _numContours(contours.size()),
    5151    _contours(contours),
  • trunk/packages/vizservers/vtkvis/Contour2D.h

    r3616 r3621  
    1919
    2020#include "ColorMap.h"
    21 #include "VtkGraphicsObject.h"
     21#include "GraphicsObject.h"
    2222
    2323namespace VtkVis {
     
    2626 * \brief 2D Contour lines (isolines)
    2727 */
    28 class Contour2D : public VtkGraphicsObject {
     28class Contour2D : public GraphicsObject {
    2929public:
    3030    enum ColorMode {
     
    8787    virtual void setColor(float color[3])
    8888    {
    89         VtkGraphicsObject::setColor(color);
    90         VtkGraphicsObject::setEdgeColor(color);
     89        GraphicsObject::setColor(color);
     90        GraphicsObject::setEdgeColor(color);
    9191    }
    9292
  • trunk/packages/vizservers/vtkvis/Contour3D.cpp

    r3616 r3621  
    2222
    2323#include "Contour3D.h"
    24 #include "VtkRenderer.h"
     24#include "Renderer.h"
    2525#include "Trace.h"
    2626
     
    2828
    2929Contour3D::Contour3D(int numContours) :
    30     VtkGraphicsObject(),
     30    GraphicsObject(),
    3131    _numContours(numContours),
    3232    _pipelineInitialized(false),
     
    4141
    4242Contour3D::Contour3D(const std::vector<double>& contours) :
    43     VtkGraphicsObject(),
     43    GraphicsObject(),
    4444    _numContours(contours.size()),
    4545    _contours(contours),
  • trunk/packages/vizservers/vtkvis/Contour3D.h

    r3616 r3621  
    2020
    2121#include "ColorMap.h"
    22 #include "VtkGraphicsObject.h"
     22#include "GraphicsObject.h"
    2323
    2424namespace VtkVis {
     
    2727 * \brief 3D Contour isosurfaces (geometry)
    2828 */
    29 class Contour3D : public VtkGraphicsObject {
     29class Contour3D : public GraphicsObject {
    3030public:
    3131    enum ColorMode {
  • trunk/packages/vizservers/vtkvis/Cutplane.cpp

    r3616 r3621  
    2727
    2828#include "Cutplane.h"
    29 #include "VtkRenderer.h"
     29#include "Renderer.h"
    3030#include "Trace.h"
    3131
     
    3535
    3636Cutplane::Cutplane() :
    37     VtkGraphicsObject(),
     37    GraphicsObject(),
    3838    _pipelineInitialized(false),
    3939    _colorMap(NULL),
  • trunk/packages/vizservers/vtkvis/Cutplane.h

    r3616 r3621  
    2222#include "ColorMap.h"
    2323#include "Types.h"
    24 #include "VtkGraphicsObject.h"
     24#include "GraphicsObject.h"
    2525
    2626namespace VtkVis {
     
    3333 * Currently the DataSet must be image data (2D uniform grid)
    3434 */
    35 class Cutplane : public VtkGraphicsObject {
     35class Cutplane : public GraphicsObject {
    3636public:
    3737    enum ColorMode {
  • trunk/packages/vizservers/vtkvis/Cylinder.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/DataSet.cpp

    r3618 r3621  
    2525#include <vtkLookupTable.h>
    2626
    27 #include "VtkDataSet.h"
     27#include "DataSet.h"
    2828#include "Trace.h"
    2929
  • trunk/packages/vizservers/vtkvis/Disk.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/Glyphs.cpp

    r3616 r3621  
    2828
    2929#include "Glyphs.h"
    30 #include "VtkRenderer.h"
     30#include "Renderer.h"
    3131#include "Trace.h"
    3232
     
    3434
    3535Glyphs::Glyphs(GlyphShape shape) :
    36     VtkGraphicsObject(),
     36    GraphicsObject(),
    3737    _glyphShape(shape),
    3838    _scalingMode(SCALE_BY_VECTOR_MAGNITUDE),
  • trunk/packages/vizservers/vtkvis/Glyphs.h

    r3616 r3621  
    1919#include <vtkPlaneCollection.h>
    2020
    21 #include "VtkGraphicsObject.h"
     21#include "GraphicsObject.h"
    2222#include "ColorMap.h"
    2323
     
    2929 * The DataSet must have vectors and/or scalars
    3030 */
    31 class Glyphs : public VtkGraphicsObject {
     31class Glyphs : public GraphicsObject {
    3232public:
    3333    enum GlyphShape {
  • trunk/packages/vizservers/vtkvis/GraphicsObject.cpp

    r3618 r3621  
    66 */
    77
    8 #include "VtkGraphicsObject.h"
    9 #include "VtkRenderer.h"
     8#include "GraphicsObject.h"
     9#include "Renderer.h"
    1010#include "Trace.h"
    1111
    1212using namespace VtkVis;
    1313
    14 void VtkGraphicsObject::setDataSet(DataSet *dataSet,
     14void GraphicsObject::setDataSet(DataSet *dataSet,
    1515                                   Renderer *renderer)
    1616{
     
    3232}
    3333
    34 void VtkGraphicsObject::updateRanges(Renderer *renderer)
     34void GraphicsObject::updateRanges(Renderer *renderer)
    3535{
    3636    if (_dataSet == NULL) {
  • trunk/packages/vizservers/vtkvis/GraphicsObject.h

    r3618 r3621  
    66 */
    77
    8 #ifndef VTKVIS_VTKGRAPHICSOBJECT_H
    9 #define VTKVIS_VTKGRAPHICSOBJECT_H
     8#ifndef VTKVIS_GRAPHICS_OBJECT_H
     9#define VTKVIS_GRAPHICS_OBJECT_H
    1010
    1111#include <cmath>
     
    2525#include <vtkPlaneCollection.h>
    2626
    27 #include "VtkDataSet.h"
     27#include "DataSet.h"
    2828#include "Trace.h"
    2929
     
    3535 * \brief Base class for graphics objects
    3636 */
    37 class VtkGraphicsObject {
     37class GraphicsObject {
    3838public:
    3939    enum CullFace {
     
    4343    };
    4444
    45     VtkGraphicsObject() :
     45    GraphicsObject() :
    4646        _dataSet(NULL),
    4747        _opacity(1.0),
     
    6262    }
    6363
    64     virtual ~VtkGraphicsObject()
     64    virtual ~GraphicsObject()
    6565    {}
    6666
    6767    /**
    68      * \brief Return the name of the sublass of VtkGraphicsObject
     68     * \brief Return the name of the sublass of GraphicsObject
    6969     */
    7070    virtual const char *getClassName() const = 0;
     
    894894     * \brief Convenience method to set culling state on a vtkProperty
    895895     *
    896      * Note: Does not change the culling state flag of this VtkGraphicsObject
     896     * Note: Does not change the culling state flag of this GraphicsObject
    897897     */
    898898    virtual void setCulling(vtkProperty *property, bool state)
  • trunk/packages/vizservers/vtkvis/Group.cpp

    r3616 r3621  
    3434}
    3535
    36 void Group::addChild(const NodeId& name, VtkGraphicsObject *obj)
     36void Group::addChild(const NodeId& name, GraphicsObject *obj)
    3737{
    3838    if (obj == NULL)
     
    4444}
    4545
    46 VtkGraphicsObject *Group::getChild(const NodeId& name)
     46GraphicsObject *Group::getChild(const NodeId& name)
    4747{
    4848    NodeHashmap::iterator itr = _nodes.find(name);
     
    6161        return;
    6262    }
    63     VtkGraphicsObject *obj = itr->second;
     63    GraphicsObject *obj = itr->second;
    6464    if (obj->getProp3D() != NULL) {
    6565        getAssembly()->RemovePart(obj->getProp3D());
  • trunk/packages/vizservers/vtkvis/Group.h

    r3616 r3621  
    1313#include <vtkProp3D.h>
    1414
    15 #include "VtkGraphicsObject.h"
     15#include "GraphicsObject.h"
    1616
    1717namespace VtkVis {
     
    2020 * \brief Collection of shapes with grouping
    2121 */
    22 class Group : public VtkGraphicsObject {
     22class Group : public GraphicsObject {
    2323public:
    2424    typedef std::string NodeId;
    25     typedef std::tr1::unordered_map<NodeId, VtkGraphicsObject *> NodeHashmap;
     25    typedef std::tr1::unordered_map<NodeId, GraphicsObject *> NodeHashmap;
    2626
    2727    Group();
     
    4242    virtual void setClippingPlanes(vtkPlaneCollection *planes);
    4343
    44     void addChild(const NodeId& name, VtkGraphicsObject *obj);
     44    void addChild(const NodeId& name, GraphicsObject *obj);
    4545
    46     VtkGraphicsObject *getChild(const NodeId& name);
     46    GraphicsObject *getChild(const NodeId& name);
    4747
    48     void getChildren(std::vector<VtkGraphicsObject *>& children)
     48    void getChildren(std::vector<GraphicsObject *>& children)
    4949    {
    5050        for (NodeHashmap::iterator itr = _nodes.begin();
  • trunk/packages/vizservers/vtkvis/HeightMap.cpp

    r3616 r3621  
    3232
    3333#include "HeightMap.h"
    34 #include "VtkRenderer.h"
     34#include "Renderer.h"
    3535#include "Trace.h"
    3636
     
    4141
    4242HeightMap::HeightMap(int numContours, double heightScale) :
    43     VtkGraphicsObject(),
     43    GraphicsObject(),
    4444    _numContours(numContours),
    4545    _contourColorMap(false),
     
    6161
    6262HeightMap::HeightMap(const std::vector<double>& contours, double heightScale) :
    63     VtkGraphicsObject(),
     63    GraphicsObject(),
    6464    _numContours(contours.size()),
    6565    _contours(contours),
  • trunk/packages/vizservers/vtkvis/HeightMap.h

    r3616 r3621  
    2828#include "ColorMap.h"
    2929#include "Types.h"
    30 #include "VtkGraphicsObject.h"
     30#include "GraphicsObject.h"
    3131
    3232namespace VtkVis {
     
    3535 * \brief Color-mapped plot of data set
    3636 */
    37 class HeightMap : public VtkGraphicsObject {
     37class HeightMap : public GraphicsObject {
    3838public:
    3939    enum ColorMode {
  • trunk/packages/vizservers/vtkvis/LIC.cpp

    r3616 r3621  
    2828
    2929LIC::LIC() :
    30     VtkGraphicsObject(),
     30    GraphicsObject(),
    3131    _sliceAxis(Z_AXIS),
    3232    _colorMap(NULL)
     
    441441void LIC::updateRanges(Renderer *renderer)
    442442{
    443     VtkGraphicsObject::updateRanges(renderer);
     443    GraphicsObject::updateRanges(renderer);
    444444
    445445    if (_lut != NULL) {
  • trunk/packages/vizservers/vtkvis/LIC.h

    r3616 r3621  
    2222#include "ColorMap.h"
    2323#include "Types.h"
    24 #include "VtkGraphicsObject.h"
     24#include "GraphicsObject.h"
    2525
    2626namespace VtkVis {
     
    3131 *  The DataSet must contain vectors
    3232 */
    33 class LIC : public VtkGraphicsObject {
     33class LIC : public GraphicsObject {
    3434public:
    3535    LIC();
  • trunk/packages/vizservers/vtkvis/Line.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/Makefile.in

    r3616 r3621  
    147147                Cutplane.cpp \
    148148                Cylinder.cpp \
     149                DataSet.cpp \
    149150                Disk.cpp \
    150151                Glyphs.cpp \
     152                GraphicsObject.cpp \
    151153                Group.cpp \
    152154                HeightMap.cpp \
     
    160162                PseudoColor.cpp \
    161163                ReadBuffer.cpp \
     164                Renderer.cpp \
     165                RendererCmd.cpp \
     166                RendererGraphicsObjs.cpp \
     167                RenderServer.cpp \
    162168                Shape.cpp \
    163169                Sphere.cpp \
     
    166172                Trace.cpp \
    167173                Volume.cpp \
    168                 VtkDataSet.cpp \
    169                 VtkGraphicsObject.cpp \
    170                 VtkRenderer.cpp \
    171                 VtkRendererCmd.cpp \
    172                 VtkRendererGraphicsObjs.cpp \
    173                 VtkRenderServer.cpp \
    174174                Warp.cpp
    175175
     
    217217        $(RM) Makefile Doxyfile
    218218
    219 Arc.o: Arc.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    220 Arrow.o: Arrow.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    221 Box.o: Box.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
     219Arc.o: Arc.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     220Arrow.o: Arrow.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     221Box.o: Box.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
    222222CmdProc.o: CmdProc.h
    223223ColorMap.o: ColorMap.h Molecule.h Trace.h
    224 Cone.o: Cone.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    225 Contour2D.o: Contour2D.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    226 Contour3D.o: Contour3D.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
    227 Cutplane.o: Cutplane.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
    228 Cylinder.o: Cylinder.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    229 Disk.o: Disk.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    230 Glyphs.o: Glyphs.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
    231 Group.o: Group.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    232 HeightMap.o: HeightMap.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
    233 LIC.o: LIC.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h VtkRenderServer.h
    234 Line.o: Line.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
     224Cone.o: Cone.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     225Contour2D.o: Contour2D.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     226Contour3D.o: Contour3D.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
     227Cutplane.o: Cutplane.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
     228Cylinder.o: Cylinder.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     229DataSet.o: DataSet.h Trace.h
     230Disk.o: Disk.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     231Glyphs.o: Glyphs.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
     232GraphicsObject.o: GraphicsObject.h Renderer.h DataSet.h ColorMap.h Trace.h
     233Group.o: Group.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     234HeightMap.o: HeightMap.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
     235LIC.o: LIC.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h RenderServer.h
     236Line.o: Line.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
    235237md5.o: md5.h
    236 Molecule.o: Molecule.h MoleculeData.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
    237 Outline.o: Outline.h VtkGraphicsObject.h VtkDataSet.h Trace.h
    238 PolyData.o: PolyData.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    239 Polygon.o: Polygon.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
     238Molecule.o: Molecule.h MoleculeData.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
     239Outline.o: Outline.h GraphicsObject.h DataSet.h Trace.h
     240PolyData.o: PolyData.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     241Polygon.o: Polygon.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
    240242PPMWriter.o: PPMWriter.h ResponseQueue.h Trace.h
    241 PseudoColor.o: PseudoColor.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
     243PseudoColor.o: PseudoColor.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
    242244ReadBuffer.o: ReadBuffer.h Trace.h
     245Renderer.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h Math.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h ColorMap.h Trace.h
     246RendererCmd.o: Renderer.h RendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h ColorMap.h ReadBuffer.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h
     247RendererGraphicsObjs.o: Renderer.h RendererGraphicsObjs.h DataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h ColorMap.h Trace.h
     248RenderServer.o: RenderServer.h RendererCmd.h Renderer.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h
    243249ResponseQueue.o: ResponseQueue.h Trace.h
    244 Shape.o: Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    245 Sphere.o: Sphere.h Shape.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h Trace.h
    246 Streamlines.o: Streamlines.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
     250Shape.o: Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     251Sphere.o: Sphere.h Shape.h GraphicsObject.h DataSet.h Renderer.h Trace.h
     252Streamlines.o: Streamlines.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
    247253TGAWriter.o: TGAWriter.h ResponseQueue.h Trace.h
    248254Trace.o: Trace.h
    249 Volume.o: Volume.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
    250 VtkDataSet.o: VtkDataSet.h Trace.h
    251 VtkGraphicsObject.o: VtkGraphicsObject.h VtkRenderer.h VtkDataSet.h ColorMap.h Trace.h
    252 VtkRenderer.o: VtkRenderer.h VtkRendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h Math.h VtkDataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h ColorMap.h Trace.h
    253 VtkRendererCmd.o: VtkRenderer.h VtkRendererGraphicsObjs.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h VtkDataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h ColorMap.h ReadBuffer.h ResponseQueue.h Trace.h CmdProc.h PPMWriter.h TGAWriter.h
    254 VtkRendererGraphicsObjs.o: VtkRenderer.h VtkRendererGraphicsObjs.h VtkDataSet.h Arc.h Arrow.h Box.h Cone.h Contour2D.h Contour3D.h Cutplane.h Cylinder.h Disk.h Glyphs.h Group.h HeightMap.h LIC.h Line.h Molecule.h Outline.h PolyData.h Polygon.h PseudoColor.h Sphere.h Streamlines.h Volume.h ColorMap.h Trace.h
    255 VtkRenderServer.o: VtkRenderServer.h VtkRendererCmd.h VtkRenderer.h vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h ReadBuffer.h ResponseQueue.h Trace.h PPMWriter.h TGAWriter.h
     255Volume.o: Volume.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
    256256vtkRpAxisActor.o: vtkRpAxisActor.h
    257257vtkRpAxisFollower.o: vtkRpAxisFollower.h vtkRpAxisActor.h
    258258vtkRpCubeAxesActor.o: vtkRpCubeAxesActor.h vtkRpAxisFollower.h vtkRpAxisActor.h
    259 Warp.o: Warp.h VtkGraphicsObject.h VtkDataSet.h VtkRenderer.h ColorMap.h Trace.h
     259Warp.o: Warp.h GraphicsObject.h DataSet.h Renderer.h ColorMap.h Trace.h
  • trunk/packages/vizservers/vtkvis/Molecule.cpp

    r3616 r3621  
    3232#include "Molecule.h"
    3333#include "MoleculeData.h"
    34 #include "VtkRenderer.h"
     34#include "Renderer.h"
    3535#include "Trace.h"
    3636
     
    3838
    3939Molecule::Molecule() :
    40     VtkGraphicsObject(),
     40    GraphicsObject(),
    4141    _radiusScale(0.3),
    4242    _atomScaling(COVALENT_RADIUS),
     
    624624void Molecule::setVisibility(bool state)
    625625{
    626     VtkGraphicsObject::setVisibility(state);
     626    GraphicsObject::setVisibility(state);
    627627    if (_labelProp != NULL) {
    628628        if (!state)
     
    638638void Molecule::setOpacity(double opacity)
    639639{
    640     VtkGraphicsObject::setOpacity(opacity);
     640    GraphicsObject::setOpacity(opacity);
    641641    if (_labelMapper != NULL) {
    642642        _labelMapper->SetBackgroundOpacity(opacity);
  • trunk/packages/vizservers/vtkvis/Molecule.h

    r3616 r3621  
    2222
    2323#include "ColorMap.h"
    24 #include "VtkGraphicsObject.h"
     24#include "GraphicsObject.h"
    2525
    2626namespace VtkVis {
     
    3737 * "element," it will be color-mapped as a standard scalar field.
    3838 */
    39 class Molecule : public VtkGraphicsObject {
     39class Molecule : public GraphicsObject {
    4040public:
    4141    enum AtomScaling {
  • trunk/packages/vizservers/vtkvis/Outline.cpp

    r3616 r3621  
    2020
    2121Outline::Outline() :
    22     VtkGraphicsObject()
     22    GraphicsObject()
    2323{
    2424}
     
    3939void Outline::initProp()
    4040{
    41     VtkGraphicsObject::initProp();
     41    GraphicsObject::initProp();
    4242}
    4343
  • trunk/packages/vizservers/vtkvis/Outline.h

    r3616 r3621  
    1313#include <vtkActor.h>
    1414
    15 #include "VtkGraphicsObject.h"
    16 #include "VtkDataSet.h"
     15#include "GraphicsObject.h"
     16#include "DataSet.h"
    1717
    1818namespace VtkVis {
     
    2323 * This class creates a wireframe box around the DataSet bounds
    2424 */
    25 class Outline : public VtkGraphicsObject {
     25class Outline : public GraphicsObject {
    2626public:
    2727    Outline();
  • trunk/packages/vizservers/vtkvis/PolyData.cpp

    r3616 r3621  
    2525
    2626PolyData::PolyData() :
    27     VtkGraphicsObject()
     27    GraphicsObject()
    2828{
    2929}
     
    4444void PolyData::initProp()
    4545{
    46     VtkGraphicsObject::initProp();
     46    GraphicsObject::initProp();
    4747}
    4848
  • trunk/packages/vizservers/vtkvis/PolyData.h

    r3616 r3621  
    1313#include <vtkActor.h>
    1414
    15 #include "VtkGraphicsObject.h"
    16 #include "VtkDataSet.h"
     15#include "GraphicsObject.h"
     16#include "DataSet.h"
    1717
    1818namespace VtkVis {
     
    2323 * This class creates a boundary mesh of a DataSet
    2424 */
    25 class PolyData : public VtkGraphicsObject {
     25class PolyData : public GraphicsObject {
    2626public:
    2727    PolyData();
  • trunk/packages/vizservers/vtkvis/Polygon.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/PseudoColor.cpp

    r3616 r3621  
    2626
    2727#include "PseudoColor.h"
    28 #include "VtkRenderer.h"
     28#include "Renderer.h"
    2929#include "Trace.h"
    3030
     
    3434
    3535PseudoColor::PseudoColor() :
    36     VtkGraphicsObject(),
     36    GraphicsObject(),
    3737    _colorMap(NULL),
    3838    _colorMode(COLOR_BY_SCALAR),
  • trunk/packages/vizservers/vtkvis/PseudoColor.h

    r3616 r3621  
    1616
    1717#include "ColorMap.h"
    18 #include "VtkGraphicsObject.h"
     18#include "GraphicsObject.h"
    1919
    2020namespace VtkVis {
     
    2323 * \brief Color-mapped plot of data set
    2424 */
    25 class PseudoColor : public VtkGraphicsObject {
     25class PseudoColor : public GraphicsObject {
    2626public:
    2727    enum ColorMode {
  • trunk/packages/vizservers/vtkvis/RenderServer.cpp

    r3618 r3621  
    2525#include "Trace.h"
    2626#include "ReadBuffer.h"
    27 #include "VtkRenderServer.h"
    28 #include "VtkRendererCmd.h"
    29 #include "VtkRenderer.h"
     27#include "RenderServer.h"
     28#include "RendererCmd.h"
     29#include "Renderer.h"
    3030#include "PPMWriter.h"
    3131#include "TGAWriter.h"
  • trunk/packages/vizservers/vtkvis/Renderer.cpp

    r3618 r3621  
    4040#include <vtkVersion.h>
    4141
    42 #include "VtkRenderer.h"
    43 #include "VtkRendererGraphicsObjs.h"
     42#include "Renderer.h"
     43#include "RendererGraphicsObjs.h"
    4444#include "Math.h"
    4545#include "ColorMap.h"
  • trunk/packages/vizservers/vtkvis/Renderer.h

    r3618 r3621  
    2727#include "ColorMap.h"
    2828#include "Types.h"
    29 #include "VtkDataSet.h"
     29#include "DataSet.h"
    3030#include "Arc.h"
    3131#include "Arrow.h"
     
    446446                        vtkUnsignedCharArray *imgData);
    447447
    448     // Generic VtkGraphicsObject methods
    449 
    450     template<class GraphicsObject>
    451     GraphicsObject *getGraphicsObject(const DataSetId& id);
    452 
    453     template<class GraphicsObject>
     448    // Generic GraphicsObject methods
     449
     450    template<class T>
     451    T *getGraphicsObject(const DataSetId& id);
     452
     453    template<class T>
    454454    bool addGraphicsObject(const DataSetId& id);
    455455
    456     template<class GraphicsObject>
     456    template<class T>
    457457    void deleteGraphicsObject(const DataSetId& id);
    458458
    459     template<class GraphicsObject>
     459    template<class T>
    460460    void deleteAllGraphicsObjects();
    461461
    462     template<class GraphicsObject>
     462    template<class T>
    463463    void mergeGraphicsObjectBounds(double *bounds, bool onlyVisible);
    464464
    465     template<class GraphicsObject>
     465    template<class T>
    466466    void mergeGraphicsObjectUnscaledBounds(double *bounds, bool onlyVisible);
    467467
    468     template<class GraphicsObject>
     468    template<class T>
    469469    void updateGraphicsObjectFieldRanges();
    470470
    471     template<class GraphicsObject>
     471    template<class T>
    472472    void setGraphicsObjectClippingPlanes(vtkPlaneCollection *planes);
    473473
    474     template<class GraphicsObject>
     474    template<class T>
    475475    void setGraphicsObjectAspect(double aspectRatio);
    476476
    477     template<class GraphicsObject>
     477    template<class T>
    478478    void setGraphicsObjectInterpolateBeforeMapping(const DataSetId& id, bool state);
    479479
    480     template<class GraphicsObject>
     480    template<class T>
    481481    void setGraphicsObjectColorMap(const DataSetId& id, const ColorMapId& colorMapId);
    482482
    483     template<class GraphicsObject>
     483    template<class T>
    484484    void updateGraphicsObjectColorMap(ColorMap *cmap);
    485485
    486     template<class GraphicsObject>
     486    template<class T>
    487487    bool graphicsObjectColorMapUsed(ColorMap *cmap);
    488488
    489     template<class GraphicsObject>
     489    template<class T>
    490490    void setGraphicsObjectVolumeSlice(const DataSetId& id, Axis axis, double ratio);
    491491
    492492    //   Prop/Prop3D properties
    493493
    494     template<class GraphicsObject>
     494    template<class T>
    495495    void setGraphicsObjectOrientation(const DataSetId& id, double quat[4]);
    496496
    497     template<class GraphicsObject>
     497    template<class T>
    498498    void setGraphicsObjectOrientation(const DataSetId& id, double angle, double axis[3]);
    499499
    500     template<class GraphicsObject>
     500    template<class T>
    501501    void setGraphicsObjectPosition(const DataSetId& id, double pos[3]);
    502502
    503     template<class GraphicsObject>
     503    template<class T>
    504504    void setGraphicsObjectAspect(const DataSetId& id, double aspect);
    505505
    506     template<class GraphicsObject>
     506    template<class T>
    507507    void setGraphicsObjectScale(const DataSetId& id, double scale[3]);
    508508
    509     template<class GraphicsObject>
     509    template<class T>
    510510    void setGraphicsObjectTransform(const DataSetId& id, vtkMatrix4x4 *trans);
    511511
    512     template<class GraphicsObject>
     512    template<class T>
    513513    void setGraphicsObjectVisibility(const DataSetId& id, bool state);
    514514
    515515    //   Actor properties
    516516
    517     template<class GraphicsObject>
     517    template<class T>
    518518    void setGraphicsObjectColor(const DataSetId& id, float color[3]);
    519519
    520     template<class GraphicsObject>
     520    template<class T>
    521521    void setGraphicsObjectEdgeVisibility(const DataSetId& id, bool state);
    522522
    523     template<class GraphicsObject>
     523    template<class T>
    524524    void setGraphicsObjectEdgeColor(const DataSetId& id, float color[3]);
    525525
    526     template<class GraphicsObject>
     526    template<class T>
    527527    void setGraphicsObjectEdgeWidth(const DataSetId& id, float edgeWidth);
    528528
    529     template<class GraphicsObject>
     529    template<class T>
    530530    void setGraphicsObjectAmbient(const DataSetId& id, double coeff);
    531531
    532     template<class GraphicsObject>
     532    template<class T>
    533533    void setGraphicsObjectDiffuse(const DataSetId& id, double coeff);
    534534
    535     template<class GraphicsObject>
     535    template<class T>
    536536    void setGraphicsObjectSpecular(const DataSetId& id, double coeff, double power);
    537537
    538     template<class GraphicsObject>
     538    template<class T>
    539539    void setGraphicsObjectLighting(const DataSetId& id, bool state);
    540540
    541     template<class GraphicsObject>
     541    template<class T>
    542542    void setGraphicsObjectOpacity(const DataSetId& id, double opacity);
    543543
    544     template<class GraphicsObject>
     544    template<class T>
    545545    void setGraphicsObjectPointSize(const DataSetId& id, float size);
    546546
    547     template<class GraphicsObject>
     547    template<class T>
    548548    void setGraphicsObjectWireframe(const DataSetId& id, bool state);
    549549
     
    856856    static void mergeBounds(double *boundsDest, const double *bounds1, const double *bounds2);
    857857
    858     template<class GraphicsObject>
    859     std::tr1::unordered_map<DataSetId, GraphicsObject *>&getGraphicsObjectHashmap();
     858    template<class T>
     859    std::tr1::unordered_map<DataSetId, T *>& getGraphicsObjectHashmap();
    860860
    861861    void setObjectAspects(double aspectRatio);
  • trunk/packages/vizservers/vtkvis/RendererCmd.cpp

    r3618 r3621  
    2222#include "ReadBuffer.h"
    2323#include "Types.h"
    24 #include "VtkRendererCmd.h"
    25 #include "VtkRenderServer.h"
    26 #include "VtkRenderer.h"
    27 #include "VtkRendererGraphicsObjs.h"
     24#include "RendererCmd.h"
     25#include "RenderServer.h"
     26#include "Renderer.h"
     27#include "RendererGraphicsObjs.h"
    2828#include "PPMWriter.h"
    2929#include "TGAWriter.h"
  • trunk/packages/vizservers/vtkvis/RendererGraphicsObjs.cpp

    r3618 r3621  
    1515#include <vtkDataSetReader.h>
    1616
    17 #include "VtkRendererGraphicsObjs.h"
    18 #include "VtkRenderer.h"
    19 #include "VtkDataSet.h"
     17#include "RendererGraphicsObjs.h"
     18#include "Renderer.h"
     19#include "DataSet.h"
    2020#include "Box.h"
    2121#include "Contour2D.h"
  • trunk/packages/vizservers/vtkvis/RendererGraphicsObjs.h

    r3618 r3621  
    3838#endif
    3939
    40 #include "VtkRenderer.h"
     40#include "Renderer.h"
    4141
    4242namespace VtkVis {
     
    4545 * \brief Look up graphics object by name
    4646 */
    47 template<class GraphicsObject>
    48 GraphicsObject *Renderer::getGraphicsObject(const DataSetId& id)
    49 {
    50     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    51         getGraphicsObjectHashmap<GraphicsObject>();
    52     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator
     47template<class T>
     48T *Renderer::getGraphicsObject(const DataSetId& id)
     49{
     50    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     51        getGraphicsObjectHashmap<T>();
     52    typename std::tr1::unordered_map<DataSetId, T *>::iterator
    5353        itr = hashmap.find(id);
    5454
    5555    if (itr == hashmap.end()) {
    5656#ifdef DEBUG
    57         GO_TRACE(GraphicsObject, "not found: %s", id.c_str());
     57        GO_TRACE(T, "not found: %s", id.c_str());
    5858#endif
    5959        return NULL;
     
    6565 * \brief Delete graphics object by name
    6666 */
    67 template<class GraphicsObject>
     67template<class T>
    6868void Renderer::deleteGraphicsObject(const DataSetId& id)
    6969{
    70     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    71         getGraphicsObjectHashmap<GraphicsObject>();
    72     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    73 
    74     bool doAll = false;
    75 
    76     if (id.compare("all") == 0) {
    77         itr = hashmap.begin();
    78         doAll = true;
    79     } else {
    80         itr = hashmap.find(id);
    81     }
    82     if (itr == hashmap.end()) {
    83         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     70    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     71        getGraphicsObjectHashmap<T>();
     72    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     73
     74    bool doAll = false;
     75
     76    if (id.compare("all") == 0) {
     77        itr = hashmap.begin();
     78        doAll = true;
     79    } else {
     80        itr = hashmap.find(id);
     81    }
     82    if (itr == hashmap.end()) {
     83        GO_ERROR(T, "not found: %s", id.c_str());
    8484        return;
    8585    }
     
    8888
    8989    do {
    90         GraphicsObject *gobj = itr->second;
     90        T *gobj = itr->second;
    9191        if (gobj->getProp())
    9292            _renderer->RemoveViewProp(gobj->getProp());
     
    105105 * \brief Delete all graphics objects from renderer
    106106 */
    107 template<class GraphicsObject>
     107template<class T>
    108108void Renderer::deleteAllGraphicsObjects()
    109109{
    110     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    111         getGraphicsObjectHashmap<GraphicsObject>();
    112     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     110    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     111        getGraphicsObjectHashmap<T>();
     112    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    113113
    114114    itr = hashmap.begin();
     
    127127 * \brief Add a graphics objects to the renderer's scene
    128128 */
    129 template<class GraphicsObject>
     129template<class T>
    130130bool Renderer::addGraphicsObject(const DataSetId& id)
    131131{
     
    148148        const DataSetId& dsID = ds->getName();
    149149
    150         GraphicsObject *gobj;
    151         if ((gobj = getGraphicsObject<GraphicsObject>(dsID)) != NULL) {
     150        T *gobj;
     151        if ((gobj = getGraphicsObject<T>(dsID)) != NULL) {
    152152            WARN("Replacing existing %s %s", gobj->getClassName(), dsID.c_str());
    153             deleteGraphicsObject<GraphicsObject>(dsID);
     153            deleteGraphicsObject<T>(dsID);
    154154        }
    155155
    156         gobj = new GraphicsObject();
     156        gobj = new T();
    157157 
    158158        gobj->setDataSet(ds, this);
     
    169169        }
    170170
    171         getGraphicsObjectHashmap<GraphicsObject>()[dsID] = gobj;
     171        getGraphicsObjectHashmap<T>()[dsID] = gobj;
    172172    } while (doAll && ++itr != _dataSets.end());
    173173
     
    180180 * \brief Set the prop orientation with a quaternion
    181181 */
    182 template<class GraphicsObject>
     182template<class T>
    183183void Renderer::setGraphicsObjectTransform(const DataSetId& id, vtkMatrix4x4 *trans)
    184184{
    185     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    186         getGraphicsObjectHashmap<GraphicsObject>();
    187     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    188 
    189     bool doAll = false;
    190 
    191     if (id.compare("all") == 0) {
    192         itr = hashmap.begin();
    193         if (itr == hashmap.end())
    194             return;
    195         doAll = true;
    196     } else {
    197         itr = hashmap.find(id);
    198     }
    199     if (itr == hashmap.end()) {
    200         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     185    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     186        getGraphicsObjectHashmap<T>();
     187    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     188
     189    bool doAll = false;
     190
     191    if (id.compare("all") == 0) {
     192        itr = hashmap.begin();
     193        if (itr == hashmap.end())
     194            return;
     195        doAll = true;
     196    } else {
     197        itr = hashmap.find(id);
     198    }
     199    if (itr == hashmap.end()) {
     200        GO_ERROR(T, "not found: %s", id.c_str());
    201201        return;
    202202    }
     
    213213 * \brief Set the prop orientation with a quaternion
    214214 */
    215 template<class GraphicsObject>
     215template<class T>
    216216void Renderer::setGraphicsObjectOrientation(const DataSetId& id, double quat[4])
    217217{
    218     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    219         getGraphicsObjectHashmap<GraphicsObject>();
    220     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    221 
    222     bool doAll = false;
    223 
    224     if (id.compare("all") == 0) {
    225         itr = hashmap.begin();
    226         if (itr == hashmap.end())
    227             return;
    228         doAll = true;
    229     } else {
    230         itr = hashmap.find(id);
    231     }
    232     if (itr == hashmap.end()) {
    233         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     218    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     219        getGraphicsObjectHashmap<T>();
     220    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     221
     222    bool doAll = false;
     223
     224    if (id.compare("all") == 0) {
     225        itr = hashmap.begin();
     226        if (itr == hashmap.end())
     227            return;
     228        doAll = true;
     229    } else {
     230        itr = hashmap.find(id);
     231    }
     232    if (itr == hashmap.end()) {
     233        GO_ERROR(T, "not found: %s", id.c_str());
    234234        return;
    235235    }
     
    246246 * \brief Set the prop orientation with a rotation about an axis
    247247 */
    248 template<class GraphicsObject>
     248template<class T>
    249249void Renderer::setGraphicsObjectOrientation(const DataSetId& id, double angle, double axis[3])
    250250{
    251     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    252         getGraphicsObjectHashmap<GraphicsObject>();
    253     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    254 
    255     bool doAll = false;
    256 
    257     if (id.compare("all") == 0) {
    258         itr = hashmap.begin();
    259         if (itr == hashmap.end())
    260             return;
    261         doAll = true;
    262     } else {
    263         itr = hashmap.find(id);
    264     }
    265     if (itr == hashmap.end()) {
    266         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     251    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     252        getGraphicsObjectHashmap<T>();
     253    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     254
     255    bool doAll = false;
     256
     257    if (id.compare("all") == 0) {
     258        itr = hashmap.begin();
     259        if (itr == hashmap.end())
     260            return;
     261        doAll = true;
     262    } else {
     263        itr = hashmap.find(id);
     264    }
     265    if (itr == hashmap.end()) {
     266        GO_ERROR(T, "not found: %s", id.c_str());
    267267        return;
    268268    }
     
    279279 * \brief Set the prop position in world coords
    280280 */
    281 template<class GraphicsObject>
     281template<class T>
    282282void Renderer::setGraphicsObjectPosition(const DataSetId& id, double pos[3])
    283283{
    284     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    285         getGraphicsObjectHashmap<GraphicsObject>();
    286     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    287 
    288     bool doAll = false;
    289 
    290     if (id.compare("all") == 0) {
    291         itr = hashmap.begin();
    292         if (itr == hashmap.end())
    293             return;
    294         doAll = true;
    295     } else {
    296         itr = hashmap.find(id);
    297     }
    298     if (itr == hashmap.end()) {
    299         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     284    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     285        getGraphicsObjectHashmap<T>();
     286    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     287
     288    bool doAll = false;
     289
     290    if (id.compare("all") == 0) {
     291        itr = hashmap.begin();
     292        if (itr == hashmap.end())
     293            return;
     294        doAll = true;
     295    } else {
     296        itr = hashmap.find(id);
     297    }
     298    if (itr == hashmap.end()) {
     299        GO_ERROR(T, "not found: %s", id.c_str());
    300300        return;
    301301    }
     
    315315 * \param aspect The aspect ratio (width/height), zero means native aspect
    316316 */
    317 template<class GraphicsObject>
     317template<class T>
    318318void Renderer::setGraphicsObjectAspect(const DataSetId& id, double aspect)
    319319{
    320     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    321         getGraphicsObjectHashmap<GraphicsObject>();
    322     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    323 
    324     bool doAll = false;
    325 
    326     if (id.compare("all") == 0) {
    327         itr = hashmap.begin();
    328         if (itr == hashmap.end())
    329             return;
    330         doAll = true;
    331     } else {
    332         itr = hashmap.find(id);
    333     }
    334     if (itr == hashmap.end()) {
    335         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     320    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     321        getGraphicsObjectHashmap<T>();
     322    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     323
     324    bool doAll = false;
     325
     326    if (id.compare("all") == 0) {
     327        itr = hashmap.begin();
     328        if (itr == hashmap.end())
     329            return;
     330        doAll = true;
     331    } else {
     332        itr = hashmap.find(id);
     333    }
     334    if (itr == hashmap.end()) {
     335        GO_ERROR(T, "not found: %s", id.c_str());
    336336        return;
    337337    }
     
    348348 * \brief Set the prop scaling
    349349 */
    350 template<class GraphicsObject>
     350template<class T>
    351351void Renderer::setGraphicsObjectScale(const DataSetId& id, double scale[3])
    352352{
    353     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    354         getGraphicsObjectHashmap<GraphicsObject>();
    355     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    356 
    357     bool doAll = false;
    358 
    359     if (id.compare("all") == 0) {
    360         itr = hashmap.begin();
    361         if (itr == hashmap.end())
    362             return;
    363         doAll = true;
    364     } else {
    365         itr = hashmap.find(id);
    366     }
    367     if (itr == hashmap.end()) {
    368         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     353    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     354        getGraphicsObjectHashmap<T>();
     355    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     356
     357    bool doAll = false;
     358
     359    if (id.compare("all") == 0) {
     360        itr = hashmap.begin();
     361        if (itr == hashmap.end())
     362            return;
     363        doAll = true;
     364    } else {
     365        itr = hashmap.find(id);
     366    }
     367    if (itr == hashmap.end()) {
     368        GO_ERROR(T, "not found: %s", id.c_str());
    369369        return;
    370370    }
     
    379379
    380380/**
    381  * \brief Set visibility of VtkGraphicsObject for the given DataSet
    382  */
    383 template<class GraphicsObject>
     381 * \brief Set visibility of GraphicsObject for the given DataSet
     382 */
     383template<class T>
    384384void Renderer::setGraphicsObjectVisibility(const DataSetId& id, bool state)
    385385{
    386     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    387         getGraphicsObjectHashmap<GraphicsObject>();
    388     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    389 
    390     bool doAll = false;
    391 
    392     if (id.compare("all") == 0) {
    393         itr = hashmap.begin();
    394         if (itr == hashmap.end())
    395             return;
    396         doAll = true;
    397     } else {
    398         itr = hashmap.find(id);
    399     }
    400     if (itr == hashmap.end()) {
    401         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     386    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     387        getGraphicsObjectHashmap<T>();
     388    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     389
     390    bool doAll = false;
     391
     392    if (id.compare("all") == 0) {
     393        itr = hashmap.begin();
     394        if (itr == hashmap.end())
     395            return;
     396        doAll = true;
     397    } else {
     398        itr = hashmap.find(id);
     399    }
     400    if (itr == hashmap.end()) {
     401        GO_ERROR(T, "not found: %s", id.c_str());
    402402        return;
    403403    }
     
    414414 * \brief Set the volume slice
    415415 */
    416 template<class GraphicsObject>
     416template<class T>
    417417void Renderer::setGraphicsObjectVolumeSlice(const DataSetId& id, Axis axis, double ratio)
    418418{
    419     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    420         getGraphicsObjectHashmap<GraphicsObject>();
    421     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    422 
    423     bool doAll = false;
    424 
    425     if (id.compare("all") == 0) {
    426         itr = hashmap.begin();
    427         if (itr == hashmap.end())
    428             return;
    429         doAll = true;
    430     } else {
    431         itr = hashmap.find(id);
    432     }
    433 
    434     if (itr == hashmap.end()) {
    435         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     419    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     420        getGraphicsObjectHashmap<T>();
     421    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     422
     423    bool doAll = false;
     424
     425    if (id.compare("all") == 0) {
     426        itr = hashmap.begin();
     427        if (itr == hashmap.end())
     428            return;
     429        doAll = true;
     430    } else {
     431        itr = hashmap.find(id);
     432    }
     433
     434    if (itr == hashmap.end()) {
     435        GO_ERROR(T, "not found: %s", id.c_str());
    436436        return;
    437437    }
     
    449449 * \brief Set the RGB actor color for the specified DataSet
    450450 */
    451 template<class GraphicsObject>
     451template<class T>
    452452void Renderer::setGraphicsObjectColor(const DataSetId& id, float color[3])
    453453{
    454     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    455         getGraphicsObjectHashmap<GraphicsObject>();
    456     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    457 
    458     bool doAll = false;
    459 
    460     if (id.compare("all") == 0) {
    461         itr = hashmap.begin();
    462         if (itr == hashmap.end())
    463             return;
    464         doAll = true;
    465     } else {
    466         itr = hashmap.find(id);
    467     }
    468     if (itr == hashmap.end()) {
    469         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     454    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     455        getGraphicsObjectHashmap<T>();
     456    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     457
     458    bool doAll = false;
     459
     460    if (id.compare("all") == 0) {
     461        itr = hashmap.begin();
     462        if (itr == hashmap.end())
     463            return;
     464        doAll = true;
     465    } else {
     466        itr = hashmap.find(id);
     467    }
     468    if (itr == hashmap.end()) {
     469        GO_ERROR(T, "not found: %s", id.c_str());
    470470        return;
    471471    }
     
    481481 * \brief Turn on/off edges for the given DataSet
    482482 */
    483 template<class GraphicsObject>
     483template<class T>
    484484void Renderer::setGraphicsObjectEdgeVisibility(const DataSetId& id, bool state)
    485485{
    486     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    487         getGraphicsObjectHashmap<GraphicsObject>();
    488     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    489 
    490     bool doAll = false;
    491 
    492     if (id.compare("all") == 0) {
    493         itr = hashmap.begin();
    494         if (itr == hashmap.end())
    495             return;
    496         doAll = true;
    497     } else {
    498         itr = hashmap.find(id);
    499     }
    500     if (itr == hashmap.end()) {
    501         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     486    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     487        getGraphicsObjectHashmap<T>();
     488    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     489
     490    bool doAll = false;
     491
     492    if (id.compare("all") == 0) {
     493        itr = hashmap.begin();
     494        if (itr == hashmap.end())
     495            return;
     496        doAll = true;
     497    } else {
     498        itr = hashmap.find(id);
     499    }
     500    if (itr == hashmap.end()) {
     501        GO_ERROR(T, "not found: %s", id.c_str());
    502502        return;
    503503    }
     
    514514 * \brief Set the RGB isosurface edge color for the specified DataSet
    515515 */
    516 template<class GraphicsObject>
     516template<class T>
    517517void Renderer::setGraphicsObjectEdgeColor(const DataSetId& id, float color[3])
    518518{
    519     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    520         getGraphicsObjectHashmap<GraphicsObject>();
    521     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    522 
    523     bool doAll = false;
    524 
    525     if (id.compare("all") == 0) {
    526         itr = hashmap.begin();
    527         if (itr == hashmap.end())
    528             return;
    529         doAll = true;
    530     } else {
    531         itr = hashmap.find(id);
    532     }
    533     if (itr == hashmap.end()) {
    534         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     519    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     520        getGraphicsObjectHashmap<T>();
     521    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     522
     523    bool doAll = false;
     524
     525    if (id.compare("all") == 0) {
     526        itr = hashmap.begin();
     527        if (itr == hashmap.end())
     528            return;
     529        doAll = true;
     530    } else {
     531        itr = hashmap.find(id);
     532    }
     533    if (itr == hashmap.end()) {
     534        GO_ERROR(T, "not found: %s", id.c_str());
    535535        return;
    536536    }
     
    549549 * this function may not have an effect.
    550550 */
    551 template<class GraphicsObject>
     551template<class T>
    552552void Renderer::setGraphicsObjectEdgeWidth(const DataSetId& id, float edgeWidth)
    553553{
    554     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    555         getGraphicsObjectHashmap<GraphicsObject>();
    556     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    557 
    558     bool doAll = false;
    559 
    560     if (id.compare("all") == 0) {
    561         itr = hashmap.begin();
    562         if (itr == hashmap.end())
    563             return;
    564         doAll = true;
    565     } else {
    566         itr = hashmap.find(id);
    567     }
    568     if (itr == hashmap.end()) {
    569         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     554    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     555        getGraphicsObjectHashmap<T>();
     556    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     557
     558    bool doAll = false;
     559
     560    if (id.compare("all") == 0) {
     561        itr = hashmap.begin();
     562        if (itr == hashmap.end())
     563            return;
     564        doAll = true;
     565    } else {
     566        itr = hashmap.find(id);
     567    }
     568    if (itr == hashmap.end()) {
     569        GO_ERROR(T, "not found: %s", id.c_str());
    570570        return;
    571571    }
     
    582582 * \brief Set ambient lighting/shading coefficient for the specified DataSet
    583583 */
    584 template<class GraphicsObject>
     584template<class T>
    585585void Renderer::setGraphicsObjectAmbient(const DataSetId& id, double coeff)
    586586{
    587     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    588         getGraphicsObjectHashmap<GraphicsObject>();
    589     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    590 
    591     bool doAll = false;
    592 
    593     if (id.compare("all") == 0) {
    594         itr = hashmap.begin();
    595         if (itr == hashmap.end())
    596             return;
    597         doAll = true;
    598     } else {
    599         itr = hashmap.find(id);
    600     }
    601     if (itr == hashmap.end()) {
    602         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     587    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     588        getGraphicsObjectHashmap<T>();
     589    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     590
     591    bool doAll = false;
     592
     593    if (id.compare("all") == 0) {
     594        itr = hashmap.begin();
     595        if (itr == hashmap.end())
     596            return;
     597        doAll = true;
     598    } else {
     599        itr = hashmap.find(id);
     600    }
     601    if (itr == hashmap.end()) {
     602        GO_ERROR(T, "not found: %s", id.c_str());
    603603        return;
    604604    }
     
    614614 * \brief Set diffuse lighting/shading coefficient for the specified DataSet
    615615 */
    616 template<class GraphicsObject>
     616template<class T>
    617617void Renderer::setGraphicsObjectDiffuse(const DataSetId& id, double coeff)
    618618{
    619     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    620         getGraphicsObjectHashmap<GraphicsObject>();
    621     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    622 
    623     bool doAll = false;
    624 
    625     if (id.compare("all") == 0) {
    626         itr = hashmap.begin();
    627         if (itr == hashmap.end())
    628             return;
    629         doAll = true;
    630     } else {
    631         itr = hashmap.find(id);
    632     }
    633     if (itr == hashmap.end()) {
    634         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     619    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     620        getGraphicsObjectHashmap<T>();
     621    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     622
     623    bool doAll = false;
     624
     625    if (id.compare("all") == 0) {
     626        itr = hashmap.begin();
     627        if (itr == hashmap.end())
     628            return;
     629        doAll = true;
     630    } else {
     631        itr = hashmap.find(id);
     632    }
     633    if (itr == hashmap.end()) {
     634        GO_ERROR(T, "not found: %s", id.c_str());
    635635        return;
    636636    }
     
    646646 * \brief Set specular lighting/shading coefficient and power for the specified DataSet
    647647 */
    648 template<class GraphicsObject>
     648template<class T>
    649649void Renderer::setGraphicsObjectSpecular(const DataSetId& id, double coeff, double power)
    650650{
    651     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    652         getGraphicsObjectHashmap<GraphicsObject>();
    653     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    654 
    655     bool doAll = false;
    656 
    657     if (id.compare("all") == 0) {
    658         itr = hashmap.begin();
    659         if (itr == hashmap.end())
    660             return;
    661         doAll = true;
    662     } else {
    663         itr = hashmap.find(id);
    664     }
    665     if (itr == hashmap.end()) {
    666         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     651    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     652        getGraphicsObjectHashmap<T>();
     653    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     654
     655    bool doAll = false;
     656
     657    if (id.compare("all") == 0) {
     658        itr = hashmap.begin();
     659        if (itr == hashmap.end())
     660            return;
     661        doAll = true;
     662    } else {
     663        itr = hashmap.find(id);
     664    }
     665    if (itr == hashmap.end()) {
     666        GO_ERROR(T, "not found: %s", id.c_str());
    667667        return;
    668668    }
     
    678678 * \brief Turn actor lighting on/off for the specified DataSet
    679679 */
    680 template<class GraphicsObject>
     680template<class T>
    681681void Renderer::setGraphicsObjectLighting(const DataSetId& id, bool state)
    682682{
    683     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    684         getGraphicsObjectHashmap<GraphicsObject>();
    685     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    686 
    687     bool doAll = false;
    688 
    689     if (id.compare("all") == 0) {
    690         itr = hashmap.begin();
    691         if (itr == hashmap.end())
    692             return;
    693         doAll = true;
    694     } else {
    695         itr = hashmap.find(id);
    696     }
    697     if (itr == hashmap.end()) {
    698         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     683    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     684        getGraphicsObjectHashmap<T>();
     685    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     686
     687    bool doAll = false;
     688
     689    if (id.compare("all") == 0) {
     690        itr = hashmap.begin();
     691        if (itr == hashmap.end())
     692            return;
     693        doAll = true;
     694    } else {
     695        itr = hashmap.find(id);
     696    }
     697    if (itr == hashmap.end()) {
     698        GO_ERROR(T, "not found: %s", id.c_str());
    699699        return;
    700700    }
     
    708708
    709709/**
    710  * \brief Set opacity of VtkGraphicsObject for the given DataSet
    711  */
    712 template<class GraphicsObject>
     710 * \brief Set opacity of GraphicsObject for the given DataSet
     711 */
     712template<class T>
    713713void Renderer::setGraphicsObjectOpacity(const DataSetId& id, double opacity)
    714714{
    715     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    716         getGraphicsObjectHashmap<GraphicsObject>();
    717     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    718 
    719     bool doAll = false;
    720 
    721     if (id.compare("all") == 0) {
    722         itr = hashmap.begin();
    723         if (itr == hashmap.end())
    724             return;
    725         doAll = true;
    726     } else {
    727         itr = hashmap.find(id);
    728     }
    729     if (itr == hashmap.end()) {
    730         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     715    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     716        getGraphicsObjectHashmap<T>();
     717    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     718
     719    bool doAll = false;
     720
     721    if (id.compare("all") == 0) {
     722        itr = hashmap.begin();
     723        if (itr == hashmap.end())
     724            return;
     725        doAll = true;
     726    } else {
     727        itr = hashmap.find(id);
     728    }
     729    if (itr == hashmap.end()) {
     730        GO_ERROR(T, "not found: %s", id.c_str());
    731731        return;
    732732    }
     
    745745 * this function may not have an effect.
    746746 */
    747 template<class GraphicsObject>
     747template<class T>
    748748void Renderer::setGraphicsObjectPointSize(const DataSetId& id, float size)
    749749{
    750     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    751         getGraphicsObjectHashmap<GraphicsObject>();
    752     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    753 
    754     bool doAll = false;
    755 
    756     if (id.compare("all") == 0) {
    757         itr = hashmap.begin();
    758         if (itr == hashmap.end())
    759             return;
    760         doAll = true;
    761     } else {
    762         itr = hashmap.find(id);
    763     }
    764     if (itr == hashmap.end()) {
    765         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     750    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     751        getGraphicsObjectHashmap<T>();
     752    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     753
     754    bool doAll = false;
     755
     756    if (id.compare("all") == 0) {
     757        itr = hashmap.begin();
     758        if (itr == hashmap.end())
     759            return;
     760        doAll = true;
     761    } else {
     762        itr = hashmap.find(id);
     763    }
     764    if (itr == hashmap.end()) {
     765        GO_ERROR(T, "not found: %s", id.c_str());
    766766        return;
    767767    }
     
    778778 * \brief Set wireframe actor rendering for the specified DataSet
    779779 */
    780 template<class GraphicsObject>
     780template<class T>
    781781void Renderer::setGraphicsObjectWireframe(const DataSetId& id, bool state)
    782782{
    783     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    784         getGraphicsObjectHashmap<GraphicsObject>();
    785     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    786 
    787     bool doAll = false;
    788 
    789     if (id.compare("all") == 0) {
    790         itr = hashmap.begin();
    791         if (itr == hashmap.end())
    792             return;
    793         doAll = true;
    794     } else {
    795         itr = hashmap.find(id);
    796     }
    797     if (itr == hashmap.end()) {
    798         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     783    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     784        getGraphicsObjectHashmap<T>();
     785    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     786
     787    bool doAll = false;
     788
     789    if (id.compare("all") == 0) {
     790        itr = hashmap.begin();
     791        if (itr == hashmap.end())
     792            return;
     793        doAll = true;
     794    } else {
     795        itr = hashmap.find(id);
     796    }
     797    if (itr == hashmap.end()) {
     798        GO_ERROR(T, "not found: %s", id.c_str());
    799799        return;
    800800    }
     
    810810 * \brief Associate an existing named color map with a graphics object for the given DataSet
    811811 */
    812 template<class GraphicsObject>
     812template<class T>
    813813void Renderer::setGraphicsObjectInterpolateBeforeMapping(const DataSetId& id, bool state)
    814814{
    815     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    816         getGraphicsObjectHashmap<GraphicsObject>();
    817     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    818 
    819     bool doAll = false;
    820 
    821     if (id.compare("all") == 0) {
    822         itr = hashmap.begin();
    823         if (itr == hashmap.end())
    824             return;
    825         doAll = true;
    826     } else {
    827         itr = hashmap.find(id);
    828     }
    829 
    830     if (itr == hashmap.end()) {
    831         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     815    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     816        getGraphicsObjectHashmap<T>();
     817    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     818
     819    bool doAll = false;
     820
     821    if (id.compare("all") == 0) {
     822        itr = hashmap.begin();
     823        if (itr == hashmap.end())
     824            return;
     825        doAll = true;
     826    } else {
     827        itr = hashmap.find(id);
     828    }
     829
     830    if (itr == hashmap.end()) {
     831        GO_ERROR(T, "not found: %s", id.c_str());
    832832        return;
    833833    }
     
    843843 * \brief Associate an existing named color map with a graphics object for the given DataSet
    844844 */
    845 template<class GraphicsObject>
     845template<class T>
    846846void Renderer::setGraphicsObjectColorMap(const DataSetId& id, const ColorMapId& colorMapId)
    847847{
    848     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    849         getGraphicsObjectHashmap<GraphicsObject>();
    850     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
    851 
    852     bool doAll = false;
    853 
    854     if (id.compare("all") == 0) {
    855         itr = hashmap.begin();
    856         if (itr == hashmap.end())
    857             return;
    858         doAll = true;
    859     } else {
    860         itr = hashmap.find(id);
    861     }
    862 
    863     if (itr == hashmap.end()) {
    864         GO_ERROR(GraphicsObject, "not found: %s", id.c_str());
     848    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     849        getGraphicsObjectHashmap<T>();
     850    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
     851
     852    bool doAll = false;
     853
     854    if (id.compare("all") == 0) {
     855        itr = hashmap.begin();
     856        if (itr == hashmap.end())
     857            return;
     858        doAll = true;
     859    } else {
     860        itr = hashmap.find(id);
     861    }
     862
     863    if (itr == hashmap.end()) {
     864        GO_ERROR(T, "not found: %s", id.c_str());
    865865        return;
    866866    }
     
    873873
    874874    do {
    875         GO_TRACE(GraphicsObject, "Set color map: %s for dataset %s",
     875        GO_TRACE(T, "Set color map: %s for dataset %s",
    876876                 colorMapId.c_str(),
    877877                 itr->second->getDataSet()->getName().c_str());
     
    886886 * \brief Notify graphics object that color map has changed
    887887 */
    888 template<class GraphicsObject>
     888template<class T>
    889889void Renderer::updateGraphicsObjectColorMap(ColorMap *cmap)
    890890{
    891     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    892         getGraphicsObjectHashmap<GraphicsObject>();
    893     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     891    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     892        getGraphicsObjectHashmap<T>();
     893    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    894894
    895895    for (itr = hashmap.begin(); itr != hashmap.end(); ++itr) {
     
    904904 * \brief Check if a color map is in use by a graphics object
    905905 */
    906 template<class GraphicsObject>
     906template<class T>
    907907bool Renderer::graphicsObjectColorMapUsed(ColorMap *cmap)
    908908{
    909     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    910         getGraphicsObjectHashmap<GraphicsObject>();
    911     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     909    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     910        getGraphicsObjectHashmap<T>();
     911    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    912912
    913913    for (itr = hashmap.begin(); itr != hashmap.end(); ++itr) {
     
    921921 * \brief Compute union of bounds and GO's bounds
    922922 */
    923 template<class GraphicsObject>
     923template<class T>
    924924void Renderer::mergeGraphicsObjectBounds(double *bounds, bool onlyVisible)
    925925{
    926     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    927         getGraphicsObjectHashmap<GraphicsObject>();
    928     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     926    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     927        getGraphicsObjectHashmap<T>();
     928    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    929929
    930930    for (itr = hashmap.begin(); itr != hashmap.end(); ++itr) {
     
    935935        double *bPtr = itr->second->getBounds();
    936936        assert(bPtr != NULL);
    937         GO_TRACE(GraphicsObject,
     937        GO_TRACE(T,
    938938                 "%s bounds: %g %g %g %g %g %g",
    939939                 itr->first.c_str(),
     
    949949 * applied
    950950 */
    951 template<class GraphicsObject>
     951template<class T>
    952952void Renderer::mergeGraphicsObjectUnscaledBounds(double *bounds, bool onlyVisible)
    953953{
    954     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    955         getGraphicsObjectHashmap<GraphicsObject>();
    956     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     954    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     955        getGraphicsObjectHashmap<T>();
     956    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    957957
    958958    for (itr = hashmap.begin(); itr != hashmap.end(); ++itr) {
     
    963963        double *bPtr = itr->second->getUnscaledBounds();
    964964        assert(bPtr != NULL);
    965         GO_TRACE(GraphicsObject,
     965        GO_TRACE(T,
    966966                 "%s bounds: %g %g %g %g %g %g",
    967967                 itr->first.c_str(),
     
    974974 * \brief Notify object that field value ranges have changed
    975975 */
    976 template<class GraphicsObject>
     976template<class T>
    977977void Renderer::updateGraphicsObjectFieldRanges()
    978978{
    979     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    980         getGraphicsObjectHashmap<GraphicsObject>();
    981     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     979    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     980        getGraphicsObjectHashmap<T>();
     981    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    982982
    983983    for (itr = hashmap.begin(); itr != hashmap.end(); ++itr) {
     
    989989 * \brief Pass global clip planes to graphics object
    990990 */
    991 template<class GraphicsObject>
     991template<class T>
    992992void Renderer::setGraphicsObjectClippingPlanes(vtkPlaneCollection *planes)
    993993{
    994     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    995         getGraphicsObjectHashmap<GraphicsObject>();
    996     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     994    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     995        getGraphicsObjectHashmap<T>();
     996    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    997997
    998998    for (itr = hashmap.begin(); itr != hashmap.end(); ++itr) {
     
    10081008 * \param aspectRatio The aspect ratio (width/height), zero means native aspect
    10091009 */
    1010 template<class GraphicsObject>
     1010template<class T>
    10111011void Renderer::setGraphicsObjectAspect(double aspectRatio)
    10121012{
    1013     std::tr1::unordered_map<DataSetId, GraphicsObject *>& hashmap =
    1014         getGraphicsObjectHashmap<GraphicsObject>();
    1015     typename std::tr1::unordered_map<DataSetId, GraphicsObject *>::iterator itr;
     1013    std::tr1::unordered_map<DataSetId, T *>& hashmap =
     1014        getGraphicsObjectHashmap<T>();
     1015    typename std::tr1::unordered_map<DataSetId, T *>::iterator itr;
    10161016
    10171017    for (itr = hashmap.begin(); itr != hashmap.end(); ++itr) {
  • trunk/packages/vizservers/vtkvis/Shape.cpp

    r3616 r3621  
    2121
    2222Shape::Shape() :
    23     VtkGraphicsObject()
     23    GraphicsObject()
    2424{
    2525}
  • trunk/packages/vizservers/vtkvis/Shape.h

    r3616 r3621  
    1515#include <vtkActor.h>
    1616
    17 #include "VtkGraphicsObject.h"
    18 #include "VtkDataSet.h"
     17#include "GraphicsObject.h"
     18#include "DataSet.h"
    1919
    2020namespace VtkVis {
     
    2525 * This class creates a boundary mesh of a DataSet
    2626 */
    27 class Shape : public VtkGraphicsObject {
     27class Shape : public GraphicsObject {
    2828public:
    2929    Shape();
  • trunk/packages/vizservers/vtkvis/Sphere.h

    r3616 r3621  
    1515
    1616#include "Shape.h"
    17 #include "VtkDataSet.h"
     17#include "DataSet.h"
    1818
    1919namespace VtkVis {
  • trunk/packages/vizservers/vtkvis/Streamlines.cpp

    r3616 r3621  
    3131
    3232#include "Streamlines.h"
    33 #include "VtkRenderer.h"
     33#include "Renderer.h"
    3434#include "Trace.h"
    3535
     
    3737
    3838Streamlines::Streamlines() :
    39     VtkGraphicsObject(),
     39    GraphicsObject(),
    4040    _lineType(LINES),
    4141    _colorMap(NULL),
  • trunk/packages/vizservers/vtkvis/Streamlines.h

    r3616 r3621  
    1919
    2020#include "ColorMap.h"
    21 #include "VtkGraphicsObject.h"
    22 #include "VtkDataSet.h"
     21#include "GraphicsObject.h"
     22#include "DataSet.h"
    2323
    2424namespace VtkVis {
     
    2929 * The DataSet must contain vectors
    3030 */
    31 class Streamlines : public VtkGraphicsObject {
     31class Streamlines : public GraphicsObject {
    3232public:
    3333    enum LineType {
  • trunk/packages/vizservers/vtkvis/Volume.cpp

    r3616 r3621  
    2929
    3030Volume::Volume() :
    31     VtkGraphicsObject(),
     31    GraphicsObject(),
    3232    _colorMap(NULL)
    3333{
     
    200200void Volume::updateRanges(Renderer *renderer)
    201201{
    202     VtkGraphicsObject::updateRanges(renderer);
     202    GraphicsObject::updateRanges(renderer);
    203203
    204204    if (getVolume() != NULL) {
  • trunk/packages/vizservers/vtkvis/Volume.h

    r3616 r3621  
    1515#include <vtkPlaneCollection.h>
    1616
    17 #include "VtkGraphicsObject.h"
     17#include "GraphicsObject.h"
    1818#include "ColorMap.h"
    1919
     
    2626 * or an UnstructuredGrid
    2727 */
    28 class Volume : public VtkGraphicsObject {
     28class Volume : public GraphicsObject {
    2929public:
    3030    enum BlendMode {
  • trunk/packages/vizservers/vtkvis/Warp.cpp

    r3616 r3621  
    2727
    2828#include "Warp.h"
    29 #include "VtkRenderer.h"
     29#include "Renderer.h"
    3030#include "Trace.h"
    3131
     
    3535
    3636Warp::Warp() :
    37     VtkGraphicsObject(),
     37    GraphicsObject(),
    3838    _warpScale(1.0),
    3939    _colorMap(NULL),
  • trunk/packages/vizservers/vtkvis/Warp.h

    r3616 r3621  
    1919
    2020#include "ColorMap.h"
    21 #include "VtkGraphicsObject.h"
     21#include "GraphicsObject.h"
    2222
    2323namespace VtkVis {
     
    2929 * to create flow profiles/surfaces
    3030 */
    31 class Warp : public VtkGraphicsObject {
     31class Warp : public GraphicsObject {
    3232public:
    3333    enum ColorMode {
Note: See TracChangeset for help on using the changeset viewer.