Isle
Loading...
Searching...
No Matches
MxSize< T > Class Template Reference

[AI] 2D size class templated on its value type. More...

#include <mxgeometry.h>

Public Member Functions

 MxSize ()
 [AI] Default constructor, does not initialize size. More...
 
 MxSize (const MxSize &p_s)
 [AI] Copy constructor. More...
 
 MxSize (T p_width, T p_height)
 [AI] Constructor with explicit width and height. More...
 
GetWidth () const
 [AI] Get the width. More...
 
GetHeight () const
 [AI] Get the height. More...
 
void SetWidth (T p_width)
 [AI] Set the width. More...
 
void SetHeight (T p_height)
 [AI] Set the height. More...
 

Protected Attributes

m_width
 [AI] Width. More...
 
m_height
 [AI] Height. More...
 

Detailed Description

template<class T>
class MxSize< T >

[AI] 2D size class templated on its value type.

[AI] Represents the width and height of a 2D object or region.

Template Parameters
T[AI] Underlying type for width/height (e.g., int, float, etc.)

Definition at line 106 of file mxgeometry.h.

Constructor & Destructor Documentation

◆ MxSize() [1/3]

template<class T >
MxSize< T >::MxSize ( )
inline

[AI] Default constructor, does not initialize size.

Definition at line 115 of file mxgeometry.h.

◆ MxSize() [2/3]

template<class T >
MxSize< T >::MxSize ( const MxSize< T > &  p_s)
inline

[AI] Copy constructor.

Parameters
p_s[AI] The size to copy.

Definition at line 121 of file mxgeometry.h.

◆ MxSize() [3/3]

template<class T >
MxSize< T >::MxSize ( p_width,
p_height 
)
inline

[AI] Constructor with explicit width and height.

Parameters
p_width[AI] Width value.
p_height[AI] Height value.

Definition at line 131 of file mxgeometry.h.

Member Function Documentation

◆ GetHeight()

template<class T >
T MxSize< T >::GetHeight ( ) const
inline

[AI] Get the height.

Definition at line 144 of file mxgeometry.h.

◆ GetWidth()

template<class T >
T MxSize< T >::GetWidth ( ) const
inline

[AI] Get the width.

Definition at line 139 of file mxgeometry.h.

◆ SetHeight()

template<class T >
void MxSize< T >::SetHeight ( p_height)
inline

[AI] Set the height.

Parameters
p_height[AI] New height.

Definition at line 156 of file mxgeometry.h.

◆ SetWidth()

template<class T >
void MxSize< T >::SetWidth ( p_width)
inline

[AI] Set the width.

Parameters
p_width[AI] New width.

Definition at line 150 of file mxgeometry.h.

Member Data Documentation

◆ m_height

template<class T >
T MxSize< T >::m_height
protected

[AI] Height.

Definition at line 109 of file mxgeometry.h.

◆ m_width

template<class T >
T MxSize< T >::m_width
protected

[AI] Width.

Definition at line 108 of file mxgeometry.h.


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