VTK
vtkPolyDataPainter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPolyDataPainter.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=========================================================================*/
15/*
16 * Copyright 2004 Sandia Corporation.
17 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
18 * license for use of this work by or on behalf of the
19 * U.S. Government. Redistribution and use in source and binary forms, with
20 * or without modification, are permitted provided that this Notice and any
21 * statement of authorship are reproduced on all copies.
22 */
23
44#ifndef vtkPolyDataPainter_h
45#define vtkPolyDataPainter_h
46
47#include "vtkRenderingOpenGLModule.h" // For export macro
48#include "vtkPainter.h"
49
52class vtkPolyData;
53
54class VTKRENDERINGOPENGL_EXPORT vtkPolyDataPainter : public vtkPainter
55{
56public:
58 virtual void PrintSelf(ostream &os, vtkIndent indent);
59
64
70
77
82
83 // Set the mapping between vtkPointData (vtkCellData) arrays and
84 // generic vertex attributes.
86
91
96 virtual void Render(vtkRenderer* renderer, vtkActor* actor,
97 unsigned long typeflags, bool forceCompileOnly);
98
99protected:
102
103 int BuildNormals; // ivar synchornized with this->Information before
104 // RenderInternal() is called. The ivar are purposefully protected,
105 // the only way to affecting these from outside should be using
106 // the information object.
107 vtkSetMacro(BuildNormals, int);
108
114
115private:
116 vtkPolyDataPainter(const vtkPolyDataPainter &) VTK_DELETE_FUNCTION;
117 void operator=(const vtkPolyDataPainter &) VTK_DELETE_FUNCTION;
118};
119
120#endif //_vtkPolyDataPainter_h
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
a simple class to control print indentation
Definition: vtkIndent.h:40
Key for integer values in vtkInformation.
Key for vtkObjectBase values.
Store vtkAlgorithm input/output information.
Abstract class for drawing poly data.
Definition: vtkPainter.h:62
Abstract class for drawing poly data.
static vtkInformationObjectBaseKey * DATA_ARRAY_TO_VERTEX_ATTRIBUTE()
virtual void Render(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
Overridden to stop the render call if input polydata is not set, since PolyDataPainter cannot paint w...
static vtkInformationIntegerKey * DISABLE_SCALAR_COLOR()
Key added to disable any scalar coloring for the current pass.
vtkPolyData * GetOutputAsPolyData()
Get the output polydata from this Painter.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPolyData * GetInputAsPolyData()
Get/set the poly data to render.
static vtkInformationObjectBaseKey * SHADER_DEVICE_ADAPTOR()
Key to store the shader device adaptor.
virtual void ProcessInformation(vtkInformation *)
Called before RenderInternal() if the Information has been changed since the last time this method wa...
static vtkInformationIntegerKey * BUILD_NORMALS()
Keys used to specify control the behaviour of the painter.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.