PLaSK library
|
Lazy cache of object bounding box. More...
#include <plask/geometry/utils.hpp>
Public Types | |
typedef Primitive< dims >::Box | BoundingBoxT |
Public Member Functions | |
const BoundingBoxT & | operator() () |
Get bounding box of connected object. | |
void | onObjectChanged (const GeometryObject::Event &evt) |
Refresh bounding box cache. | |
void | setObject (GeometryObjectD< dims > *object) |
Set object for which bounding box should be cached. | |
void | setObject (GeometryObjectD< dims > &object) |
Set object for which bounding box should be cached. | |
void | setObject (shared_ptr< GeometryObjectD< dims > > object) |
Set object for which bounding box should be cached. | |
GeometryObjectD< dims > * | getObject () const |
Get object for which bounding box is cached. | |
BoundingBoxCache (GeometryObjectD< dims > *object=0) | |
Construct bounding box cache connected with given object. | |
BoundingBoxCache (GeometryObjectD< dims > &object) | |
Construct bounding box cache connected with given object. | |
BoundingBoxCache (shared_ptr< GeometryObjectD< dims > > object) | |
Construct bounding box cache connected with given object. | |
~BoundingBoxCache () | |
Lazy cache of object bounding box.
typedef Primitive<dims>::Box plask::BoundingBoxCache< dims >::BoundingBoxT |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void plask::BoundingBoxCache< dims >::onObjectChanged | ( | const GeometryObject::Event & | evt | ) |
const BoundingBoxCache< dims >::BoundingBoxT & plask::BoundingBoxCache< dims >::operator() | ( | ) |
|
inline |
void plask::BoundingBoxCache< dims >::setObject | ( | GeometryObjectD< dims > * | object | ) |
|
inline |