 |
VTK
9.0.1
|
Go to the documentation of this file.
24 #ifndef vtkMoleculeMapper_h
25 #define vtkMoleculeMapper_h
27 #include "vtkDomainsChemistryModule.h"
117 vtkGetMacro(RenderAtoms,
bool);
118 vtkSetMacro(RenderAtoms,
bool);
119 vtkBooleanMacro(RenderAtoms,
bool);
126 vtkGetMacro(RenderBonds,
bool);
127 vtkSetMacro(RenderBonds,
bool);
128 vtkBooleanMacro(RenderBonds,
bool);
136 vtkGetMacro(RenderLattice,
bool);
137 vtkSetMacro(RenderLattice,
bool);
138 vtkBooleanMacro(RenderLattice,
bool);
155 vtkGetMacro(AtomicRadiusType,
int);
156 vtkSetMacro(AtomicRadiusType,
int);
170 vtkGetMacro(AtomicRadiusScaleFactor,
float);
171 vtkSetMacro(AtomicRadiusScaleFactor,
float);
179 vtkGetMacro(UseMultiCylindersForBonds,
bool);
180 vtkSetMacro(UseMultiCylindersForBonds,
bool);
181 vtkBooleanMacro(UseMultiCylindersForBonds,
bool);
201 vtkGetMacro(BondColorMode,
int);
202 vtkSetClampMacro(BondColorMode,
int, SingleColor, DiscreteByAtom);
218 vtkGetMacro(AtomColorMode,
int);
219 vtkSetClampMacro(AtomColorMode,
int, SingleColor, DiscreteByAtom);
227 vtkGetVector3Macro(AtomColor,
unsigned char);
228 vtkSetVector3Macro(AtomColor,
unsigned char);
236 vtkGetVector3Macro(BondColor,
unsigned char);
237 vtkSetVector3Macro(BondColor,
unsigned char);
244 vtkGetMacro(BondRadius,
float);
245 vtkSetMacro(BondRadius,
float);
253 vtkGetVector3Macro(LatticeColor,
unsigned char);
254 vtkSetVector3Macro(LatticeColor,
unsigned char);
266 this->GetSelectedAtomsAndBonds(selection, atomIds,
nullptr);
270 this->GetSelectedAtomsAndBonds(selection,
nullptr, bondIds);
291 vtkGetStringMacro(AtomicRadiusArrayName);
292 vtkSetStringMacro(AtomicRadiusArrayName);
319 unsigned char AtomColor[3];
330 unsigned char BondColor[3];
362 unsigned char LatticeColor[3];
map vtkPolyData to graphics primitives
void SetAtomicRadiusTypeToCovalentRadius()
bool GetSupportsSelection() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void SetBondColorModeToSingleColor()
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
virtual void UpdateLatticePolyData()
void GlyphRender(vtkRenderer *ren, vtkActor *act)
Internal render methods.
vtkNew< vtkPeriodicTable > PeriodicTable
Periodic table for lookups.
void SetAtomicRadiusTypeToVDWRadius()
void SetAtomicRadiusTypeToCustomArrayRadius()
float AtomicRadiusScaleFactor
bool GlyphDataInitialized
data object that represents a "selection" in VTK.
vtkNew< vtkPolyData > BondGlyphPolyData
virtual void UpdateBondGlyphPolyData()
char * AtomicRadiusArrayName
void Render(vtkRenderer *, vtkActor *) override
Reimplemented from base class.
vtkNew< vtkPolyData > LatticePolyData
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Producer for stand-alone data objects.
virtual void UpdateGlyphPolyData()
bool RenderAtoms
Customize atom rendering.
window superclass for vtkRenderWindow
virtual void UpdateAtomGlyphPolyData()
bool UseMultiCylindersForBonds
virtual void GetSelectedBonds(vtkSelection *selection, vtkIdTypeArray *bondIds)
vtkNew< vtkPolyData > AtomGlyphPolyData
Cached variables and update methods.
vtkNew< vtkPolyDataMapper > LatticeMapper
void UseLiquoriceStickSettings()
Set ivars to default liquorice stick settings.
vtkNew< vtkTrivialProducer > AtomGlyphPointOutput
create a polygonal sphere centered at the origin
abstract class specifies interface to map data to graphics primitives
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
represents an object (geometry & properties) in a rendered scene
vtkPeriodicTable * GetPeriodicTable()
Accessor to internal structure.
a simple class to control print indentation
void SetAtomicRadiusTypeToUnitRadius()
~vtkMoleculeMapper() override
class describing a molecule
Access to information about the elements.
Mapper that draws vtkMolecule objects.
vtkNew< vtkGlyph3DMapper > AtomGlyphMapper
Internal mappers.
virtual void GetSelectedAtoms(vtkSelection *selection, vtkIdTypeArray *atomIds)
virtual void GetSelectedAtomsAndBonds(vtkSelection *selection, vtkIdTypeArray *atomIds, vtkIdTypeArray *bondIds)
Extract the ids atoms and/or bonds rendered by this molecule from a vtkSelection object.
dynamic, self-adjusting array of vtkIdType
const char * GetBondColorModeAsString()
void UseFastSettings()
Set ivars to use fast settings that may be useful for rendering extremely large molecules where the o...
abstract specification for renderers
void SetBondColorModeToDiscreteByAtom()
concrete dataset represents vertices, lines, polygons, and triangle strips
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkTrivialProducer > BondGlyphPointOutput
virtual void SetMapScalars(bool map)
Helper method to set ScalarMode on both AtomGlyphMapper and BondGlyphMapper.
static vtkMoleculeMapper * New()
void GetBounds(double bounds[6]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
const char * GetAtomicRadiusTypeAsString()
void UseBallAndStickSettings()
Set ivars to default ball-and-stick settings.
bool RenderBonds
Customize bond rendering.
vtkNew< vtkGlyph3DMapper > BondGlyphMapper
void SetInputData(vtkMolecule *in)
Get/Set the input vtkMolecule.
void UseVDWSpheresSettings()
Set ivars to default van der Waals spheres settings.