Remoting
Views
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
14
#include "
vtkSMPVRepresentationProxy.h
"
15
16
#include <map>
// for std::map
17
18
struct
MapperParametersPreset
19
{
20
bool
RenderAtoms
;
21
bool
RenderBonds
;
22
int
AtomicRadiusType
;
23
double
AtomicRadiusFactor
;
24
bool
UseMultiCylindersForBonds
;
25
double
BondRadius
;
26
bool
UseAtomColorForBonds
;
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
:
36
static
vtkSMPVMoleculeRepresentationProxy
* New();
37
vtkTypeMacro(
vtkSMPVMoleculeRepresentationProxy
,
vtkSMPVRepresentationProxy
);
38
void
PrintSelf(ostream& os,
vtkIndent
indent)
override
;
39
40
enum
Preset
41
{
42
None = 0,
43
BallAndStick
,
44
Liquorice
,
45
VanDerWaals
,
46
Fast
,
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
:
74
vtkSMPVMoleculeRepresentationProxy
();
75
~
vtkSMPVMoleculeRepresentationProxy
()
override
=
default
;
76
77
private
:
78
vtkSMPVMoleculeRepresentationProxy
(
const
vtkSMPVMoleculeRepresentationProxy
&) =
delete
;
79
void
operator=(
const
vtkSMPVMoleculeRepresentationProxy
&) =
delete
;
80
81
std::map<int, MapperParametersPreset> Presets;
82
};
83
84
#endif
MapperParametersPreset::IsSimilar
bool IsSimilar(const MapperParametersPreset &p) const
vtkSMPVMoleculeRepresentationProxy::BallAndStick
Definition:
vtkSMPVMoleculeRepresentationProxy.h:43
MapperParametersPreset::RenderBonds
bool RenderBonds
Definition:
vtkSMPVMoleculeRepresentationProxy.h:21
VTKREMOTINGVIEWS_EXPORT
#define VTKREMOTINGVIEWS_EXPORT
Definition:
vtkRemotingViewsModule.h:15
vtkSMPVRepresentationProxy
representation for "Render View" like views in ParaView.
Definition:
vtkSMPVRepresentationProxy.h:35
MapperParametersPreset::AtomicRadiusFactor
double AtomicRadiusFactor
Definition:
vtkSMPVMoleculeRepresentationProxy.h:23
MapperParametersPreset::AtomicRadiusType
int AtomicRadiusType
Definition:
vtkSMPVMoleculeRepresentationProxy.h:22
vtkSMPVMoleculeRepresentationProxy::Preset
Preset
Definition:
vtkSMPVMoleculeRepresentationProxy.h:40
vtkSMPVMoleculeRepresentationProxy::VanDerWaals
Definition:
vtkSMPVMoleculeRepresentationProxy.h:45
vtkSMPVMoleculeRepresentationProxy::Fast
Definition:
vtkSMPVMoleculeRepresentationProxy.h:46
MapperParametersPreset::UseAtomColorForBonds
bool UseAtomColorForBonds
Definition:
vtkSMPVMoleculeRepresentationProxy.h:26
vtkIndent
MapperParametersPreset
Definition:
vtkSMPVMoleculeRepresentationProxy.h:18
vtkRemotingViewsModule.h
vtkSMPVRepresentationProxy.h
MapperParametersPreset::UseMultiCylindersForBonds
bool UseMultiCylindersForBonds
Definition:
vtkSMPVMoleculeRepresentationProxy.h:24
MapperParametersPreset::DisplayName
std::string DisplayName
Definition:
vtkSMPVMoleculeRepresentationProxy.h:28
MapperParametersPreset::Name
std::string Name
Definition:
vtkSMPVMoleculeRepresentationProxy.h:27
MapperParametersPreset::RenderAtoms
bool RenderAtoms
Definition:
vtkSMPVMoleculeRepresentationProxy.h:20
MapperParametersPreset::BondRadius
double BondRadius
Definition:
vtkSMPVMoleculeRepresentationProxy.h:25
vtkSMPVMoleculeRepresentationProxy
vtkSMPVMoleculeRepresentationProxy is a representation proxy used for molecules.
Definition:
vtkSMPVMoleculeRepresentationProxy.h:33
vtkSMPVMoleculeRepresentationProxy::Liquorice
Definition:
vtkSMPVMoleculeRepresentationProxy.h:44
Generated by
1.8.13 on Tue Oct 1 2024