IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
geometric_primitive_macros.h File Reference

Various important macros for implementing geometry. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IMP_AREA_GEOMETRY_METHODS(Name, name, area, bounding_box)
 Implement the needed namespace methods for a geometry type.
#define IMP_AREA_GEOMETRY_METHODS_D(Name, name, area, bounding_box)
 Implement the needed namespace methods for a geometry type.
#define IMP_LINEAR_GEOMETRY_METHODS(Name, name, bounding_box)
 Implement the needed namespace methods for a geometry type.
#define IMP_VOLUME_GEOMETRY_METHODS(Name, name, area, volume, bounding_box)
 Implement the needed namespace methods for a geometry type.
#define IMP_VOLUME_GEOMETRY_METHODS_D(Name, name, area, volume, bounding_box)
 Implement the needed namespace methods for a geometry type.

Detailed Description

Various important macros for implementing geometry.

Copyright 2007-2022 IMP Inventors. All rights reserved.

Definition in file geometric_primitive_macros.h.

Macro Definition Documentation

◆ IMP_AREA_GEOMETRY_METHODS

#define IMP_AREA_GEOMETRY_METHODS ( Name,
name,
area,
bounding_box )

Implement the needed namespace methods for a geometry type.

These are

The name of the argument is g and the code snippets should return the expected value.

Definition at line 113 of file geometric_primitive_macros.h.

◆ IMP_AREA_GEOMETRY_METHODS_D

#define IMP_AREA_GEOMETRY_METHODS_D ( Name,
name,
area,
bounding_box )

Implement the needed namespace methods for a geometry type.

These are

The name of the argument is g and the code snippets should return the expected value.

Definition at line 134 of file geometric_primitive_macros.h.

◆ IMP_LINEAR_GEOMETRY_METHODS

#define IMP_LINEAR_GEOMETRY_METHODS ( Name,
name,
bounding_box )

Implement the needed namespace methods for a geometry type.

These are

  • IMP::algebra::get_bounding_box()
  • get/set geometry functions

The name should not include the D.

The name of the argument is g and the code snippets should return the expected value.

Definition at line 95 of file geometric_primitive_macros.h.

◆ IMP_VOLUME_GEOMETRY_METHODS

#define IMP_VOLUME_GEOMETRY_METHODS ( Name,
name,
area,
volume,
bounding_box )

Implement the needed namespace methods for a geometry type.

These are

The name of the argument is g and the code snippets should return the expected value.

Definition at line 22 of file geometric_primitive_macros.h.

◆ IMP_VOLUME_GEOMETRY_METHODS_D

#define IMP_VOLUME_GEOMETRY_METHODS_D ( Name,
name,
area,
volume,
bounding_box )

Implement the needed namespace methods for a geometry type.

These are

The name of the argument is g and the code snippets should return the expected value.

Definition at line 46 of file geometric_primitive_macros.h.