OpenStructure
Loading...
Searching...
No Matches
connect_renderer_base.hh
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// This file is part of the OpenStructure project <www.openstructure.org>
3//
4// Copyright (C) 2008-2020 by the OpenStructure authors
5//
6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License as published by the Free
8// Software Foundation; either version 3.0 of the License, or (at your option)
9// any later version.
10// This library is distributed in the hope that it will be useful, but WITHOUT
11// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13// details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with this library; if not, write to the Free Software Foundation, Inc.,
17// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18//------------------------------------------------------------------------------
19#ifndef OST_GFX_IMPL_CONNECT_RENDERER_HH
20#define OST_GFX_IMPL_CONNECT_RENDERER_HH
21
25/*
26 Author: Marco Biasini, Ansgar Philippsen
27 */
28namespace ost { namespace gfx { namespace impl {
29
35public:
37
38 virtual void PrepareRendering();
39
41
42 virtual void Apply(const gfx::ByElementColorOp& op);
43 virtual void Apply(const gfx::ByChainColorOp& op);
44 virtual void Apply(const gfx::UniformColorOp& op);
45 virtual void Apply(const gfx::GradientLevelColorOp& op);
46 virtual void Apply(const gfx::EntityViewColorOp& op);
47
48 virtual void PickAtom(const geom::Line3& line, Real line_width,
49 mol::AtomHandle& picked_atom);
50 virtual void Apply(const gfx::MapHandleColorOp& op);
51
52 virtual void PickBond(const geom::Line3& line, Real line_width,
53 mol::BondHandle& picked_bond);
54 virtual void UpdateViews();
55protected:
56 void SetFixedPickRadius(float radius) { pick_radius_=radius;}
57 bool HasFixedPickRadius() const { return pick_radius_!=0.0; }
58 float GetFixedPickRadius() const { return pick_radius_; }
59
60protected:
64};
65
66}}}
67
68#endif
axis-aligned cuboid
virtual void Apply(const gfx::UniformColorOp &op)
virtual void Apply(const gfx::MapHandleColorOp &op)
virtual void PickBond(const geom::Line3 &line, Real line_width, mol::BondHandle &picked_bond)
pick bond
virtual void Apply(const gfx::ByChainColorOp &op)
virtual void Apply(const gfx::EntityViewColorOp &op)
virtual void Apply(const gfx::ByElementColorOp &op)
virtual void UpdateViews()
update views
virtual void Apply(const gfx::GradientLevelColorOp &op)
virtual geom::AlignedCuboid GetBoundingBox() const
virtual void PickAtom(const geom::Line3 &line, Real line_width, mol::AtomHandle &picked_atom)
pick atom
Handle to atom datatype.
#define DLLEXPORT_OST_GFX
float Real
Definition base.hh:44
Definition base.dox:1