source: vtkvis/trunk/Shape.h @ 4615

Last change on this file since 4615 was 3621, checked in by ldelgass, 11 years ago

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

  • Property svn:eol-style set to native
File size: 953 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (C) 2004-2012  HUBzero Foundation, LLC
4 *
5 * Author: Leif Delgass <ldelgass@purdue.edu>
6 */
7
8#ifndef VTKVIS_SHAPE_H
9#define VTKVIS_SHAPE_H
10
11#include <cassert>
12
13#include <vtkSmartPointer.h>
14#include <vtkPolyDataMapper.h>
15#include <vtkActor.h>
16
17#include "GraphicsObject.h"
18#include "DataSet.h"
19
20namespace VtkVis {
21
22/**
23 * \brief VTK Mesh (Polygon data)
24 *
25 * This class creates a boundary mesh of a DataSet
26 */
27class Shape : public GraphicsObject {
28public:
29    Shape();
30    virtual ~Shape();
31
32    virtual const char *getClassName() const
33    {
34        return "Shape";
35    }
36
37    virtual void setDataSet(DataSet *dataSet,
38                            Renderer *renderer)
39    {
40        assert(dataSet == NULL);
41        update();
42    }
43
44    virtual void setClippingPlanes(vtkPlaneCollection *planes);
45
46protected:
47    vtkSmartPointer<vtkPolyDataMapper> _pdMapper;
48};
49
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.