VTK  9.3.0
vtkOpenGLMoleculeMapper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkOpenGLMoleculeMapper_h
15 #define vtkOpenGLMoleculeMapper_h
16 
17 #include "vtkDomainsChemistryOpenGL2Module.h" // For export macro
18 #include "vtkMoleculeMapper.h"
19 #include "vtkNew.h" // For vtkNew
20 
21 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKDOMAINSCHEMISTRYOPENGL2_EXPORT vtkOpenGLMoleculeMapper : public vtkMoleculeMapper
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  void Render(vtkRenderer*, vtkActor*) override;
39 
43  vtkOpenGLSphereMapper* GetFastAtomMapper() { return this->FastAtomMapper; }
49  vtkHardwareSelector* sel, std::vector<unsigned int>& pixeloffsets, vtkProp* prop) override;
50 
55  void SetMapScalars(bool map) override;
56 
57 protected:
60 
61  void UpdateAtomGlyphPolyData() override;
62  void UpdateBondGlyphPolyData() override;
63 
65 
71 
72 private:
74  void operator=(const vtkOpenGLMoleculeMapper&) = delete;
75 };
76 
77 VTK_ABI_NAMESPACE_END
78 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
a simple class to control print indentation
Definition: vtkIndent.h:29
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:46
abstract specification for renderers
Definition: vtkRenderer.h:62
window superclass for vtkRenderWindow
Definition: vtkWindow.h:28