You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.3 KiB
C++
76 lines
2.3 KiB
C++
/*=========================================================================
|
|
|
|
Program: Visualization Toolkit
|
|
Module: vtkDisplayListPainter.h
|
|
|
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
|
All rights reserved.
|
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
PURPOSE. See the above copyright notice for more information.
|
|
|
|
=========================================================================*/
|
|
/**
|
|
* @class vtkDisplayListPainter
|
|
* @brief abstract superclass for painter that
|
|
* builds/uses display lists.
|
|
*/
|
|
|
|
#ifndef vtkDisplayListPainter_h
|
|
#define vtkDisplayListPainter_h
|
|
|
|
#include "vtkRenderingOpenGLModule.h" // For export macro
|
|
#include "vtkPainter.h"
|
|
|
|
class vtkInformationIntegerKey;
|
|
|
|
class VTKRENDERINGOPENGL_EXPORT vtkDisplayListPainter : public vtkPainter
|
|
{
|
|
public:
|
|
static vtkDisplayListPainter* New();
|
|
vtkTypeMacro(vtkDisplayListPainter, vtkPainter);
|
|
void PrintSelf(ostream& os, vtkIndent indent);
|
|
|
|
/**
|
|
* Turn on/off flag to control whether data is rendered using
|
|
* immediate mode or note. Immediate mode rendering
|
|
* tends to be slower but it can handle larger datasets.
|
|
* The default value is immediate mode off. If you are
|
|
* having problems rendering a large dataset you might
|
|
* want to consider using immediate more rendering.
|
|
*/
|
|
static vtkInformationIntegerKey* IMMEDIATE_MODE_RENDERING();
|
|
|
|
/**
|
|
* Get the time required to draw the geometry last time it was rendered.
|
|
* Overridden to avoid adding of delegate rendering time
|
|
* when Display Lists are used.
|
|
*/
|
|
virtual double GetTimeToDraw();
|
|
|
|
protected:
|
|
vtkDisplayListPainter();
|
|
~vtkDisplayListPainter();
|
|
|
|
/**
|
|
* Called before RenderInternal() if the Information has been changed
|
|
* since the last time this method was called.
|
|
*/
|
|
virtual void ProcessInformation(vtkInformation*);
|
|
|
|
|
|
// These methods set the ivars. These are purposefully protected.
|
|
// The only means to affect them should be using information object.
|
|
vtkSetMacro(ImmediateModeRendering,int);
|
|
|
|
int ImmediateModeRendering;
|
|
|
|
private:
|
|
vtkDisplayListPainter(const vtkDisplayListPainter&) VTK_DELETE_FUNCTION;
|
|
void operator=(const vtkDisplayListPainter&) VTK_DELETE_FUNCTION;
|
|
};
|
|
|
|
#endif
|