 |
VTK
9.1.0
|
Go to the documentation of this file.
43 #ifndef vtkMoleculeMapper_h
44 #define vtkMoleculeMapper_h
46 #include "vtkDomainsChemistryModule.h"
136 vtkGetMacro(RenderAtoms,
bool);
137 vtkSetMacro(RenderAtoms,
bool);
138 vtkBooleanMacro(RenderAtoms,
bool);
145 vtkGetMacro(RenderBonds,
bool);
146 vtkSetMacro(RenderBonds,
bool);
147 vtkBooleanMacro(RenderBonds,
bool);
155 vtkGetMacro(RenderLattice,
bool);
156 vtkSetMacro(RenderLattice,
bool);
157 vtkBooleanMacro(RenderLattice,
bool);
174 vtkGetMacro(AtomicRadiusType,
int);
175 vtkSetMacro(AtomicRadiusType,
int);
189 vtkGetMacro(AtomicRadiusScaleFactor,
float);
190 vtkSetMacro(AtomicRadiusScaleFactor,
float);
198 vtkGetMacro(UseMultiCylindersForBonds,
bool);
199 vtkSetMacro(UseMultiCylindersForBonds,
bool);
200 vtkBooleanMacro(UseMultiCylindersForBonds,
bool);
220 vtkGetMacro(BondColorMode,
int);
221 vtkSetClampMacro(BondColorMode,
int, SingleColor, DiscreteByAtom);
237 vtkGetMacro(AtomColorMode,
int);
238 vtkSetClampMacro(AtomColorMode,
int, SingleColor, DiscreteByAtom);
246 vtkGetVector3Macro(AtomColor,
unsigned char);
247 vtkSetVector3Macro(AtomColor,
unsigned char);
255 vtkGetVector3Macro(BondColor,
unsigned char);
256 vtkSetVector3Macro(BondColor,
unsigned char);
263 vtkGetMacro(BondRadius,
float);
264 vtkSetMacro(BondRadius,
float);
272 vtkGetVector3Macro(LatticeColor,
unsigned char);
273 vtkSetVector3Macro(LatticeColor,
unsigned char);
285 this->GetSelectedAtomsAndBonds(selection, atomIds,
nullptr);
289 this->GetSelectedAtomsAndBonds(selection,
nullptr, bondIds);
310 vtkGetStringMacro(AtomicRadiusArrayName);
311 vtkSetStringMacro(AtomicRadiusArrayName);
338 unsigned char AtomColor[3];
349 unsigned char BondColor[3];
381 unsigned char LatticeColor[3];
map vtkPolyData to graphics primitives
void SetAtomicRadiusTypeToCovalentRadius()
Get/Set the type of radius used to generate the atoms.
bool GetSupportsSelection() override
Reimplemented from base class.
void SetBondColorModeToSingleColor()
Get/Set the method by which bonds are colored.
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()
Get/Set the type of radius used to generate the atoms.
void SetAtomicRadiusTypeToCustomArrayRadius()
Get/Set the type of radius used to generate the atoms.
float AtomicRadiusScaleFactor
Customize atom rendering.
bool GlyphDataInitialized
Cached variables and update methods.
data object that represents a "selection" in VTK.
vtkNew< vtkPolyData > BondGlyphPolyData
Cached variables and update methods.
virtual void UpdateBondGlyphPolyData()
Cached variables and update methods.
char * AtomicRadiusArrayName
Customize atom rendering.
void Render(vtkRenderer *, vtkActor *) override
Reimplemented from base class.
vtkNew< vtkPolyData > LatticePolyData
int FillInputPortInformation(int port, vtkInformation *info) override
Reimplemented from base class.
vtkMolecule * GetInput()
Get/Set the input vtkMolecule.
Producer for stand-alone data objects.
virtual void UpdateGlyphPolyData()
Cached variables and update methods.
bool RenderAtoms
Customize atom rendering.
window superclass for vtkRenderWindow
virtual void UpdateAtomGlyphPolyData()
Cached variables and update methods.
bool UseMultiCylindersForBonds
Customize bond rendering.
virtual void GetSelectedBonds(vtkSelection *selection, vtkIdTypeArray *bondIds)
Extract the ids atoms and/or bonds rendered by this molecule from a vtkSelection object.
int AtomColorMode
Customize atom rendering.
vtkNew< vtkPolyData > AtomGlyphPolyData
Cached variables and update methods.
vtkNew< vtkPolyDataMapper > LatticeMapper
void UseLiquoriceStickSettings()
Set ivars to default liquorice stick settings.
vtkNew< vtkTrivialProducer > AtomGlyphPointOutput
Cached variables and update methods.
create a polygonal sphere centered at the origin
abstract class specifies interface to map data to graphics primitives
void ReleaseGraphicsResources(vtkWindow *) override
Reimplemented from base class.
double * GetBounds() override
Reimplemented from base class.
represents an object (geometry & properties) in a rendered scene
vtkPeriodicTable * GetPeriodicTable()
Accessor to internal structure.
a simple class to control print indentation
int AtomicRadiusType
Customize atom rendering.
void SetAtomicRadiusTypeToUnitRadius()
Get/Set the type of radius used to generate the atoms.
float BondRadius
Customize bond rendering.
~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)
Extract the ids atoms and/or bonds rendered by this molecule from a vtkSelection object.
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()
Get/Set the method by which bonds are colored.
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()
Get/Set the method by which bonds are colored.
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
Cached variables and update methods.
virtual void SetMapScalars(bool map)
Helper method to set ScalarMode on both AtomGlyphMapper and BondGlyphMapper.
static vtkMoleculeMapper * New()
void GetBounds(double bounds[6]) override
Reimplemented from base class.
const char * GetAtomicRadiusTypeAsString()
Get/Set the type of radius used to generate the atoms.
int BondColorMode
Customize bond rendering.
void UseBallAndStickSettings()
Set ivars to default ball-and-stick settings.
bool RenderBonds
Customize bond rendering.
vtkNew< vtkGlyph3DMapper > BondGlyphMapper
Internal mappers.
void SetInputData(vtkMolecule *in)
Get/Set the input vtkMolecule.
void UseVDWSpheresSettings()
Set ivars to default van der Waals spheres settings.