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 =========================================================================*/
24 #ifndef vtkOpenGLMoleculeMapper_h
25 #define vtkOpenGLMoleculeMapper_h
26 
27 #include "vtkDomainsChemistryOpenGL2Module.h" // For export macro
28 #include "vtkMoleculeMapper.h"
29 #include "vtkNew.h" // For vtkNew
30 
33 
35 {
36 public:
37  static vtkOpenGLMoleculeMapper* New();
39 
40  //@{
42  virtual void Render(vtkRenderer *, vtkActor *);
43  virtual void ReleaseGraphicsResources(vtkWindow *);
45 
47 
48  vtkOpenGLSphereMapper *GetFastAtomMapper() {
49  return this->FastAtomMapper.Get(); }
51 
52 protected:
55 
56  virtual void UpdateAtomGlyphPolyData();
57  virtual void UpdateBondGlyphPolyData();
58 
60 
64 
65 private:
66  vtkOpenGLMoleculeMapper(const vtkOpenGLMoleculeMapper&); // Not implemented.
67  void operator=(const vtkOpenGLMoleculeMapper&); // Not implemented.
68 };
69 
70 #endif
#define VTKDOMAINSCHEMISTRYOPENGL2_EXPORT
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
virtual void UpdateBondGlyphPolyData()
use imposters to draw cylinders
abstract specification for renderers
Definition: vtkRenderer.h:62
vtkNew< vtkOpenGLSphereMapper > FastAtomMapper
Mapper that draws vtkMolecule objects.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
vtkNew< vtkOpenGLStickMapper > FastBondMapper
virtual void UpdateAtomGlyphPolyData()
draw spheres using imposters
An accelerated class for rendering molecules.
static vtkMoleculeMapper * New()