MKI_INTRECT (Basic Classes) Changed in Version 2022.0 |
www.CAD6.com |
C++ Syntaxclass MKI_INTRECT : public RECT { public:
MKI_INTRECT( void );
const __int32 f_nX1, const __int32 f_nY1, const __int32 f_nX2, const __int32 f_nY2 );
MKI_INTRECT( const MKI_INTQUAD& f_rQuad );
MKI_INTRECT& operator =( const RECT& f_rRect );
bool operator ==( const RECT& f_rRect ) const;
bool operator !=( const RECT& f_rRect ) const;
void SetZero( void );
bool IsZero( void ) const;
bool IsNonZero( void ) const;
void SetInvalid( void );
bool IsValid( void ) const;
bool IsInvalid( void ) const;
void Set( const __int32 f_nX1, const __int32 f_nY1, const __int32 f_nX2, const __int32 f_nY2 );
void Set( const POINT& f_rPoint1, const POINT& f_rPoint2 );
void Set( const POINT& f_rPoint );
void SetMinMax( const RECT& f_rRect );
void const __int32 f_nX1, const __int32 f_nY1, const __int32 f_nX2, const __int32 f_nY2 );
void const POINT& f_rPoint1, const POINT& f_rPoint2 );
void const RECT& f_rRect1, const RECT& f_rRect2 );
void const RECT& f_rRect1, const RECT& f_rRect2 );
bool IsDisjoint( const RECT& f_rRect ) const;
bool IsOutside( const RECT& f_rRect ) const;
void Combine( const RECT& f_rRect );
void Intersect( const RECT& f_rRect );
void Include( const POINT& f_rPoint );
void Include( __int32 f_nX, __int32 f_nY );
bool Contains( const MKI_INTPOINT& f_rPoint ) const;
bool Contains( const MKI_POINT_BASE& f_rPoint ) const;
void Expand( const __int32 f_nAmount );
void Expand( const __int32 f_nAmountX, const __int32 f_nAmountY );
void Move( const SIZE& f_rVector );
__int32 GetMinX( void ) const;
__int32 GetMinY( void ) const;
__int32 GetMaxX( void ) const;
__int32 GetMaxY( void ) const;
__int32 GetAbsSizeX( void ) const;
__int32 GetAbsSizeY( void ) const;
void GetAbsSize( SIZE& f_rSize ) const;
void GetAbsSize( MKI_VECTOR_BASE& f_rSize ) const;
__int32 GetCenterX( void ) const;
__int32 GetCenterY( void ) const;
void GetCenter( POINT& f_rCenter ) const;
void GetCenter( MKI_POINT_BASE& f_rCenter ) const;
void GetCenter( SIZE& f_rCenter ) const;
void GetCenter( MKI_VECTOR_BASE& f_rCenter ) const;
__int32 GetArea( void ) const; };
This class contains the description of a rectangle with integer coordinates and some associated methods.
Element Descriptionx1, y1 [double] X- and Y-Coordinate of the first corner-point of the rectangle. The coordinates are in units. x2, y2 [double] X- and Y-Coordinate of the second corner-point of the rectangle. The coordinates are in units.
CommentIn most cases, the values in this data type have to be sorted, i.e. x1 <= x2 and y1 <= y2. This speeds up further calculations with these rectangles.
MKD Syntaxx1,y1,x2,y2
The data type MKI_INTRECT is used to store the dimensions of a rectangular frame. Such frames are usually used to store the surrounding frames of something.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH