source
Remoting
Views
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
26
#include "
vtkSMPVRepresentationProxy.h
"
27
28
#include <map>
// for std::map
29
30
struct
MapperParametersPreset
31
{
32
bool
RenderAtoms
;
33
bool
RenderBonds
;
34
int
AtomicRadiusType
;
35
double
AtomicRadiusFactor
;
36
bool
UseMultiCylindersForBonds
;
37
double
BondRadius
;
38
bool
UseAtomColorForBonds
;
39
std::string
Name
;
40
std::string
DisplayName
;
41
42
bool
IsSimilar
(
const
MapperParametersPreset
& p)
const
;
43
};
44
45
class
VTKREMOTINGVIEWS_EXPORT
vtkSMPVMoleculeRepresentationProxy
:
public
vtkSMPVRepresentationProxy
46
{
47
public
:
48
static
vtkSMPVMoleculeRepresentationProxy
*
New
();
49
vtkTypeMacro(
vtkSMPVMoleculeRepresentationProxy
,
vtkSMPVRepresentationProxy
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
51
52
enum
Preset
53
{
54
None = 0,
55
BallAndStick
,
56
Liquorice
,
57
VanDerWaals
,
58
Fast
,
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
:
86
vtkSMPVMoleculeRepresentationProxy
();
87
~
vtkSMPVMoleculeRepresentationProxy
()
override
=
default
;
88
89
private
:
90
vtkSMPVMoleculeRepresentationProxy
(
const
vtkSMPVMoleculeRepresentationProxy
&) =
delete
;
91
void
operator=(
const
vtkSMPVMoleculeRepresentationProxy
&) =
delete
;
92
93
std::map<int, MapperParametersPreset> Presets;
94
};
95
96
#endif
MapperParametersPreset::IsSimilar
bool IsSimilar(const MapperParametersPreset &p) const
vtkSMPVMoleculeRepresentationProxy::BallAndStick
Definition:
vtkSMPVMoleculeRepresentationProxy.h:55
MapperParametersPreset::RenderBonds
bool RenderBonds
Definition:
vtkSMPVMoleculeRepresentationProxy.h:33
vtkSMPVRepresentationProxy
representation for "Render View" like views in ParaView.
Definition:
vtkSMPVRepresentationProxy.h:41
MapperParametersPreset::AtomicRadiusFactor
double AtomicRadiusFactor
Definition:
vtkSMPVMoleculeRepresentationProxy.h:35
MapperParametersPreset::AtomicRadiusType
int AtomicRadiusType
Definition:
vtkSMPVMoleculeRepresentationProxy.h:34
vtkSMPVRepresentationProxy::New
static vtkSMPVRepresentationProxy * New()
vtkSMPVMoleculeRepresentationProxy::Preset
Preset
Definition:
vtkSMPVMoleculeRepresentationProxy.h:52
vtkSMPVMoleculeRepresentationProxy::VanDerWaals
Definition:
vtkSMPVMoleculeRepresentationProxy.h:57
vtkSMPVRepresentationProxy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMPVMoleculeRepresentationProxy::Fast
Definition:
vtkSMPVMoleculeRepresentationProxy.h:58
MapperParametersPreset::UseAtomColorForBonds
bool UseAtomColorForBonds
Definition:
vtkSMPVMoleculeRepresentationProxy.h:38
vtkIndent
MapperParametersPreset
Definition:
vtkSMPVMoleculeRepresentationProxy.h:30
vtkSMPVRepresentationProxy.h
MapperParametersPreset::UseMultiCylindersForBonds
bool UseMultiCylindersForBonds
Definition:
vtkSMPVMoleculeRepresentationProxy.h:36
MapperParametersPreset::DisplayName
std::string DisplayName
Definition:
vtkSMPVMoleculeRepresentationProxy.h:40
MapperParametersPreset::Name
std::string Name
Definition:
vtkSMPVMoleculeRepresentationProxy.h:39
MapperParametersPreset::RenderAtoms
bool RenderAtoms
Definition:
vtkSMPVMoleculeRepresentationProxy.h:32
MapperParametersPreset::BondRadius
double BondRadius
Definition:
vtkSMPVMoleculeRepresentationProxy.h:37
vtkSMPVMoleculeRepresentationProxy
vtkSMPVMoleculeRepresentationProxy is a representation proxy used for molecules.
Definition:
vtkSMPVMoleculeRepresentationProxy.h:45
vtkSMPVMoleculeRepresentationProxy::Liquorice
Definition:
vtkSMPVMoleculeRepresentationProxy.h:56
Generated by
1.8.15 on Tue Feb 18 2020