#include <Tools2D.h>
Public Member Functions | |
void | Add (const Vector2d &v) |
BoundBox2d () | |
BoundBox2d (const BoundBox2d &rclBB) | |
BoundBox2d (double fX1, double fY1, double fX2, double fY2) | |
bool | Contains (const Vector2d &v) const |
bool | Contains (const Vector2d &v, double tolerance) const |
Vector2d | GetCenter () const |
double | Height () const |
bool | Intersect (const BoundBox2d &rclBB) const |
bool | Intersect (const Line2d &rclLine) const |
BOUNDBOX2d. More... | |
bool | Intersect (const Polygon2d &rclPoly) const |
bool | IsEqual (const BoundBox2d &, double tolerance) const |
bool | IsValid () |
BoundBox2d & | operator= (const BoundBox2d &rclBB) |
bool | operator== (const BoundBox2d &rclBB) const |
void | SetVoid () |
double | Width () const |
Public Attributes | |
double | MaxX |
double | MaxY |
double | MinX |
double | MinY |
Two dimensional bounding box.
Base::BoundBox2d::BoundBox2d | ( | const BoundBox2d & | rclBB | ) |
Base::BoundBox2d::BoundBox2d | ( | double | fX1, |
double | fY1, | ||
double | fX2, | ||
double | fY2 | ||
) |
void Base::BoundBox2d::Add | ( | const Vector2d & | v | ) |
References MaxX, MaxY, MinX, and MinY.
Referenced by Reen::ParameterCorrection::GetUVParameters(), and Base::BoundBox3< _Precision >::ProjectBox().
References MaxX, MaxY, MinX, and MinY.
Referenced by MeshCore::MeshAlgorithm::CheckFacets(), Base::Line2d::Contains(), Intersect(), and TechDraw::DrawUtil::mergeBoundedPoint().
References MaxX, MaxY, MinX, MinY, and draftutils.utils::tolerance().
Vector2d Base::BoundBox2d::GetCenter | ( | ) | const |
References MaxX, MaxY, MinX, and MinY.
Referenced by TechDrawGui::QGIViewDimension::constructDimensionArc(), TechDrawGui::QGIViewDimension::constructDimensionLine(), TechDrawGui::QGIViewDimension::drawAngle(), TechDrawGui::QGIViewDimension::drawDiameter(), TechDrawGui::QGIViewDimension::drawDistanceExecutive(), TechDrawGui::QGIViewDimension::drawDistanceOverride(), TechDrawGui::QGIViewDimension::drawRadiusExecutive(), TechDrawGui::QGIViewDimension::getAsmeRefJointPoint(), and TechDrawGui::QGIViewDimension::getAsmeRefOutsetPoint().
double Base::BoundBox2d::Height | ( | ) | const |
Referenced by ArchStructure.CommandStructuralSystem::Activated(), TechDrawGui::QGIViewDimension::drawAngle(), TechDrawGui::QGIViewDimension::drawDiameter(), TechDrawGui::QGIViewDimension::drawDistanceExecutive(), TechDrawGui::QGIViewDimension::drawDistanceOverride(), and TechDrawGui::QGIViewDimension::drawRadiusExecutive().
BOUNDBOX2d.
References Base::Line2d::clV1, Base::Line2d::clV2, Base::Line2d::IntersectAndContain(), MaxX, MaxY, MinX, MinY, Base::Vector2d::x, and Base::Vector2d::y.
Referenced by MeshCore::MeshAlgorithm::CheckFacets(), MeshCore::MeshTrimming::CheckFacets(), and Intersect().
References Base::Line2d::clV1, Base::Line2d::clV2, Base::Polygon2d::Contains(), Contains(), Base::Polygon2d::GetCtVectors(), Intersect(), MaxX, MaxY, MinX, and MinY.
bool Base::BoundBox2d::IsEqual | ( | const BoundBox2d & | b, |
double | tolerance | ||
) | const |
References Base::Vector2d::IsEqual(), MaxX, MaxY, MinX, MinY, and draftutils.utils::tolerance().
BoundBox2d & Base::BoundBox2d::operator= | ( | const BoundBox2d & | rclBB | ) |
bool Base::BoundBox2d::operator== | ( | const BoundBox2d & | rclBB | ) | const |
void Base::BoundBox2d::SetVoid | ( | ) |
References MaxX, MaxY, MinX, and MinY.
Referenced by Base::BoundBox3< _Precision >::ProjectBox().
double Base::BoundBox2d::Width | ( | ) | const |
double Base::BoundBox2d::MaxX |
Referenced by Add(), BoundBox2d(), Base::Line2d::CalcBoundBox(), Base::Polygon2d::CalcBoundBox(), Contains(), TechDrawGui::QGIViewDimension::getAsmeRefJointPoint(), TechDrawGui::QGIViewDimension::getAsmeRefOutsetPoint(), GetCenter(), TechDrawGui::QGIViewDimension::getIsoRefOutsetPoint(), Reen::ParameterCorrection::GetUVParameters(), Base::BoundBox3< _Precision >::Intersect(), Intersect(), IsEqual(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), operator=(), operator==(), SetVoid(), PartGui::ViewProvider2DObjectGrid::updateData(), and Width().
double Base::BoundBox2d::MaxY |
Referenced by Add(), BoundBox2d(), Base::Line2d::CalcBoundBox(), Base::Polygon2d::CalcBoundBox(), Contains(), GetCenter(), Reen::ParameterCorrection::GetUVParameters(), Height(), Base::BoundBox3< _Precision >::Intersect(), Intersect(), IsEqual(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), operator=(), operator==(), SetVoid(), and PartGui::ViewProvider2DObjectGrid::updateData().
double Base::BoundBox2d::MinX |
Referenced by Add(), BoundBox2d(), Base::Line2d::CalcBoundBox(), Base::Polygon2d::CalcBoundBox(), Contains(), TechDrawGui::QGIViewDimension::getAsmeRefJointPoint(), TechDrawGui::QGIViewDimension::getAsmeRefOutsetPoint(), GetCenter(), TechDrawGui::QGIViewDimension::getIsoRefOutsetPoint(), Reen::ParameterCorrection::GetUVParameters(), Base::BoundBox3< _Precision >::Intersect(), Intersect(), IsEqual(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), operator=(), operator==(), SetVoid(), PartGui::ViewProvider2DObjectGrid::updateData(), and Width().
double Base::BoundBox2d::MinY |
Referenced by Add(), BoundBox2d(), Base::Line2d::CalcBoundBox(), Base::Polygon2d::CalcBoundBox(), Contains(), GetCenter(), TechDrawGui::QGIViewDimension::getIsoRefOutsetPoint(), Reen::ParameterCorrection::GetUVParameters(), Height(), Base::BoundBox3< _Precision >::Intersect(), Intersect(), IsEqual(), Base::BoundBox3< _Precision >::IsInBox(), IsValid(), operator=(), operator==(), SetVoid(), and PartGui::ViewProvider2DObjectGrid::updateData().