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 =========================================================================*/
21 #ifndef vtkOpenGLMoleculeMapper_h
22 #define vtkOpenGLMoleculeMapper_h
23 
24 #include "vtkDomainsChemistryOpenGL2Module.h" // For export macro
25 #include "vtkMoleculeMapper.h"
26 #include "vtkNew.h" // For vtkNew
27 
30 
31 class VTKDOMAINSCHEMISTRYOPENGL2_EXPORT vtkOpenGLMoleculeMapper : public vtkMoleculeMapper
32 {
33 public:
34  static vtkOpenGLMoleculeMapper* New();
36 
37  //@{
39  virtual void Render(vtkRenderer *, vtkActor *);
40  virtual void ReleaseGraphicsResources(vtkWindow *);
42 
43 protected:
45  ~vtkOpenGLMoleculeMapper();
46 
47  virtual void UpdateAtomGlyphPolyData();
48  virtual void UpdateBondGlyphPolyData();
49 
51 
52  vtkNew<vtkOpenGLSphereMapper> FastAtomMapper;
53  vtkNew<vtkOpenGLStickMapper> FastBondMapper;
55 
56 private:
57  vtkOpenGLMoleculeMapper(const vtkOpenGLMoleculeMapper&); // Not implemented.
58  void operator=(const vtkOpenGLMoleculeMapper&); // Not implemented.
59 };
60 
61 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
use imposters to draw cylinders
abstract specification for renderers
Definition: vtkRenderer.h:63
Mapper that draws vtkMolecule objects.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
draw spheres using imposters
Allocate and hold a VTK object.
Definition: vtkNew.h:66
An accelerated class for rendering molecules.
static vtkMoleculeMapper * New()