Go to the documentation of this file.
24 #ifndef vtkMoleculeMapper_h
25 #define vtkMoleculeMapper_h
27 #include "vtkDomainsChemistryModule.h"
69 void UseBallAndStickSettings();
82 void UseVDWSpheresSettings();
95 void UseLiquoriceStickSettings();
111 void UseFastSettings();
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)
154 vtkGetMacro(AtomicRadiusType,
int);
155 vtkSetMacro(AtomicRadiusType,
int);
156 const char * GetAtomicRadiusTypeAsString();
159 this->SetAtomicRadiusType(CovalentRadius);
163 this->SetAtomicRadiusType(VDWRadius);
167 this->SetAtomicRadiusType(UnitRadius);
171 this->SetAtomicRadiusType(CustomArrayRadius);
181 vtkGetMacro(AtomicRadiusScaleFactor,
float);
182 vtkSetMacro(AtomicRadiusScaleFactor,
float);
190 vtkGetMacro(UseMultiCylindersForBonds,
bool);
191 vtkSetMacro(UseMultiCylindersForBonds,
bool);
192 vtkBooleanMacro(UseMultiCylindersForBonds,
bool);
211 vtkGetMacro(BondColorMode,
int);
212 vtkSetMacro(BondColorMode,
int);
213 const char * GetBondColorModeAsString();
216 this->SetBondColorMode(SingleColor);
220 this->SetBondColorMode(DiscreteByAtom);
229 vtkGetVector3Macro(BondColor,
unsigned char);
230 vtkSetVector3Macro(BondColor,
unsigned char);
237 vtkGetMacro(BondRadius,
float);
238 vtkSetMacro(BondRadius,
float);
246 vtkGetVector3Macro(LatticeColor,
unsigned char)
247 vtkSetVector3Macro(LatticeColor,
unsigned char)
255 virtual void GetSelectedAtomsAndBonds(
vtkSelection *selection,
261 this->GetSelectedAtomsAndBonds(selection, atomIds,
nullptr);
266 this->GetSelectedAtomsAndBonds(selection,
nullptr, bondIds);
303 unsigned char BondColor[3];
322 virtual void UpdateGlyphPolyData();
323 virtual void UpdateAtomGlyphPolyData();
324 virtual void UpdateBondGlyphPolyData();
335 unsigned char LatticeColor[3];
338 virtual void UpdateLatticePolyData();
map vtkPolyData to graphics primitives
void SetAtomicRadiusTypeToCovalentRadius()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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,...
vtkNew< vtkPeriodicTable > PeriodicTable
Periodic table for lookups.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void SetAtomicRadiusTypeToVDWRadius()
void SetAtomicRadiusTypeToCustomArrayRadius()
float AtomicRadiusScaleFactor
bool GlyphDataInitialized
data object that represents a "selection" in VTK.
vtkNew< vtkPolyData > BondGlyphPolyData
vtkNew< vtkPolyData > LatticePolyData
Producer for stand-alone data objects.
bool RenderAtoms
Customize atom rendering.
window superclass for vtkRenderWindow
bool UseMultiCylindersForBonds
virtual void GetSelectedBonds(vtkSelection *selection, vtkIdTypeArray *bondIds)
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
vtkNew< vtkPolyData > AtomGlyphPolyData
Cached variables and update methods.
vtkNew< vtkPolyDataMapper > LatticeMapper
vtkNew< vtkTrivialProducer > AtomGlyphPointOutput
create a polygonal sphere centered at the origin
abstract class specifies interface to map data to graphics primitives
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
void SetAtomicRadiusTypeToUnitRadius()
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
class describing a molecule
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Access to information about the elements.
Mapper that draws vtkMolecule objects.
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
vtkNew< vtkGlyph3DMapper > AtomGlyphMapper
Internal mappers.
static vtkAlgorithm * New()
virtual void GetSelectedAtoms(vtkSelection *selection, vtkIdTypeArray *atomIds)
dynamic, self-adjusting array of vtkIdType
abstract specification for renderers
void SetBondColorModeToDiscreteByAtom()
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkNew< vtkTrivialProducer > BondGlyphPointOutput
void GetBounds(double bounds[6]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
bool RenderBonds
Customize bond rendering.
vtkNew< vtkGlyph3DMapper > BondGlyphMapper