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);
155 vtkGetMacro(AtomicRadiusType,
int);
156 vtkSetMacro(AtomicRadiusType,
int);
157 const char* GetAtomicRadiusTypeAsString();
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);
205 const char* GetBondColorModeAsString();
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);
262 virtual void GetSelectedAtomsAndBonds(
266 this->GetSelectedAtomsAndBonds(selection, atomIds,
nullptr);
270 this->GetSelectedAtomsAndBonds(selection,
nullptr, bondIds);
291 vtkGetStringMacro(AtomicRadiusArrayName);
292 vtkSetStringMacro(AtomicRadiusArrayName);
299 virtual void SetMapScalars(
bool map);
319 unsigned char AtomColor[3];
330 unsigned char BondColor[3];
349 virtual void UpdateGlyphPolyData();
350 virtual void UpdateAtomGlyphPolyData();
351 virtual void UpdateBondGlyphPolyData();
362 unsigned char LatticeColor[3];
365 virtual void UpdateLatticePolyData();
Access to information about the elements.
represents an object (geometry & properties) in a rendered scene
vtkNew< vtkGlyph3DMapper > BondGlyphMapper
Internal mappers.
bool RenderBonds
Customize bond rendering.
vtkNew< vtkPeriodicTable > PeriodicTable
Periodic table for lookups.
bool GetSupportsSelection() override
Reimplemented from base class.
class describing a molecule
char * AtomicRadiusArrayName
Customize atom rendering.
float AtomicRadiusScaleFactor
Customize atom rendering.
bool GlyphDataInitialized
Cached variables and update methods.
void SetAtomicRadiusTypeToCovalentRadius()
Get/Set the type of radius used to generate the atoms.
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.
vtkNew< vtkPolyData > LatticePolyData
abstract specification for renderers
vtkNew< vtkPolyData > AtomGlyphPolyData
Cached variables and update methods.
data object that represents a "selection" in VTK.
dynamic, self-adjusting array of vtkIdType
bool RenderAtoms
Customize atom rendering.
concrete dataset represents vertices, lines, polygons, and triangle strips
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.
int AtomColorMode
Customize atom rendering.
Mapper that draws vtkMolecule objects.
int AtomicRadiusType
Customize atom rendering.
window superclass for vtkRenderWindow
create a polygonal sphere centered at the origin
vtkNew< vtkPolyData > BondGlyphPolyData
Cached variables and update methods.
Producer for stand-alone data objects.
vtkNew< vtkPolyDataMapper > LatticeMapper
a simple class to control print indentation
vtkNew< vtkTrivialProducer > AtomGlyphPointOutput
Cached variables and update methods.
vtkNew< vtkGlyph3DMapper > AtomGlyphMapper
Internal mappers.
void SetAtomicRadiusTypeToUnitRadius()
Get/Set the type of radius used to generate the atoms.
virtual double * GetBounds()=0
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkNew< vtkTrivialProducer > BondGlyphPointOutput
Cached variables and update methods.
abstract class specifies interface to map data to graphics primitives
vtkPeriodicTable * GetPeriodicTable()
Accessor to internal structure.
map vtkPolyData to graphics primitives
void SetBondColorModeToDiscreteByAtom()
Get/Set the method by which bonds are colored.
float BondRadius
Customize bond rendering.
virtual void GetSelectedAtoms(vtkSelection *selection, vtkIdTypeArray *atomIds)
Extract the ids atoms and/or bonds rendered by this molecule from a vtkSelection object.
static vtkAlgorithm * New()
int BondColorMode
Customize bond rendering.
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
void SetBondColorModeToSingleColor()
Get/Set the method by which bonds are colored.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
void GetBounds(double bounds[6]) override
Reimplemented from base class.