8#ifndef IMPDISPLAY_PRIMITIVE_GEOMETRIES_H
9#define IMPDISPLAY_PRIMITIVE_GEOMETRIES_H
11#include <IMP/display/display_config.h>
24#ifdef IMP_DISPLAY_USE_IMP_CGAL
25#include <IMP/cgal/internal/polyhedrons.h>
28IMPDISPLAY_BEGIN_NAMESPACE
59IMP_DISPLAY_GEOMETRY_DECOMPOSABLE_DECL(
65 ReferenceFrameGeometries,
71class IMPDISPLAYEXPORT LabelGeometry :
public Geometry {
78 std::string get_text()
const {
return text_; }
87class IMPDISPLAYEXPORT SurfaceMeshGeometry :
public Geometry {
92 SurfaceMeshGeometry(
const std::pair<algebra::Vector3Ds, Ints> &m,
93 std::string name =
"SurfaceMesh %1%");
98 const Ints &get_faces()
const {
return faces_; }
103#ifdef IMP_DISPLAY_USE_IMP_CGAL
107class IMPDISPLAYEXPORT PlaneGeometry :
public Geometry {
120class IsosurfaceGeometry :
public SurfaceMeshGeometry {
122 template <
int D,
class Storage,
class Value>
124 : SurfaceMeshGeometry(cgal::internal::get_iso_surface(grid, iso),
125 "IsosurfaceGeometry %1%") {}
140class IMPDISPLAYEXPORT SkinSurfaceGeometry :
public SurfaceMeshGeometry {
147IMPDISPLAY_END_NAMESPACE
A bounding box in D dimensions.
Represent a cylinder in 3D.
Simple 3D ellipsoid class.
Simple implementation of segments in 3D.
Represent a triangle in 3D.
An axis-aligned bounding box.
Represent a cylinder in 3D.
Represent an ellipsoid in 3D.
A voxel grid in d-dimensional space.
Simple implementation of segments in 3D.
Represent a triangle in 3D.
virtual IMP::display::Geometries get_components() const override
Return a set of geometry composing this one.
virtual IMP::display::Geometries get_components() const override
Return a set of geometry composing this one.
Display a reference frame.
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
#define IMP_DISPLAY_GEOMETRY_DECL(Name, Names, Type)
Define a geometric object using an IMP::algebra one.
BoundingBoxD< 3 > BoundingBox3D
Typedef for Python.
SphereD< 3 > Sphere3D
Typedef for Python.
IMP::Vector< Sphere3D > Sphere3Ds
IMP::Vector< IMP::Pointer< Geometry > > Geometries
Vector< VectorD< 3 > > Vector3Ds
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
All grids that are in the Python API should be defined here.