KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_IMAGE_EDITOR Class Reference

#include <panel_image_editor.h>

Inheritance diagram for PANEL_IMAGE_EDITOR:
PANEL_IMAGE_EDITOR_BASE

Public Member Functions

 PANEL_IMAGE_EDITOR (UNITS_PROVIDER *aUnitsProvider, wxWindow *aParent, const BITMAP_BASE &aItem)
 
 ~PANEL_IMAGE_EDITOR ()=default
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
double GetScale () const
 
void SetScale (double aScale)
 
VECTOR2I GetImageSize () const
 
wxTextCtrl * GetScaleCtrl () const
 
void TransferToImage (BITMAP_BASE &aItem)
 Copy edited image to aItem.
 

Protected Attributes

wxPanel * m_panelDraw
 
wxStaticText * m_staticTextScale
 
wxTextCtrl * m_textCtrlScale
 
wxStaticText * m_staticTextPPI
 
wxStaticText * m_stPPI_Value
 
wxButton * m_buttonGrey
 

Private Member Functions

void OnGreyScaleConvert (wxCommandEvent &event) override
 
void OnRedrawPanel (wxPaintEvent &event) override
 
bool CheckValues ()
 

Private Attributes

UNIT_BINDER m_scale
 
std::unique_ptr< BITMAP_BASEm_workingImage
 

Detailed Description

Definition at line 37 of file panel_image_editor.h.

Constructor & Destructor Documentation

◆ PANEL_IMAGE_EDITOR()

PANEL_IMAGE_EDITOR::PANEL_IMAGE_EDITOR ( UNITS_PROVIDER * aUnitsProvider,
wxWindow * aParent,
const BITMAP_BASE & aItem )

◆ ~PANEL_IMAGE_EDITOR()

PANEL_IMAGE_EDITOR::~PANEL_IMAGE_EDITOR ( )
default

Member Function Documentation

◆ CheckValues()

bool PANEL_IMAGE_EDITOR::CheckValues ( )
private

◆ GetImageSize()

VECTOR2I PANEL_IMAGE_EDITOR::GetImageSize ( ) const

Definition at line 135 of file panel_image_editor.cpp.

References m_workingImage.

◆ GetScale()

double PANEL_IMAGE_EDITOR::GetScale ( ) const

Definition at line 121 of file panel_image_editor.cpp.

References m_scale.

◆ GetScaleCtrl()

wxTextCtrl * PANEL_IMAGE_EDITOR::GetScaleCtrl ( ) const
inline

Definition at line 50 of file panel_image_editor.h.

References PANEL_IMAGE_EDITOR_BASE::m_textCtrlScale.

◆ OnGreyScaleConvert()

void PANEL_IMAGE_EDITOR::OnGreyScaleConvert ( wxCommandEvent & event)
overrideprivatevirtual

Reimplemented from PANEL_IMAGE_EDITOR_BASE.

Definition at line 56 of file panel_image_editor.cpp.

References PANEL_IMAGE_EDITOR_BASE::m_panelDraw, and m_workingImage.

◆ OnRedrawPanel()

void PANEL_IMAGE_EDITOR::OnRedrawPanel ( wxPaintEvent & event)
overrideprivatevirtual

◆ SetScale()

void PANEL_IMAGE_EDITOR::SetScale ( double aScale)

◆ TransferDataFromWindow()

bool PANEL_IMAGE_EDITOR::TransferDataFromWindow ( )
override

Definition at line 115 of file panel_image_editor.cpp.

References CheckValues().

◆ TransferDataToWindow()

bool PANEL_IMAGE_EDITOR::TransferDataToWindow ( )
override

◆ TransferToImage()

void PANEL_IMAGE_EDITOR::TransferToImage ( BITMAP_BASE & aItem)

Copy edited image to aItem.

Definition at line 160 of file panel_image_editor.cpp.

References BITMAP_BASE::ImportData(), PANEL_IMAGE_EDITOR_BASE::m_textCtrlScale, m_workingImage, and scale.

Member Data Documentation

◆ m_buttonGrey

wxButton* PANEL_IMAGE_EDITOR_BASE::m_buttonGrey
protectedinherited

Definition at line 44 of file panel_image_editor_base.h.

Referenced by PANEL_IMAGE_EDITOR_BASE(), and ~PANEL_IMAGE_EDITOR_BASE().

◆ m_panelDraw

wxPanel* PANEL_IMAGE_EDITOR_BASE::m_panelDraw
protectedinherited

◆ m_scale

UNIT_BINDER PANEL_IMAGE_EDITOR::m_scale
private

◆ m_staticTextPPI

wxStaticText* PANEL_IMAGE_EDITOR_BASE::m_staticTextPPI
protectedinherited

Definition at line 42 of file panel_image_editor_base.h.

Referenced by PANEL_IMAGE_EDITOR_BASE().

◆ m_staticTextScale

wxStaticText* PANEL_IMAGE_EDITOR_BASE::m_staticTextScale
protectedinherited

◆ m_stPPI_Value

wxStaticText* PANEL_IMAGE_EDITOR_BASE::m_stPPI_Value
protectedinherited

◆ m_textCtrlScale

wxTextCtrl* PANEL_IMAGE_EDITOR_BASE::m_textCtrlScale
protectedinherited

◆ m_workingImage

std::unique_ptr<BITMAP_BASE> PANEL_IMAGE_EDITOR::m_workingImage
private

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