VTK
vtkOpenGLMoleculeMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4
5 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6 All rights reserved.
7 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
25#ifndef vtkOpenGLMoleculeMapper_h
26#define vtkOpenGLMoleculeMapper_h
27
28#include "vtkDomainsChemistryOpenGL2Module.h" // For export macro
29#include "vtkMoleculeMapper.h"
30#include "vtkNew.h" // For vtkNew
31
34
35class VTKDOMAINSCHEMISTRYOPENGL2_EXPORT vtkOpenGLMoleculeMapper : public vtkMoleculeMapper
36{
37public:
40
41 //@{
45 virtual void Render(vtkRenderer *, vtkActor *);
46 virtual void ReleaseGraphicsResources(vtkWindow *);
48
52 vtkOpenGLSphereMapper *GetFastAtomMapper() {
53 return this->FastAtomMapper.Get(); }
54
55protected:
58
61
63
69
70private:
71 vtkOpenGLMoleculeMapper(const vtkOpenGLMoleculeMapper&) VTK_DELETE_FUNCTION;
72 void operator=(const vtkOpenGLMoleculeMapper&) VTK_DELETE_FUNCTION;
73};
74
75#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
Mapper that draws vtkMolecule objects.
An accelerated class for rendering molecules.
vtkNew< vtkOpenGLSphereMapper > FastAtomMapper
Internal mappers.
static vtkOpenGLMoleculeMapper * New()
vtkNew< vtkOpenGLStickMapper > FastBondMapper
virtual void UpdateBondGlyphPolyData()
virtual void UpdateAtomGlyphPolyData()
draw spheres using imposters
use imposters to draw cylinders
abstract specification for renderers
Definition: vtkRenderer.h:64
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35