CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdGsDCRectDouble Class Reference

#include <GsDefs.h>

Public Member Functions

 OdGsDCRectDouble ()
 
 OdGsDCRectDouble (const OdGePoint2d &minPoint, const OdGePoint2d &maxPoint)
 
 OdGsDCRectDouble (double xMin, double xMax, double yMin, double yMax)
 
 OdGsDCRectDouble (const OdGsDCRect &rc)
 
OdGsDCRectDoubleoperator= (const OdGsDCRect &dcRect)
 
bool operator== (const OdGsDCRectDouble &dcRect) const
 
bool operator!= (const OdGsDCRectDouble &dcRect) const
 
OdGsDCRect round () const
 

Public Attributes

OdGePoint2d m_min
 
OdGePoint2d m_max
 

Detailed Description

This class represents 2D device coordinate rectangles. Corresponding C++ library: TD_Gs

Remarks
Device coordinates are measured in pixels from the lower-left corner of the device.
See also
Coordinate Systems.

<group OdGs_Classes>

Definition at line 376 of file GsDefs.h.

Constructor & Destructor Documentation

◆ OdGsDCRectDouble() [1/4]

OdGsDCRectDouble::OdGsDCRectDouble ( )
inline

Default constructor for the OdGsDCRectDouble class.

Definition at line 382 of file GsDefs.h.

◆ OdGsDCRectDouble() [2/4]

OdGsDCRectDouble::OdGsDCRectDouble ( const OdGePoint2d & minPoint,
const OdGePoint2d & maxPoint )
inline

Constructor for the OdGsDCRectDouble class.

Parameters
minPoint[in] Lower-left corner.
maxPoint[in] Upper-right corner.

Definition at line 390 of file GsDefs.h.

◆ OdGsDCRectDouble() [3/4]

OdGsDCRectDouble::OdGsDCRectDouble ( double xMin,
double xMax,
double yMin,
double yMax )
inline

Constructor for the OdGsDCRectDouble class.

Parameters
xMin[in] Minimum X-coordinate.
xMax[in] Maximum X-coordinate.
yMin[in] Minimum Y-coordinate.
yMax[in] Maximum Y-coordinate.

Definition at line 401 of file GsDefs.h.

◆ OdGsDCRectDouble() [4/4]

OdGsDCRectDouble::OdGsDCRectDouble ( const OdGsDCRect & rc)
inlineexplicit

Constructor for the OdGsDCRectDouble class. Creates an instance base on the passed rectangle.

Parameters
rc[in] Rectangle to copy.

Definition at line 409 of file GsDefs.h.

Member Function Documentation

◆ operator!=()

bool OdGsDCRectDouble::operator!= ( const OdGsDCRectDouble & dcRect) const
inline
Remarks
Inequality operator for the OdGsDCRect class. Rectangles are considered not equal if at least one of the following conditions fails: the minimum point of this rectangle equals to the minimum point of the passed rectangle the maximum point of this rectangle equals to the maximum point of the passed rectangle
Parameters
dcRect[in] 2D rectangle to compare.

Definition at line 447 of file GsDefs.h.

◆ operator=()

OdGsDCRectDouble & OdGsDCRectDouble::operator= ( const OdGsDCRect & dcRect)
inline

Assignment operator for the OdGsDCRectDouble class. Assigns the passed rectangle.

Parameters
dcRect[in] Rectangle to assign.

Definition at line 417 of file GsDefs.h.

◆ operator==()

bool OdGsDCRectDouble::operator== ( const OdGsDCRectDouble & dcRect) const
inline
Remarks
Equality operator for the OdGsDCRectDouble class. Rectangles are considered equal if: the minimum point of this rectangle equals to the minimum point of the passed rectangle the maximum point of this rectangle equals to the maximum point of the passed rectangle
Parameters
dcPoint[in] 2D rectangle to compare.

Definition at line 434 of file GsDefs.h.

◆ round()

OdGsDCRect OdGsDCRectDouble::round ( ) const
inline
Remarks
Rounds coordinate values of the minimum and maximum points.

Definition at line 455 of file GsDefs.h.

Member Data Documentation

◆ m_max

OdGePoint2d OdGsDCRectDouble::m_max

Maximum point.

Definition at line 466 of file GsDefs.h.

◆ m_min

OdGePoint2d OdGsDCRectDouble::m_min

Minimum point.

Definition at line 464 of file GsDefs.h.


The documentation for this class was generated from the following file: