VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
Domains
ChemistryOpenGL2
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
31
class
vtkOpenGLSphereMapper
;
32
class
vtkOpenGLStickMapper
;
33
34
class
VTKDOMAINSCHEMISTRYOPENGL2_EXPORT
vtkOpenGLMoleculeMapper
:
public
vtkMoleculeMapper
35
{
36
public
:
37
static
vtkOpenGLMoleculeMapper
*
New
();
38
vtkTypeMacro(
vtkOpenGLMoleculeMapper
,
vtkMoleculeMapper
)
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
:
53
vtkOpenGLMoleculeMapper
();
54
~
vtkOpenGLMoleculeMapper
();
55
56
virtual
void
UpdateAtomGlyphPolyData
();
57
virtual
void
UpdateBondGlyphPolyData
();
58
60
61
vtkNew<vtkOpenGLSphereMapper>
FastAtomMapper
;
62
vtkNew<vtkOpenGLStickMapper>
FastBondMapper
;
64
65
private
:
66
vtkOpenGLMoleculeMapper
(
const
vtkOpenGLMoleculeMapper
&);
// Not implemented.
67
void
operator=(
const
vtkOpenGLMoleculeMapper
&);
// Not implemented.
68
};
69
70
#endif
VTKDOMAINSCHEMISTRYOPENGL2_EXPORT
#define VTKDOMAINSCHEMISTRYOPENGL2_EXPORT
Definition:
vtkDomainsChemistryOpenGL2Module.h:15
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition:
vtkActor.h:50
vtkMoleculeMapper::UpdateBondGlyphPolyData
virtual void UpdateBondGlyphPolyData()
vtkOpenGLStickMapper
use imposters to draw cylinders
Definition:
vtkOpenGLStickMapper.h:27
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:62
vtkOpenGLMoleculeMapper::FastAtomMapper
vtkNew< vtkOpenGLSphereMapper > FastAtomMapper
Definition:
vtkOpenGLMoleculeMapper.h:61
vtkMoleculeMapper.h
vtkMoleculeMapper
Mapper that draws vtkMolecule objects.
Definition:
vtkMoleculeMapper.h:44
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:36
vtkOpenGLMoleculeMapper::FastBondMapper
vtkNew< vtkOpenGLStickMapper > FastBondMapper
Definition:
vtkOpenGLMoleculeMapper.h:62
vtkMoleculeMapper::UpdateAtomGlyphPolyData
virtual void UpdateAtomGlyphPolyData()
vtkDomainsChemistryOpenGL2Module.h
vtkOpenGLSphereMapper
draw spheres using imposters
Definition:
vtkOpenGLSphereMapper.h:27
vtkNew.h
vtkNew< vtkOpenGLSphereMapper >
vtkOpenGLMoleculeMapper
An accelerated class for rendering molecules.
Definition:
vtkOpenGLMoleculeMapper.h:34
vtkMoleculeMapper::New
static vtkMoleculeMapper * New()
Generated on Wed Dec 16 2015 17:14:50 for VTK by
1.8.9.1