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 
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
bool IsSimilar(const MapperParametersPreset &p) const
#define VTKREMOTINGVIEWS_EXPORT
representation for "Render View" like views in ParaView.
vtkSMPVMoleculeRepresentationProxy is a representation proxy used for molecules.