IMP logo
IMP Reference Guide  develop.7400db2aee,2024/11/23
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 
15 IMPDISPLAY_BEGIN_NAMESPACE
16 
17 /** \brief Group of set of geometric elements
18  */
19 class 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;
30 };
31 
32 IMPDISPLAY_END_NAMESPACE
33 
34 #endif /* IMPDISPLAY_GEOMETRY_SET_H */
Represent an RGB color.
Definition: Color.h:25
The base class for geometry.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
macros for display classes
Implement geometry for the basic shapes from IMP.algebra.
virtual Geometries get_components() const
Return a set of geometry composing this one.
Group of set of geometric elements.
Definition: GeometrySet.h:19