VTK  9.4.20241118
vtkPolyDataMapperNode.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
12#ifndef vtkPolyDataMapperNode_h
13#define vtkPolyDataMapperNode_h
14
15#include "vtkMapperNode.h"
16#include "vtkRenderingSceneGraphModule.h" // For export macro
17
18#include <vector> //for results
19
20VTK_ABI_NAMESPACE_BEGIN
21class vtkActor;
23class vtkPolyData;
24
25class VTKRENDERINGSCENEGRAPH_EXPORT vtkPolyDataMapperNode : public vtkMapperNode
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33 {
34 std::vector<unsigned int> vertex_index;
35 std::vector<unsigned int> vertex_reverse;
36 std::vector<unsigned int> line_index;
37 std::vector<unsigned int> line_reverse;
38 std::vector<unsigned int> triangle_index;
39 std::vector<unsigned int> triangle_reverse;
40 std::vector<unsigned int> strip_index;
41 std::vector<unsigned int> strip_reverse;
42 };
44
45protected:
48
49 // Utilities for children
54 static void TransformPoints(vtkActor* act, vtkPolyData* poly, std::vector<double>& vertices);
55
62 static void MakeConnectivity(vtkPolyData* poly, int representation, vtkPDConnectivity& conn);
63
64private:
66 void operator=(const vtkPolyDataMapperNode&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
a simple class to control print indentation
Definition vtkIndent.h:108
vtkViewNode specialized for vtkMappers
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()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static void MakeConnectivity(vtkPolyData *poly, int representation, vtkPDConnectivity &conn)
Homogenizes the entire polydata using internal CreateXIndexBuffer functions.
~vtkPolyDataMapperNode() override
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)