vtkSMPVMoleculeRepresentationProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMPVMoleculeRepresentationProxy.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef vtkSMPVMoleculeRepresentationProxy_h
23 #define vtkSMPVMoleculeRepresentationProxy_h
24 
25 #include "vtkRemotingViewsModule.h" //needed for exports
27 
28 #include <map> // for std::map
29 
31 {
37  double BondRadius;
39  std::string Name;
40  std::string DisplayName;
41 
42  bool IsSimilar(const MapperParametersPreset& p) const;
43 };
44 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
52  enum Preset
53  {
54  None = 0,
59  NbOfPresets
60  };
61 
63 
66  void SetPreset(int preset);
67  void SetPreset(const char* name);
69 
73  const char* GetPresetName(int preset);
74 
78  const char* GetPresetDisplayName(int preset);
79 
83  int GetCurrentPreset();
84 
85 protected:
87  ~vtkSMPVMoleculeRepresentationProxy() override = default;
88 
89 private:
91  void operator=(const vtkSMPVMoleculeRepresentationProxy&) = delete;
92 
93  std::map<int, MapperParametersPreset> Presets;
94 };
95 
96 #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.