source: branches/Rappture 1.2/packages/vizservers/vtkvis/RpShape.h @ 3208

Last change on this file since 3208 was 3177, checked in by mmc, 12 years ago

Updated all of the copyright notices to reference the transfer to
the new HUBzero Foundation, LLC.

  • Property svn:eol-style set to native
File size: 1015 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 __RAPPTURE_VTKVIS_SHAPE_H__
9#define __RAPPTURE_VTKVIS_SHAPE_H__
10
11#include <cassert>
12
13#include <vtkSmartPointer.h>
14#include <vtkPolyDataMapper.h>
15#include <vtkActor.h>
16
17#include "RpVtkGraphicsObject.h"
18#include "RpVtkDataSet.h"
19
20namespace Rappture {
21namespace VtkVis {
22
23/**
24 * \brief VTK Mesh (Polygon data)
25 *
26 * This class creates a boundary mesh of a DataSet
27 */
28class Shape : public VtkGraphicsObject {
29public:
30    Shape();
31    virtual ~Shape();
32
33    virtual const char *getClassName() const
34    {
35        return "Shape";
36    }
37
38    virtual void setDataSet(DataSet *dataSet,
39                            Renderer *renderer)
40    {
41        assert(dataSet == NULL);
42        update();
43    }
44
45    virtual void setClippingPlanes(vtkPlaneCollection *planes);
46
47protected:
48    vtkSmartPointer<vtkPolyDataMapper> _pdMapper;
49};
50
51}
52}
53
54#endif
Note: See TracBrowser for help on using the repository browser.