#include <Tools2D.h>
Public Member Functions | |
void | Add (const Vector2d &v) |
BoundBox2d (const BoundBox2d &rclBB) | |
BoundBox2d (double fX1, double fY1, double fX2, double fY2) | |
BoundBox2d (void) | |
bool | Contains (const Vector2d &v) const |
bool | Contains (const Vector2d &v, double tolerance) const |
Vector2d | GetCenter (void) const |
double | Height (void) 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 (void) |
BoundBox2d & | operator= (const BoundBox2d &rclBB) |
bool | operator== (const BoundBox2d &rclBB) const |
void | SetVoid (void) |
double | Width (void) const |
Public Attributes | |
double | MaxX |
double | MaxY |
double | MinX |
double | MinY |
Detailed Description
Two dimensional bounding box.
Constructor & Destructor Documentation
◆ BoundBox2d() [1/3]
Base::BoundBox2d::BoundBox2d | ( | void | ) |
◆ BoundBox2d() [2/3]
Base::BoundBox2d::BoundBox2d | ( | const BoundBox2d & | rclBB | ) |
References Base::Vector2d::IsEqual(), MaxX, MaxY, MinX, and MinY.
◆ BoundBox2d() [3/3]
Base::BoundBox2d::BoundBox2d | ( | double | fX1, |
double | fY1, | ||
double | fX2, | ||
double | fY2 | ||
) |
Member Function Documentation
◆ Add()
void Base::BoundBox2d::Add | ( | const Vector2d & | v | ) |
Referenced by Reen::ParameterCorrection::GetUVParameters().
◆ Contains() [1/2]
Referenced by MeshCore::MeshAlgorithm::CheckFacets(), Intersect(), and TechDraw::DrawUtil::mergeBoundedPoint().
◆ Contains() [2/2]
◆ GetCenter()
Vector2d Base::BoundBox2d::GetCenter | ( | void | ) | const |
Referenced by TechDrawGui::QGIViewDimension::constructDimensionArc(), TechDrawGui::QGIViewDimension::constructDimensionLine(), TechDrawGui::QGIViewDimension::drawAngle(), TechDrawGui::QGIViewDimension::drawDiameter(), TechDrawGui::QGIViewDimension::drawDistanceExecutive(), TechDrawGui::QGIViewDimension::drawRadiusExecutive(), TechDrawGui::QGIViewDimension::getAsmeRefJointPoint(), and TechDrawGui::QGIViewDimension::getAsmeRefOutsetPoint().
◆ Height()
double Base::BoundBox2d::Height | ( | void | ) | const |
◆ Intersect() [1/3]
◆ Intersect() [2/3]
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::MeshTrimming::CheckFacets(), MeshCore::MeshAlgorithm::CheckFacets(), and Intersect().
◆ Intersect() [3/3]
References Base::Line2d::clV1, Base::Line2d::clV2, Contains(), Base::Polygon2d::Contains(), Base::Polygon2d::GetCtVectors(), Intersect(), MaxX, MaxY, MinX, and MinY.
◆ IsEqual()
bool Base::BoundBox2d::IsEqual | ( | const BoundBox2d & | b, |
double | tolerance | ||
) | const |
◆ IsValid()
◆ operator=()
BoundBox2d & Base::BoundBox2d::operator= | ( | const BoundBox2d & | rclBB | ) |
◆ operator==()
bool Base::BoundBox2d::operator== | ( | const BoundBox2d & | rclBB | ) | const |
◆ SetVoid()
void Base::BoundBox2d::SetVoid | ( | void | ) |
◆ Width()
double Base::BoundBox2d::Width | ( | void | ) | const |
Member Data Documentation
◆ MaxX
double Base::BoundBox2d::MaxX |
Referenced by BoundBox2d(), Base::Line2d::CalcBoundBox(), Base::Polygon2d::CalcBoundBox(), Base::Line2d::Contains(), TechDrawGui::QGIViewDimension::getAsmeRefJointPoint(), TechDrawGui::QGIViewDimension::getAsmeRefOutsetPoint(), TechDrawGui::QGIViewDimension::getIsoRefOutsetPoint(), Reen::ParameterCorrection::GetUVParameters(), Intersect(), IsValid(), and PartGui::ViewProvider2DObject::updateData().
◆ MaxY
double Base::BoundBox2d::MaxY |
◆ MinX
double Base::BoundBox2d::MinX |
Referenced by BoundBox2d(), Base::Line2d::CalcBoundBox(), Base::Polygon2d::CalcBoundBox(), Base::Line2d::Contains(), TechDrawGui::QGIViewDimension::getAsmeRefJointPoint(), TechDrawGui::QGIViewDimension::getAsmeRefOutsetPoint(), TechDrawGui::QGIViewDimension::getIsoRefOutsetPoint(), Reen::ParameterCorrection::GetUVParameters(), Intersect(), IsValid(), and PartGui::ViewProvider2DObject::updateData().
◆ MinY
double Base::BoundBox2d::MinY |
The documentation for this class was generated from the following files:
- src/Base/Tools2D.h
- src/Base/Tools2D.cpp