CFx SDK Documentation  2023 SP0
Public Types | Public Member Functions | Public Attributes | List of all members
OdGsDCPoint Class Reference

#include <GsDefs.h>

Public Types

enum  MaxFlag { Maximum }
 
enum  MinFlag { Minimum }
 

Public Member Functions

 OdGsDCPoint ()
 
 OdGsDCPoint (OdInt32 xx, OdInt32 yy)
 
 OdGsDCPoint (MaxFlag)
 
 OdGsDCPoint (MinFlag)
 
void operator= (MaxFlag)
 
void operator= (MinFlag)
 
void operator= (const OdGsDCPoint &dcPoint)
 
bool operator== (const OdGsDCPoint &dcPoint) const
 
bool operator!= (const OdGsDCPoint &dcPoint) const
 
long operator[] (unsigned int i) const
 

Public Attributes

OdInt32 x
 
OdInt32 y
 

Detailed Description

This class represents 2D Device Coordinate points. 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 52 of file GsDefs.h.

Member Enumeration Documentation

◆ MaxFlag

Enumerator
Maximum 

Definition at line 55 of file GsDefs.h.

◆ MinFlag

Enumerator
Minimum 

Definition at line 56 of file GsDefs.h.

Constructor & Destructor Documentation

◆ OdGsDCPoint() [1/4]

OdGsDCPoint::OdGsDCPoint ( )
inline
Parameters
xx[in] The X-coordinate of this point.
yy[in] The Y-coordinate of this point.
Remarks
Builds an instance of the object

OdGsDCPoint(Maximum) sets x = SCALAR_MAX, y = SCALAR_MAX

OdGsDCPoint(Minimum) sets x = SCALAR_MIN, y = SCALAR_MIN

Definition at line 68 of file GsDefs.h.

◆ OdGsDCPoint() [2/4]

OdGsDCPoint::OdGsDCPoint ( OdInt32  xx,
OdInt32  yy 
)
inline

Definition at line 70 of file GsDefs.h.

◆ OdGsDCPoint() [3/4]

OdGsDCPoint::OdGsDCPoint ( MaxFlag  )
inline

Definition at line 73 of file GsDefs.h.

◆ OdGsDCPoint() [4/4]

OdGsDCPoint::OdGsDCPoint ( MinFlag  )
inline

Definition at line 74 of file GsDefs.h.

Member Function Documentation

◆ operator!=()

bool OdGsDCPoint::operator!= ( const OdGsDCPoint dcPoint) const
inline

Definition at line 88 of file GsDefs.h.

◆ operator=() [1/3]

void OdGsDCPoint::operator= ( const OdGsDCPoint dcPoint)
inline

Definition at line 86 of file GsDefs.h.

◆ operator=() [2/3]

void OdGsDCPoint::operator= ( MaxFlag  )
inline
Remarks
Sets this object to the value of the object on the right.

Maximum sets x = SCALAR_MAX, y = SCALAR_MAX

Minimum sets x = SCALAR_MIN, y = SCALAR_MIN

Definition at line 83 of file GsDefs.h.

◆ operator=() [3/3]

void OdGsDCPoint::operator= ( MinFlag  )
inline

Definition at line 84 of file GsDefs.h.

◆ operator==()

bool OdGsDCPoint::operator== ( const OdGsDCPoint dcPoint) const
inline

Definition at line 87 of file GsDefs.h.

◆ operator[]()

long OdGsDCPoint::operator[] ( unsigned int  i) const
inline

Definition at line 89 of file GsDefs.h.

Member Data Documentation

◆ x

OdInt32 OdGsDCPoint::x

Definition at line 92 of file GsDefs.h.

◆ y

OdInt32 OdGsDCPoint::y

Definition at line 93 of file GsDefs.h.


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