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 
35 class VTKDOMAINSCHEMISTRYOPENGL2_EXPORT vtkOpenGLMoleculeMapper : public vtkMoleculeMapper
36 {
37 public:
38  static vtkOpenGLMoleculeMapper* New();
40 
41  //@{
45  virtual void Render(vtkRenderer *, vtkActor *);
46  virtual void ReleaseGraphicsResources(vtkWindow *);
48 
52  vtkOpenGLSphereMapper *GetFastAtomMapper() {
53  return this->FastAtomMapper.Get(); }
54 
55 protected:
58 
59  virtual void UpdateAtomGlyphPolyData();
60  virtual void UpdateBondGlyphPolyData();
61 
63 
69 
70 private:
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:51
virtual void UpdateBondGlyphPolyData()
Cached variables and update methods.
use imposters to draw cylinders
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkNew< vtkOpenGLSphereMapper > FastAtomMapper
Internal mappers.
Mapper that draws vtkMolecule objects.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkNew< vtkOpenGLStickMapper > FastBondMapper
Internal mappers.
virtual void UpdateAtomGlyphPolyData()
Cached variables and update methods.
draw spheres using imposters
An accelerated class for rendering molecules.
static vtkMoleculeMapper * New()