IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
GeometrySet.h
Go to the documentation of this file.
1/**
2 * \file IMP/display/GeometrySet.h
3 * \brief Implement geometry for the basic shapes from IMP.algebra.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 */
7
8#ifndef IMPDISPLAY_GEOMETRY_SET_H
9#define IMPDISPLAY_GEOMETRY_SET_H
10
11#include <IMP/display/display_config.h>
12#include "declare_Geometry.h"
13#include "geometry_macros.h"
14
15IMPDISPLAY_BEGIN_NAMESPACE
16
17/** \brief Group of set of geometric elements
18 */
19class IMPDISPLAYEXPORT GeometrySet : public Geometry {
20 Geometries v_;
21
22 public:
23 GeometrySet(const Geometries &v);
24 GeometrySet(const Geometries &v, const Color &c);
25 GeometrySet(const Geometries &v, const std::string n);
26 GeometrySet(const Geometries &v, const Color &c, std::string n);
27 Geometries get_geometry() const { return v_; }
28 virtual IMP::display::Geometries get_components() const override;
29 IMP_OBJECT_METHODS(GeometrySet);
30};
31
32IMPDISPLAY_END_NAMESPACE
33
34#endif /* IMPDISPLAY_GEOMETRY_SET_H */
Represent an RGB color.
Definition Color.h:25
virtual IMP::display::Geometries get_components() const override
Return a set of geometry composing this one.
Implement geometry for the basic shapes from IMP.algebra.
macros for display classes
IMP::Vector< IMP::Pointer< Geometry > > Geometries
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.