VTK  9.1.0
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 =========================================================================*/
22 #ifndef vtkOpenGLMoleculeMapper_h
23 #define vtkOpenGLMoleculeMapper_h
24 
25 #include "vtkDomainsChemistryOpenGL2Module.h" // For export macro
26 #include "vtkMoleculeMapper.h"
27 #include "vtkNew.h" // For vtkNew
28 
31 
32 class VTKDOMAINSCHEMISTRYOPENGL2_EXPORT vtkOpenGLMoleculeMapper : public vtkMoleculeMapper
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  void Render(vtkRenderer*, vtkActor*) override;
46 
50  vtkOpenGLSphereMapper* GetFastAtomMapper() { return this->FastAtomMapper; }
56  vtkHardwareSelector* sel, std::vector<unsigned int>& pixeloffsets, vtkProp* prop) override;
57 
62  void SetMapScalars(bool map) override;
63 
64 protected:
67 
68  void UpdateAtomGlyphPolyData() override;
69  void UpdateBondGlyphPolyData() override;
70 
72 
78 
79 private:
81  void operator=(const vtkOpenGLMoleculeMapper&) = delete;
82 };
83 
84 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
a simple class to control print indentation
Definition: vtkIndent.h:34
Mapper that draws vtkMolecule objects.
An accelerated class for rendering molecules.
void UpdateBondGlyphPolyData() override
Cached variables and update methods.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkOpenGLSphereMapper > FastAtomMapper
Internal mappers.
void SetMapScalars(bool map) override
Helper method to set ScalarMode on both FastAtomMapper and FastBondMapper.
vtkOpenGLSphereMapper * GetFastAtomMapper()
provide access to the underlying mappers
void UpdateAtomGlyphPolyData() override
Cached variables and update methods.
vtkNew< vtkOpenGLStickMapper > FastBondMapper
Internal mappers.
void Render(vtkRenderer *, vtkActor *) override
Reimplemented from base class.
~vtkOpenGLMoleculeMapper() override
void ReleaseGraphicsResources(vtkWindow *) override
Reimplemented from base class.
void ProcessSelectorPixelBuffers(vtkHardwareSelector *sel, std::vector< unsigned int > &pixeloffsets, vtkProp *prop) override
allows a mapper to update a selections color buffers Called from a prop which in turn is called from ...
static vtkOpenGLMoleculeMapper * New()
draw spheres using imposters
use imposters to draw cylinders
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:57
abstract specification for renderers
Definition: vtkRenderer.h:73
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39