CFx SDK Documentation 2024 SP0
|
#include <GsDefs.h>
Public Types | |
enum | NullFlag { Null } |
Public Member Functions | |
OdGsDCRect () | |
OdGsDCRect (const OdGsDCPoint &minPoint, const OdGsDCPoint &maxPoint) | |
OdGsDCRect (long xMin, long xMax, long yMin, long yMax) | |
OdGsDCRect (NullFlag) | |
OdGsDCRect & | operator= (const OdGsDCRect &dcRect) |
void | operator|= (const OdGsDCRect &dcRect) |
void | operator&= (const OdGsDCRect &dcRect) |
bool | operator== (const OdGsDCRect &dcRect) const |
bool | operator!= (const OdGsDCRect &dcRect) const |
void | set_null () |
bool | is_null () const |
bool | within (const OdGsDCRect &dcRect) const |
void | offset (long x, long y) |
void | intersectWith (const OdGsDCRect &dcRect, bool bValidate=true) |
void | normalize () |
bool | isDisjoint (const OdGsDCRect &r) const |
Public Attributes | |
OdGsDCPoint | m_min |
OdGsDCPoint | m_max |
This class represents 2D device coordinate rectangles. Corresponding C++ library: TD_Gs
<group OdGs_Classes>
enum OdGsDCRect::NullFlag |
|
inline |
Default constructor for the OdGsDCRect class.
|
inline |
Constructor for the OdGsDCRect class.
minPoint | [in] Lower-left corner. |
maxPoint | [in] Upper-right corner. |
|
inline |
Constructor for the OdGsDCRect class.
xMin | [in] Minimum X-coordinate. |
xMax | [in] Maximum X-coordinate. |
yMin | [in] Minimum Y-coordinate. |
yMax | [in] Maximum Y-coordinate. |
|
inline |
Constructor for the OdGsDCRect class. Creates a null rectangle.
|
inline |
Makes a new rectangle as a result of intersection between this rectangle and the passed rectangle.
dcRect | [in] Rectangle to intersect with. |
bValidate | [in] Validates the new rectangle. If set to true, the new rectangle is guarantied to be valid or null. |
|
inline |
|
inline |
|
inline |
|
inline |
Moves this rectangle in the provided direction.
x | [in] Number of pixels to move by x-axis. Negative value moves rectangle in the opposite direction of the positive x-axis. |
y | [in] Number of pixels to move by y-axis. Negative value moves rectangle in the opposite direction of the positive y-axis. |
|
inline |
dcRect | [in] 2D rectangle to compare. |
|
inline |
Assignment by bitwise AND operator for the OdGsDCRect class. The greater values for coordinates are assigned to the minimum point while the minor values are assigned to the maximum point. New rectangle is result of intersection between this rectangle and the passed rectangle.
dcRect | [in] Rectangle, points of which are assigned, if necessary. |
|
inline |
Assignment operator for the OdGsDCRect class. Assigns the passed rectangle.
dcRect | [in] Minimum X-coordinate. |
|
inline |
dcPoint | [in] 2D rectangle to compare. |
|
inline |
Assignment by bitwise OR operator for the OdGsDCRect class. The minor values for coordinates are assigned to the minimum point while the greater values are assigned to the maximum point. As result, rectangle is extended.
dcRect | [in] Rectangle, points of which are assigned, if necessary. |
|
inline |
|
inline |
Checks whether this rectangle object is inside the specified rectangle object.
dcRect | [in] Any display coordinate rectangle. |
OdGsDCPoint OdGsDCRect::m_max |
OdGsDCPoint OdGsDCRect::m_min |