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  void Render(vtkRenderer *, vtkActor *) override;
46  void ReleaseGraphicsResources(vtkWindow *) override;
48 
52  vtkOpenGLSphereMapper *GetFastAtomMapper() {
53  return this->FastAtomMapper; }
59  std::vector<unsigned int> &pixeloffsets,
60  vtkProp *prop) override;
61 
62 protected:
64  ~vtkOpenGLMoleculeMapper() override;
65 
66  void UpdateAtomGlyphPolyData() override;
67  void UpdateBondGlyphPolyData() override;
68 
70 
76 
77 private:
79  void operator=(const vtkOpenGLMoleculeMapper&) = delete;
80 };
81 
82 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
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
virtual void ProcessSelectorPixelBuffers(vtkHardwareSelector *, std::vector< unsigned int > &, vtkProp *)
allows a mapper to update a selections color buffers Called from a prop which in turn is called from ...
Definition: vtkMapper.h:496
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()