VTK
vtkPolyDataMapperNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataMapperNode.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkPolyDataMapperNode_h
25 #define vtkPolyDataMapperNode_h
26 
27 #include "vtkRenderingSceneGraphModule.h" // For export macro
28 #include "vtkMapperNode.h"
29 
30 #include <vector> //for results
31 
32 class vtkActor;
33 class vtkPolyDataMapper;
34 class vtkPolyData;
35 
36 class VTKRENDERINGSCENEGRAPH_EXPORT vtkPolyDataMapperNode :
37  public vtkMapperNode
38 {
39 public:
40  static vtkPolyDataMapperNode* New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
44 protected:
47 
48  //Utilities for children
53  static void TransformPoints(vtkActor *act,
54  vtkPolyData *poly,
55  std::vector<double> &vertices);
56 
63  static void MakeConnectivity(vtkPolyData *poly,
64  int representation,
65  std::vector<unsigned int> &vertex_index,
66  std::vector<unsigned int> &vertex_reverse,
67  std::vector<unsigned int> &line_index,
68  std::vector<unsigned int> &line_reverse,
69  std::vector<unsigned int> &triangle_index,
70  std::vector<unsigned int> &triangle_reverse,
71  std::vector<unsigned int> &strip_index,
72  std::vector<unsigned int> &strip_reverse);
73 
74  private:
75  vtkPolyDataMapperNode(const vtkPolyDataMapperNode&) VTK_DELETE_FUNCTION;
76  void operator=(const vtkPolyDataMapperNode&) VTK_DELETE_FUNCTION;
77 };
78 
79 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkViewNode specialized for vtkPolyDataMappers
static vtkMapperNode * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkViewNode specialized for vtkMappers
Definition: vtkMapperNode.h:33
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)
map vtkPolyData to graphics primitives