DataBoundingBox class
#include <FAST/Data/DataBoundingBox.hpp>
Defines the extent of a spatial data object.
Contents
This 3D BoundingBox class is used to define the extent of a data object, which is used when rendering to determine placement of the view camera
Constructors, destructors, conversion operators
- DataBoundingBox(Vector3f pos, Vector3f size)
- Create a bounding box from an offset pos and size.
- DataBoundingBox(Vector3f size)
- Create bounding box from a size vector, assuming data starts at origo.
- DataBoundingBox(const std::vector<Vector3f>& coordinates)
- Create bounding box from a set of coordinates.
- DataBoundingBox(MatrixXf corners)
- Create bounding box from a 8x3 matrix of corner coordinates.
- DataBoundingBox()
- Create an uninitialized bounding box.
Public functions
- void update(const std::vector<Vector3f>& coordinates)
- Update bounding box from a set of coordinates This will update the existing bounding box, if any of the coordinates are outside the existing bounding box.
- auto getCorners() const -> MatrixXf
- Get bounding box corners.
-
auto getTransformedBoundingBox(Transform::
pointer transform) const -> DataBoundingBox - auto getTransformedBoundingBox(Affine3f transform) const -> DataBoundingBox
- auto isInitialized() const -> bool
Function documentation
fast:: DataBoundingBox:: DataBoundingBox(Vector3f pos,
Vector3f size)
Create a bounding box from an offset pos and size.
| Parameters | |
|---|---|
| pos | offset |
| size | size |
fast:: DataBoundingBox:: DataBoundingBox(Vector3f size)
Create bounding box from a size vector, assuming data starts at origo.
| Parameters | |
|---|---|
| size | size |
fast:: DataBoundingBox:: DataBoundingBox(const std::vector<Vector3f>& coordinates)
Create bounding box from a set of coordinates.
| Parameters | |
|---|---|
| coordinates | |
fast:: DataBoundingBox:: DataBoundingBox(MatrixXf corners)
Create bounding box from a 8x3 matrix of corner coordinates.
| Parameters | |
|---|---|
| corners | |
void fast:: DataBoundingBox:: update(const std::vector<Vector3f>& coordinates)
Update bounding box from a set of coordinates This will update the existing bounding box, if any of the coordinates are outside the existing bounding box.
| Parameters | |
|---|---|
| coordinates | |