FormIt C++ API
v23.0.0 (2023.0.0)
|
This is a helper class to find the bounds of the Objects that are visible in the Model. class HistoryBoundsHelper.
#include <historyboundshelper.h>
Public Member Functions | |
HistoryBoundsHelper (size_t nHistoryID, ObjectTypes types=WSM::Utils::ObjectTypes::NONE) | |
This constructor is for all objects in the given history. More... | |
HistoryBoundsHelper (const 1::vector< WSM::GroupInstancePath > &aPaths, ObjectTypes types=WSM::Utils::ObjectTypes::NONE, bool inHCS=false) | |
This constructor is for a vector of valid group instance paths. More... | |
WSM::Interval3d const & | GetBoundsForVisible () |
Returns the bounding box. More... | |
::pair< bool, 1::vector< WSM::Point3d > > | GetBBPointsForVisible () |
Return the 8 bounding box points. More... | |
WSM::Utils::HistoryBoundsHelper::HistoryBoundsHelper | ( | size_t | nHistoryID, |
ObjectTypes | types = WSM::Utils::ObjectTypes::NONE |
||
) |
This constructor is for all objects in the given history.
WSM::Utils::HistoryBoundsHelper::HistoryBoundsHelper | ( | const 1::vector< WSM::GroupInstancePath > & | aPaths, |
ObjectTypes | types = WSM::Utils::ObjectTypes::NONE , |
||
bool | inHCS = false |
||
) |
This constructor is for a vector of valid group instance paths.
If inHCS is false, the bounding box will be in world space. Otherwise it will in the the space of the editing history
::pair<bool, 1::vector<WSM::Point3d> > WSM::Utils::HistoryBoundsHelper::GetBBPointsForVisible | ( | ) |
Return the 8 bounding box points.
WSM::Interval3d const& WSM::Utils::HistoryBoundsHelper::GetBoundsForVisible | ( | ) |
Returns the bounding box.