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 | |
---|
20 | using namespace VtkVis; |
---|
21 | |
---|
22 | Shape::Shape() : |
---|
23 | GraphicsObject() |
---|
24 | { |
---|
25 | } |
---|
26 | |
---|
27 | Shape::~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 | */ |
---|
37 | void 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.