VTK
vtkLinesPainter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLinesPainter.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 =========================================================================*/
28 #ifndef vtkLinesPainter_h
29 #define vtkLinesPainter_h
30 
31 #include "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkPrimitivePainter.h"
33 
34 class VTKRENDERINGOPENGL_EXPORT vtkLinesPainter : public vtkPrimitivePainter
35 {
36 public:
37  static vtkLinesPainter* New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
41 protected:
44 
45  int RenderPolys; // Flag indicating if the line loops are to be closed.
46 
51  virtual void RenderInternal(vtkRenderer* renderer, vtkActor* actor,
52  unsigned long typeflags, bool forceCompileOnly);
53 
58  virtual int RenderPrimitive(unsigned long flags, vtkDataArray* n,
60 
61 private:
62  vtkLinesPainter(const vtkLinesPainter&) VTK_DELETE_FUNCTION;
63  void operator=(const vtkLinesPainter&) VTK_DELETE_FUNCTION;
64 };
65 
66 
67 
68 #endif
vtkLinesPainter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkLinesPainter::RenderInternal
virtual void RenderInternal(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
Overriden to set RenderPolys flag.
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:42
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkLinesPainter::vtkLinesPainter
vtkLinesPainter()
vtkPrimitivePainter.h
vtkLinesPainter::New
static vtkLinesPainter * New()
vtkLinesPainter
painter that paints lines.
Definition: vtkLinesPainter.h:35
vtkLinesPainter::~vtkLinesPainter
~vtkLinesPainter()
vtkPrimitivePainter
superclass for class that handle single privmitives.
Definition: vtkPrimitivePainter.h:40
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkLinesPainter::RenderPrimitive
virtual int RenderPrimitive(unsigned long flags, vtkDataArray *n, vtkUnsignedCharArray *c, vtkDataArray *t, vtkRenderer *ren)
The actual rendering happens here.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkLinesPainter::RenderPolys
int RenderPolys
Definition: vtkLinesPainter.h:45