IMP logo
IMP Reference Guide  2.6.1
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. More...
 
#define IMP_AREA_GEOMETRY_METHODS_D(Name, name, area, bounding_box)
 Implement the needed namespace methods for a geometry type. More...
 
#define IMP_LINEAR_GEOMETRY_METHODS(Name, name, bounding_box)
 Implement the needed namespace methods for a geometry type. More...
 
#define IMP_VOLUME_GEOMETRY_METHODS(Name, name, area, volume, bounding_box)
 Implement the needed namespace methods for a geometry type. More...
 
#define IMP_VOLUME_GEOMETRY_METHODS_D(Name, name, area, volume, bounding_box)
 Implement the needed namespace methods for a geometry type. More...
 

Detailed Description

Various important macros for implementing geometry.

Copyright 2007-2016 IMP Inventors. All rights reserved.

Definition in file geometric_primitive_macros.h.

Macro Definition Documentation

#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.

#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.

#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.

#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.

#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.