Power System Platform  2024w23a
Loading...
Searching...
No Matches
HMPlane Class Reference

Public Member Functions

 HMPlane (const float &width, const float &height, const float limits[2])
 
virtual void DrawDC (wxGraphicsContext *gc) const
 
virtual void DrawLabelDC (wxGraphicsContext *gc) const
 
virtual void SetLabelLimits (const float &min, const float &max)
 
virtual float GetMaxLimit ()
 
virtual float GetMinLimit ()
 
virtual void SetRectSlope (const wxRect2DDouble &rect, const float &angle, const float &depth)
 
virtual void Resize (const float &width, const float &height)
 
virtual void ResizeDC (const float &width, const float &height)
 
virtual void SmoothPlane (const unsigned int &iterations)
 
virtual void Clear ()
 

Protected Member Functions

void FillCoordsBuffer ()
 
wxColour VoltToColour (double volt, int alpha=160) const
 

Protected Attributes

const float m_meshSize = 15.0f
 
unsigned int m_meshTickX = 0
 
unsigned int m_meshTickY = 0
 
float m_width = 0.0
 
float m_height = 0.0
 
std::vector< std::vector< BufferMeshCoords * > > m_coords
 
std::vector< std::vector< BufferMeshCoords * > > m_coordsT
 
std::vector< float > m_bufferCoords
 
std::vector< unsigned int > m_indexBuffer
 
float m_limits [2] = {1.1, 0.9}
 
bool m_isClear = true
 

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