2022-02-08 19:29:54 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 jean-pierre.charras
|
|
|
|
* Copyright (C) 2022 Mike Williams
|
2023-01-22 12:52:41 +00:00
|
|
|
* Copyright (C) 2011-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
2022-02-08 19:29:54 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <pcb_draw_panel_gal.h>
|
|
|
|
#include <plotters/plotter.h>
|
|
|
|
#include <settings/color_settings.h>
|
2023-10-24 00:39:48 +00:00
|
|
|
#include <pcb_painter.h>
|
2022-02-08 19:29:54 +00:00
|
|
|
#include <bitmaps.h>
|
|
|
|
#include <base_units.h>
|
|
|
|
#include <common.h>
|
|
|
|
#include <eda_draw_frame.h>
|
|
|
|
#include <core/mirror.h>
|
2022-06-27 18:07:52 +00:00
|
|
|
#include <board.h>
|
2023-10-23 17:23:24 +00:00
|
|
|
#include <pcb_reference_image.h>
|
2022-02-08 19:29:54 +00:00
|
|
|
#include <trigo.h>
|
|
|
|
#include <geometry/shape_rect.h>
|
|
|
|
|
|
|
|
#include <wx/mstream.h>
|
|
|
|
|
2023-10-24 00:39:48 +00:00
|
|
|
using KIGFX::PCB_PAINTER;
|
|
|
|
using KIGFX::PCB_RENDER_SETTINGS;
|
|
|
|
|
2022-02-08 19:29:54 +00:00
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
|
|
|
|
PCB_REFERENCE_IMAGE::PCB_REFERENCE_IMAGE( BOARD_ITEM* aParent, const VECTOR2I& pos,
|
|
|
|
PCB_LAYER_ID aLayer ) :
|
|
|
|
BOARD_ITEM( aParent, PCB_REFERENCE_IMAGE_T, aLayer )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
|
|
|
m_pos = pos;
|
2023-04-22 14:13:55 +00:00
|
|
|
m_bitmapBase = new BITMAP_BASE();
|
|
|
|
m_bitmapBase->SetPixelSizeIu( (float) pcbIUScale.MilsToIU( 1000 ) / m_bitmapBase->GetPPI() );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
PCB_REFERENCE_IMAGE::PCB_REFERENCE_IMAGE( const PCB_REFERENCE_IMAGE& aPCBBitmap ) :
|
|
|
|
BOARD_ITEM( aPCBBitmap )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
|
|
|
m_pos = aPCBBitmap.m_pos;
|
2023-04-22 14:13:55 +00:00
|
|
|
m_bitmapBase = new BITMAP_BASE( *aPCBBitmap.m_bitmapBase );
|
|
|
|
m_bitmapBase->SetPixelSizeIu( (float) pcbIUScale.MilsToIU( 1000 ) / m_bitmapBase->GetPPI() );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
PCB_REFERENCE_IMAGE& PCB_REFERENCE_IMAGE::operator=( const BOARD_ITEM& aItem )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
|
|
|
wxCHECK_MSG( Type() == aItem.Type(), *this,
|
|
|
|
wxT( "Cannot assign object type " ) + aItem.GetClass() + wxT( " to type " )
|
|
|
|
+ GetClass() );
|
|
|
|
|
|
|
|
if( &aItem != this )
|
|
|
|
{
|
|
|
|
BOARD_ITEM::operator=( aItem );
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
PCB_REFERENCE_IMAGE* bitmap = (PCB_REFERENCE_IMAGE*) &aItem;
|
2022-02-08 19:29:54 +00:00
|
|
|
|
2023-04-22 14:13:55 +00:00
|
|
|
delete m_bitmapBase;
|
|
|
|
m_bitmapBase = new BITMAP_BASE( *bitmap->m_bitmapBase );
|
2022-02-08 19:29:54 +00:00
|
|
|
m_pos = bitmap->m_pos;
|
2023-04-22 14:13:55 +00:00
|
|
|
m_bitmapBase->SetPixelSizeIu( (float) pcbIUScale.MilsToIU( 1000 ) / m_bitmapBase->GetPPI() );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
bool PCB_REFERENCE_IMAGE::ReadImageFile( const wxString& aFullFilename )
|
2023-02-15 00:41:54 +00:00
|
|
|
{
|
2023-06-08 15:54:36 +00:00
|
|
|
if( m_bitmapBase->ReadImageFile( aFullFilename ) )
|
|
|
|
{
|
|
|
|
m_bitmapBase->SetPixelSizeIu( (float) pcbIUScale.MilsToIU( 1000 ) / m_bitmapBase->GetPPI() );
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
2023-02-15 00:41:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
bool PCB_REFERENCE_IMAGE::ReadImageFile( wxMemoryBuffer& aBuffer )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2023-06-08 15:54:36 +00:00
|
|
|
if( m_bitmapBase->ReadImageFile( aBuffer ) )
|
2023-01-17 16:19:44 +00:00
|
|
|
{
|
2023-04-22 14:13:55 +00:00
|
|
|
m_bitmapBase->SetPixelSizeIu( (float) pcbIUScale.MilsToIU( 1000 ) / m_bitmapBase->GetPPI() );
|
2023-01-17 16:19:44 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
EDA_ITEM* PCB_REFERENCE_IMAGE::Clone() const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2023-10-23 17:23:24 +00:00
|
|
|
return new PCB_REFERENCE_IMAGE( *this );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
void PCB_REFERENCE_IMAGE::swapData( BOARD_ITEM* aItem )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2023-10-23 17:23:24 +00:00
|
|
|
wxCHECK_RET( aItem->Type() == PCB_REFERENCE_IMAGE_T,
|
|
|
|
wxString::Format( wxT( "% object cannot swap data with %s object." ),
|
|
|
|
GetClass(), aItem->GetClass() ) );
|
2022-02-08 19:29:54 +00:00
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
PCB_REFERENCE_IMAGE* item = (PCB_REFERENCE_IMAGE*) aItem;
|
2023-01-22 12:52:41 +00:00
|
|
|
std::swap( m_layer, item->m_layer );
|
|
|
|
std::swap( m_isKnockout, item->m_isKnockout );
|
|
|
|
std::swap( m_isLocked, item->m_isLocked );
|
|
|
|
std::swap( m_flags, item->m_flags );
|
|
|
|
std::swap( m_parent, item->m_parent );
|
|
|
|
std::swap( m_forceVisible, item->m_forceVisible );
|
2022-02-08 19:29:54 +00:00
|
|
|
std::swap( m_pos, item->m_pos );
|
2023-04-22 14:13:55 +00:00
|
|
|
std::swap( m_bitmapBase, item->m_bitmapBase );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
double PCB_REFERENCE_IMAGE::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
|
2022-06-27 18:07:52 +00:00
|
|
|
{
|
|
|
|
constexpr double HIDE = std::numeric_limits<double>::max();
|
|
|
|
|
2023-10-24 00:39:48 +00:00
|
|
|
PCB_PAINTER* painter = static_cast<PCB_PAINTER*>( aView->GetPainter() );
|
|
|
|
PCB_RENDER_SETTINGS* renderSettings = painter->GetSettings();
|
|
|
|
|
2022-06-27 18:07:52 +00:00
|
|
|
// All bitmaps are drawn on LAYER_DRAW_BITMAPS, but their
|
|
|
|
// associated board layer controls their visibility.
|
|
|
|
if( !GetBoard()->IsLayerVisible( m_layer ) )
|
|
|
|
return HIDE;
|
|
|
|
|
2023-10-24 00:39:48 +00:00
|
|
|
if( renderSettings->GetHighContrast()
|
|
|
|
&& renderSettings->m_ContrastModeDisplay == HIGH_CONTRAST_MODE::HIDDEN
|
|
|
|
&& !renderSettings->GetLayerIsHighContrast( m_layer ) )
|
|
|
|
{
|
|
|
|
return HIDE;
|
|
|
|
}
|
|
|
|
|
2022-06-27 18:07:52 +00:00
|
|
|
return aView->IsLayerVisible( LAYER_DRAW_BITMAPS ) ? 0.0 : HIDE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
const BOX2I PCB_REFERENCE_IMAGE::GetBoundingBox() const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2022-08-31 09:15:42 +00:00
|
|
|
// Bitmaps are center origin, BOX2Is need top-left origin
|
2023-04-22 14:13:55 +00:00
|
|
|
VECTOR2I size = m_bitmapBase->GetSize();
|
2022-02-08 19:29:54 +00:00
|
|
|
VECTOR2I topLeft = { m_pos.x - size.x / 2, m_pos.y - size.y / 2 };
|
|
|
|
|
2022-08-31 09:15:42 +00:00
|
|
|
return BOX2I( topLeft, size );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
std::shared_ptr<SHAPE> PCB_REFERENCE_IMAGE::GetEffectiveShape( PCB_LAYER_ID aLayer,
|
|
|
|
FLASHING aFlash ) const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2022-08-31 16:17:14 +00:00
|
|
|
BOX2I box = GetBoundingBox();
|
2023-10-23 17:23:24 +00:00
|
|
|
return std::make_shared<SHAPE_RECT>( box.GetPosition(), box.GetWidth(), box.GetHeight() );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
const VECTOR2I PCB_REFERENCE_IMAGE::GetSize() const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2023-04-22 14:13:55 +00:00
|
|
|
return m_bitmapBase->GetSize();
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
void PCB_REFERENCE_IMAGE::Flip( const VECTOR2I& aCentre, bool aFlipLeftRight )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
|
|
|
if( aFlipLeftRight )
|
|
|
|
{
|
|
|
|
MIRROR( m_pos.x, aCentre.x );
|
2023-04-22 14:13:55 +00:00
|
|
|
m_bitmapBase->Mirror( false );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
MIRROR( m_pos.y, aCentre.y );
|
2023-04-22 14:13:55 +00:00
|
|
|
m_bitmapBase->Mirror( true );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
void PCB_REFERENCE_IMAGE::Rotate( const VECTOR2I& aCenter, const EDA_ANGLE& aAngle )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2023-03-14 22:26:20 +00:00
|
|
|
EDA_ANGLE norm( aAngle.AsDegrees(), DEGREES_T );
|
|
|
|
|
2022-02-08 19:29:54 +00:00
|
|
|
RotatePoint( m_pos, aCenter, aAngle );
|
2023-03-14 22:26:20 +00:00
|
|
|
|
|
|
|
norm.Normalize();
|
|
|
|
|
2023-04-22 14:13:55 +00:00
|
|
|
// each call to m_bitmapBase->Rotate() rotates 90 degrees CCW
|
2023-03-14 22:26:20 +00:00
|
|
|
for( double ang = 45.0; ang < norm.AsDegrees(); ang += 90.0 )
|
2023-04-22 14:13:55 +00:00
|
|
|
m_bitmapBase->Rotate( false );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if defined( DEBUG )
|
2023-10-23 17:23:24 +00:00
|
|
|
void PCB_REFERENCE_IMAGE::Show( int nestLevel, std::ostream& os ) const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
|
|
|
// XML output:
|
|
|
|
wxString s = GetClass();
|
|
|
|
|
|
|
|
NestedSpace( nestLevel, os ) << '<' << s.Lower().mb_str() << m_pos << "/>\n";
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
bool PCB_REFERENCE_IMAGE::HitTest( const VECTOR2I& aPosition, int aAccuracy ) const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2022-08-31 16:17:14 +00:00
|
|
|
BOX2I rect = GetBoundingBox();
|
2022-02-08 19:29:54 +00:00
|
|
|
|
|
|
|
rect.Inflate( aAccuracy );
|
|
|
|
|
|
|
|
return rect.Contains( aPosition );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
bool PCB_REFERENCE_IMAGE::HitTest( const BOX2I& aRect, bool aContained, int aAccuracy ) const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2022-08-31 09:33:46 +00:00
|
|
|
BOX2I rect = aRect;
|
2022-02-08 19:29:54 +00:00
|
|
|
|
|
|
|
rect.Inflate( aAccuracy );
|
|
|
|
|
|
|
|
if( aContained )
|
|
|
|
return rect.Contains( GetBoundingBox() );
|
|
|
|
|
|
|
|
return rect.Intersects( GetBoundingBox() );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
BITMAPS PCB_REFERENCE_IMAGE::GetMenuImage() const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
|
|
|
return BITMAPS::image;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
void PCB_REFERENCE_IMAGE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame,
|
|
|
|
std::vector<MSG_PANEL_ITEM>& aList )
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
2023-10-23 17:23:24 +00:00
|
|
|
aList.emplace_back( _( "Reference Image" ), wxEmptyString );
|
2022-02-08 19:29:54 +00:00
|
|
|
|
2023-04-22 14:13:55 +00:00
|
|
|
aList.emplace_back( _( "PPI" ), wxString::Format( wxT( "%d "), GetImage()->GetPPI() ) );
|
|
|
|
aList.emplace_back( _( "Scale" ), wxString::Format( wxT( "%f "), GetImageScale() ) );
|
|
|
|
|
2022-09-19 09:25:20 +00:00
|
|
|
aList.emplace_back( _( "Width" ), aFrame->MessageTextFromValue( GetSize().x ) );
|
|
|
|
aList.emplace_back( _( "Height" ), aFrame->MessageTextFromValue( GetSize().y ) );
|
2022-06-27 18:07:52 +00:00
|
|
|
aList.emplace_back( _( "Layer" ), LayerName( m_layer ) );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
void PCB_REFERENCE_IMAGE::ViewGetLayers( int aLayers[], int& aCount ) const
|
2022-02-08 19:29:54 +00:00
|
|
|
{
|
|
|
|
aCount = 1;
|
2022-06-27 18:07:52 +00:00
|
|
|
aLayers[0] = BITMAP_LAYER_FOR( m_layer );
|
2022-02-08 19:29:54 +00:00
|
|
|
}
|
2022-12-05 23:31:12 +00:00
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
bool PCB_REFERENCE_IMAGE::operator==( const BOARD_ITEM& aOther ) const
|
2023-09-14 21:39:42 +00:00
|
|
|
{
|
|
|
|
if( aOther.Type() != Type() )
|
|
|
|
return false;
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
const PCB_REFERENCE_IMAGE& other = static_cast<const PCB_REFERENCE_IMAGE&>( aOther );
|
2023-09-14 21:39:42 +00:00
|
|
|
|
|
|
|
if( m_layer != other.m_layer )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if( m_pos != other.m_pos )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetSize() != other.m_bitmapBase->GetSize() )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetPPI() != other.m_bitmapBase->GetPPI() )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetScale() != other.m_bitmapBase->GetScale() )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetImageID() != other.m_bitmapBase->GetImageID() )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetImageData() != other.m_bitmapBase->GetImageData() )
|
|
|
|
return false;
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
double PCB_REFERENCE_IMAGE::Similarity( const BOARD_ITEM& aOther ) const
|
2023-09-14 21:39:42 +00:00
|
|
|
{
|
|
|
|
if( aOther.Type() != Type() )
|
|
|
|
return 0.0;
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
const PCB_REFERENCE_IMAGE& other = static_cast<const PCB_REFERENCE_IMAGE&>( aOther );
|
2023-09-14 21:39:42 +00:00
|
|
|
|
|
|
|
double similarity = 1.0;
|
|
|
|
|
|
|
|
if( m_layer != other.m_layer )
|
|
|
|
similarity *= 0.9;
|
|
|
|
|
|
|
|
if( m_pos != other.m_pos )
|
|
|
|
similarity *= 0.9;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetSize() != other.m_bitmapBase->GetSize() )
|
|
|
|
similarity *= 0.9;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetPPI() != other.m_bitmapBase->GetPPI() )
|
|
|
|
similarity *= 0.9;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetScale() != other.m_bitmapBase->GetScale() )
|
|
|
|
similarity *= 0.9;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetImageID() != other.m_bitmapBase->GetImageID() )
|
|
|
|
similarity *= 0.9;
|
|
|
|
|
|
|
|
if( m_bitmapBase->GetImageData() != other.m_bitmapBase->GetImageData() )
|
|
|
|
similarity *= 0.9;
|
|
|
|
|
|
|
|
return similarity;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
static struct PCB_REFERENCE_IMAGE_DESC
|
2022-12-05 23:31:12 +00:00
|
|
|
{
|
2023-10-23 17:23:24 +00:00
|
|
|
PCB_REFERENCE_IMAGE_DESC()
|
2022-12-05 23:31:12 +00:00
|
|
|
{
|
|
|
|
PROPERTY_MANAGER& propMgr = PROPERTY_MANAGER::Instance();
|
2023-10-23 17:23:24 +00:00
|
|
|
REGISTER_TYPE( PCB_REFERENCE_IMAGE );
|
|
|
|
propMgr.InheritsAfter( TYPE_HASH( PCB_REFERENCE_IMAGE ), TYPE_HASH( BOARD_ITEM ) );
|
|
|
|
|
|
|
|
propMgr.ReplaceProperty( TYPE_HASH( BOARD_ITEM ), _HKI( "Layer" ),
|
|
|
|
new PROPERTY_ENUM<PCB_REFERENCE_IMAGE, PCB_LAYER_ID, BOARD_ITEM>( _HKI( "Associated Layer" ),
|
|
|
|
&PCB_REFERENCE_IMAGE::SetLayer, &PCB_REFERENCE_IMAGE::GetLayer ) );
|
2022-12-05 23:31:12 +00:00
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
const wxString groupImage = _HKI( "Image Properties" );
|
2022-12-05 23:31:12 +00:00
|
|
|
|
2023-10-23 17:23:24 +00:00
|
|
|
propMgr.AddProperty( new PROPERTY<PCB_REFERENCE_IMAGE, double>( _HKI( "Scale" ),
|
|
|
|
&PCB_REFERENCE_IMAGE::SetImageScale,
|
|
|
|
&PCB_REFERENCE_IMAGE::GetImageScale ),
|
|
|
|
groupImage );
|
2022-12-05 23:31:12 +00:00
|
|
|
|
|
|
|
// For future use
|
|
|
|
const wxString greyscale = _HKI( "Greyscale" );
|
|
|
|
}
|
2023-10-23 17:23:24 +00:00
|
|
|
} _PCB_REFERENCE_IMAGE_DESC;
|