Cortex  10.0.0-a4
Public Types | Static Public Member Functions | List of all members
IECore::BoxTraits< T > Struct Template Reference

#include <BoxTraits.h>

Public Types

typedef BoxTypeTraits< T >::BaseType BaseType
 

Static Public Member Functions

static T create (const BaseType &min, const BaseType &max)
 Create a box from the minimum and maximum corner points.
 
static T create ()
 Create an empty box.
 
static BaseType min (const T &box)
 Return the box's minimum corner point.
 
static BaseType max (const T &box)
 Return the box's maximum corner point.
 
static void setMin (T &box, const BaseType &p)
 
static void setMax (T &box, const BaseType &p)
 
static bool isEmpty (const T &box)
 Return true if the box is considered to be empty.
 
static void makeEmpty (T &box)
 Modify the box such that it is considered to be empty.
 

Detailed Description

template<typename T>
struct IECore::BoxTraits< T >

The BoxTraits struct provides a means of using different box classes within templated code. The default implementation is compatible with the Imath library's Box classes.


The documentation for this struct was generated from the following file: