source: vtkvis/trunk/Shape.cpp @ 4635

Last change on this file since 4635 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: 787 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 "Shape.h"
18#include "Trace.h"
19
20using namespace VtkVis;
21
22Shape::Shape() :
23    GraphicsObject()
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.