CFx SDK Documentation
2020SP3
|
#include <GeInterval.h>
Public Member Functions | |
OdGeInterval (double tol=1.e-12) | |
OdGeInterval (double lower, double upper, double tol=1.e-12) | |
OdGeInterval (bool boundedBelow, double bound, double tol=1.e-12) | |
~OdGeInterval () | |
double | lowerBound () const |
double | upperBound () const |
double | element () const |
void | getBounds (double &lower, double &upper) const |
double | length () const |
double | tolerance () const |
OdGeInterval & | set (double lower, double upper) |
OdGeInterval & | set (bool boundedBelow, double bound) |
OdGeInterval & | set () |
OdGeInterval & | setUpper (double upper) |
OdGeInterval & | setLower (double lower) |
OdGeInterval & | setTolerance (double tol) |
void | getMerge (const OdGeInterval &otherInterval, OdGeInterval &result) const |
int | subtract (const OdGeInterval &otherInterval, OdGeInterval &lInterval, OdGeInterval &rInterval) const |
bool | intersectWith (const OdGeInterval &otherInterval, OdGeInterval &result) const |
bool | isBounded () const |
bool | isBoundedAbove () const |
bool | isBoundedBelow () const |
bool | isUnBounded () const |
bool | isSingleton () const |
bool | isDisjoint (const OdGeInterval &otherInterval) const |
bool | contains (const OdGeInterval &otherInterval) const |
bool | contains (double value) const |
bool | isContinuousAtUpper (const OdGeInterval &otherInterval) const |
bool | isOverlapAtUpper (const OdGeInterval &otherInterval, OdGeInterval &overlap) const |
bool | operator== (const OdGeInterval &otherInterval) const |
bool | operator!= (const OdGeInterval &otherInterval) const |
bool | isEqualAtUpper (const OdGeInterval &otherInterval) const |
bool | isEqualAtUpper (double value) const |
bool | isEqualAtLower (const OdGeInterval &otherInterval) const |
bool | isEqualAtLower (double value) const |
bool | isPeriodicallyOn (double period, double &value) |
bool | operator> (double value) const |
bool | operator> (const OdGeInterval &otherInterval) const |
bool | operator>= (double value) const |
bool | operator>= (const OdGeInterval &otherInterval) const |
bool | operator< (double value) const |
bool | operator< (const OdGeInterval &otherInterval) const |
bool | operator<= (double value) const |
bool | operator<= (const OdGeInterval &otherInterval) const |
Friends | |
bool | operator> (double value, const OdGeInterval &interval) |
bool | operator>= (double value, const OdGeInterval &interval) |
bool | operator< (double value, const OdGeInterval &interval) |
bool | operator<= (double value, const OdGeInterval &interval) |
This class represents a finite, infinite, or semi-infinite interval as the real axis.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 39 of file GeInterval.h.
OdGeInterval::OdGeInterval | ( | double | tol = 1.e-12 | ) |
lower | [in] Lower bound. |
upper | [in] Upper bound. |
tol | [in] Boundary tolerance. |
boundedBelow | [in] Determines if the interval is bounded below. |
bound | [in] Specifies a lower and upper bounds if boundedBelow is true, or only an upper bound if it is false. |
OdGeInterval::OdGeInterval | ( | double | lower, |
double | upper, | ||
double | tol = 1.e-12 |
||
) |
OdGeInterval::OdGeInterval | ( | bool | boundedBelow, |
double | bound, | ||
double | tol = 1.e-12 |
||
) |
OdGeInterval::~OdGeInterval | ( | ) |
bool OdGeInterval::contains | ( | const OdGeInterval & | otherInterval | ) | const |
Returns true if and only if this interval contains the specified value or Interval.
otherInterval | [in] The Interval to be tested. |
value | [in] The value to be tested. |
bool OdGeInterval::contains | ( | double | value | ) | const |
double OdGeInterval::element | ( | ) | const |
Returns a point on this interval.
void OdGeInterval::getBounds | ( | double & | lower, |
double & | upper | ||
) | const |
Returns the bounds of this interval.
lower | [out] Receives the Lower bound. |
upper | [out] Receives the Upper bound. |
void OdGeInterval::getMerge | ( | const OdGeInterval & | otherInterval, |
OdGeInterval & | result | ||
) | const |
Returns the smallest interval containing both the specified interval and this interval.
otherInterval | [in] The interval to be merged with this one. |
result | [out] Receives the merged interval. |
bool OdGeInterval::intersectWith | ( | const OdGeInterval & | otherInterval, |
OdGeInterval & | result | ||
) | const |
Intersects the specified interval from this one.
otherInterval | [in] The interval to be intersected. |
result | [out] Receives the intersected interval. |
bool OdGeInterval::isBounded | ( | ) | const |
Returns true if and only if this interval is bounded above and below.
bool OdGeInterval::isBoundedAbove | ( | ) | const |
Returns true if and only if this interval is bounded above.
bool OdGeInterval::isBoundedBelow | ( | ) | const |
Returns true if and only if this interval is bounded below.
bool OdGeInterval::isContinuousAtUpper | ( | const OdGeInterval & | otherInterval | ) | const |
Returns true if and only if the specified Interval is continuous with the upper bound of this Interval.
otherInterval | [in] The Interval to be tested. |
bool OdGeInterval::isDisjoint | ( | const OdGeInterval & | otherInterval | ) | const |
Returns true if and only if the specified interval is disjoint from this interval.
otherInterval | [in] The interval to be tested. |
bool OdGeInterval::isEqualAtLower | ( | const OdGeInterval & | otherInterval | ) | const |
Returns true if and only if lower bounds of the specified Interval and this Interval are equal.
otherInterval | [in] The Interval to be tested. |
bool OdGeInterval::isEqualAtLower | ( | double | value | ) | const |
Returns true if and only if lower bounds of the specified Interval and this Interval are equal.
value | [in] The value to be tested. |
bool OdGeInterval::isEqualAtUpper | ( | const OdGeInterval & | otherInterval | ) | const |
Returns true if and only if upper bounds of the specified Interval and this Interval are equal.
Returns true if and only if
otherInterval | [in] The Interval to be tested. |
bool OdGeInterval::isEqualAtUpper | ( | double | value | ) | const |
Returns true if and only if upper bounds of the specified Interval and this Interval are equal.
Returns true if and only if
value | [in] The value to be tested. |
bool OdGeInterval::isOverlapAtUpper | ( | const OdGeInterval & | otherInterval, |
OdGeInterval & | overlap | ||
) | const |
Returns true if and only if the specified Interval and this Interval overlap at the upper bound of this Interval.
If all these conditions are met, this function returns the intersection of the Intervals.
otherInterval | [in] The Interval to be tested. |
overlap | [out] Receives the overlap of the Intervals. |
bool OdGeInterval::isPeriodicallyOn | ( | double | period, |
double & | value | ||
) |
Returns true if and only if the specified value is periodically on this Interval.
value + N * period
is on this Interval. If so, returns that value.
period | [in] Period. |
value | [in/out] Value. |
bool OdGeInterval::isSingleton | ( | ) | const |
Returns true if and only if this interval object is a singleton.
bool OdGeInterval::isUnBounded | ( | ) | const |
Returns true if and only if this interval is unbounded above or below.
double OdGeInterval::length | ( | ) | const |
Returns the length of this interval.
double OdGeInterval::lowerBound | ( | ) | const |
Returns the lower bound of this interval.
bool OdGeInterval::operator!= | ( | const OdGeInterval & | otherInterval | ) | const |
bool OdGeInterval::operator< | ( | const OdGeInterval & | otherInterval | ) | const |
bool OdGeInterval::operator< | ( | double | value | ) | const |
bool OdGeInterval::operator<= | ( | const OdGeInterval & | otherInterval | ) | const |
bool OdGeInterval::operator<= | ( | double | value | ) | const |
bool OdGeInterval::operator== | ( | const OdGeInterval & | otherInterval | ) | const |
bool OdGeInterval::operator> | ( | const OdGeInterval & | otherInterval | ) | const |
bool OdGeInterval::operator> | ( | double | value | ) | const |
bool OdGeInterval::operator>= | ( | const OdGeInterval & | otherInterval | ) | const |
bool OdGeInterval::operator>= | ( | double | value | ) | const |
OdGeInterval& OdGeInterval::set | ( | ) |
Unbounds this interval.
OdGeInterval& OdGeInterval::set | ( | bool | boundedBelow, |
double | bound | ||
) |
Sets the parameters for this interval according to the arguments.
boundedBelow | [in] Determines if bound specifies a lower or an upper bound. |
bound | [in] Specifies a lower bound if boundedBelow is true, or an upper bound if it is false. |
OdGeInterval& OdGeInterval::set | ( | double | lower, |
double | upper | ||
) |
Sets the parameters for this interval according to the arguments.
lower | [in] Lower bound. |
upper | [in] Upper bound. |
OdGeInterval& OdGeInterval::setLower | ( | double | lower | ) |
Sets the lower bound for this interval.
lower | [in] Lower bound. |
OdGeInterval& OdGeInterval::setTolerance | ( | double | tol | ) |
Sets the boundary tolerance for this interval.
tol | [in] Boundary tolerance. |
OdGeInterval& OdGeInterval::setUpper | ( | double | upper | ) |
Sets the upper bound for this interval.
upper | [in] Upper bound. |
int OdGeInterval::subtract | ( | const OdGeInterval & | otherInterval, |
OdGeInterval & | lInterval, | ||
OdGeInterval & | rInterval | ||
) | const |
Subtracts the specified interval from this interval.
otherInterval | [in] The interval to be subtracted from this one. |
lInterval | [out] Receives the Left (or only) interval. |
rInterval | [out] Receives the right interval. |
double OdGeInterval::tolerance | ( | ) | const |
Returns the boundary tolerance for this interval.
double OdGeInterval::upperBound | ( | ) | const |
Returns the upper bound of this interval.
|
friend |
|
friend |
|
friend |
|
friend |