vtkSMPVMoleculeRepresentationProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkSMPVMoleculeRepresentationProxy_h
11 #define vtkSMPVMoleculeRepresentationProxy_h
12 
13 #include "vtkRemotingViewsModule.h" //needed for exports
15 
16 #include <map> // for std::map
17 
19 {
25  double BondRadius;
27  std::string Name;
28  std::string DisplayName;
29 
30  bool IsSimilar(const MapperParametersPreset& p) const;
31 };
32 
33 class VTKREMOTINGVIEWS_EXPORT vtkSMPVMoleculeRepresentationProxy : public vtkSMPVRepresentationProxy
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
40  enum Preset
41  {
42  None = 0,
47  NbOfPresets
48  };
49 
51 
54  void SetPreset(int preset);
55  void SetPreset(const char* name);
57 
61  const char* GetPresetName(int preset);
62 
66  const char* GetPresetDisplayName(int preset);
67 
71  int GetCurrentPreset();
72 
73 protected:
75  ~vtkSMPVMoleculeRepresentationProxy() override = default;
76 
77 private:
79  void operator=(const vtkSMPVMoleculeRepresentationProxy&) = delete;
80 
81  std::map<int, MapperParametersPreset> Presets;
82 };
83 
84 #endif
MapperParametersPreset::RenderBonds
bool RenderBonds
Definition: vtkSMPVMoleculeRepresentationProxy.h:21
MapperParametersPreset::AtomicRadiusType
int AtomicRadiusType
Definition: vtkSMPVMoleculeRepresentationProxy.h:22
MapperParametersPreset::RenderAtoms
bool RenderAtoms
Definition: vtkSMPVMoleculeRepresentationProxy.h:20
MapperParametersPreset::AtomicRadiusFactor
double AtomicRadiusFactor
Definition: vtkSMPVMoleculeRepresentationProxy.h:23
MapperParametersPreset::IsSimilar
bool IsSimilar(const MapperParametersPreset &p) const
vtkSMPVMoleculeRepresentationProxy::BallAndStick
@ BallAndStick
Definition: vtkSMPVMoleculeRepresentationProxy.h:43
vtkSMPVMoleculeRepresentationProxy::Liquorice
@ Liquorice
Definition: vtkSMPVMoleculeRepresentationProxy.h:44
vtkSMPVMoleculeRepresentationProxy::VanDerWaals
@ VanDerWaals
Definition: vtkSMPVMoleculeRepresentationProxy.h:45
MapperParametersPreset
Definition: vtkSMPVMoleculeRepresentationProxy.h:18
MapperParametersPreset::UseAtomColorForBonds
bool UseAtomColorForBonds
Definition: vtkSMPVMoleculeRepresentationProxy.h:26
vtkIndent
vtkSMPVRepresentationProxy.h
vtkSMPVMoleculeRepresentationProxy
vtkSMPVMoleculeRepresentationProxy is a representation proxy used for molecules.
Definition: vtkSMPVMoleculeRepresentationProxy.h:33
vtkSMPVMoleculeRepresentationProxy::Fast
@ Fast
Definition: vtkSMPVMoleculeRepresentationProxy.h:46
vtkSMPVRepresentationProxy
representation for "Render View" like views in ParaView.
Definition: vtkSMPVRepresentationProxy.h:33
MapperParametersPreset::DisplayName
std::string DisplayName
Definition: vtkSMPVMoleculeRepresentationProxy.h:28
vtkSMPVMoleculeRepresentationProxy::Preset
Preset
Definition: vtkSMPVMoleculeRepresentationProxy.h:40
MapperParametersPreset::BondRadius
double BondRadius
Definition: vtkSMPVMoleculeRepresentationProxy.h:25
MapperParametersPreset::UseMultiCylindersForBonds
bool UseMultiCylindersForBonds
Definition: vtkSMPVMoleculeRepresentationProxy.h:24
vtkSMPVRepresentationProxy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMPVRepresentationProxy::New
static vtkSMPVRepresentationProxy * New()
MapperParametersPreset::Name
std::string Name
Definition: vtkSMPVMoleculeRepresentationProxy.h:27