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
32class VTKDOMAINSCHEMISTRYOPENGL2_EXPORT vtkOpenGLMoleculeMapper : public vtkMoleculeMapper
33{
34public:
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
64protected:
67
68 void UpdateAtomGlyphPolyData() override;
69 void UpdateBondGlyphPolyData() override;
70
72
78
79private:
81 void operator=(const vtkOpenGLMoleculeMapper&) = delete;
82};
83
84#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
Mapper that draws vtkMolecule objects.
Allocate and hold a VTK object.
Definition: vtkNew.h:165
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.
static vtkOpenGLMoleculeMapper * New()
void UpdateAtomGlyphPolyData() override
Cached variables and update methods.
vtkOpenGLSphereMapper * GetFastAtomMapper()
provide access to the underlying mappers
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 ...
draw spheres using imposters
use imposters to draw cylinders
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
abstract specification for renderers
Definition: vtkRenderer.h:182
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39