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
32class vtkActor;
34class vtkPolyData;
35
36class VTKRENDERINGSCENEGRAPH_EXPORT vtkPolyDataMapperNode :
37 public vtkMapperNode
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent);
43
44protected:
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:52
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkViewNode specialized for vtkMappers
Definition: vtkMapperNode.h:35
vtkViewNode specialized for vtkPolyDataMappers
static void TransformPoints(vtkActor *act, vtkPolyData *poly, std::vector< double > &vertices)
Makes a cleaned up version of the polydata's geometry in which NaN are removed (substituted with neig...
static vtkPolyDataMapperNode * New()
static void MakeConnectivity(vtkPolyData *poly, int representation, std::vector< unsigned int > &vertex_index, std::vector< unsigned int > &vertex_reverse, std::vector< unsigned int > &line_index, std::vector< unsigned int > &line_reverse, std::vector< unsigned int > &triangle_index, std::vector< unsigned int > &triangle_reverse, std::vector< unsigned int > &strip_index, std::vector< unsigned int > &strip_reverse)
Homogenizes the entire polydata using internal CreateXIndexBuffer functions.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)