source: branches/1.2/packages/vizservers/vtkvis/RpShape.cpp @ 5036

Last change on this file since 5036 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: 802 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#include <cassert>
9
10#include <vtkDataSet.h>
11#include <vtkPolyData.h>
12#include <vtkPolyDataMapper.h>
13#include <vtkActor.h>
14#include <vtkProperty.h>
15#include <vtkTransform.h>
16
17#include "RpShape.h"
18#include "Trace.h"
19
20using namespace Rappture::VtkVis;
21
22Shape::Shape() :
23    VtkGraphicsObject()
24{
25}
26
27Shape::~Shape()
28{
29    //TRACE("Deleting Shape");
30}
31
32/**
33 * \brief Set a group of world coordinate planes to clip rendering
34 *
35 * Passing NULL for planes will remove all cliping planes
36 */
37void Shape::setClippingPlanes(vtkPlaneCollection *planes)
38{
39    if (_pdMapper != NULL) {
40        _pdMapper->SetClippingPlanes(planes);
41    }
42}
Note: See TracBrowser for help on using the repository browser.