// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'uecNativeMeasureMap.pas' rev: 37.00 (Windows)

#ifndef uecNativeMeasureMapHPP
#define uecNativeMeasureMapHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <Winapi.Messages.hpp>
#include <System.SysUtils.hpp>
#include <System.Variants.hpp>
#include <System.Classes.hpp>
#include <Vcl.Graphics.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <System.Math.hpp>
#include <Vcl.Dialogs.hpp>
#include <UECMapUtil.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <uecNativeShape.hpp>
#include <UECGraphics.hpp>
#include <System.UITypes.hpp>

//-- user supplied -----------------------------------------------------------

namespace Uecnativemeasuremap
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TECNativeMeasureMap;
//-- type declarations -------------------------------------------------------
enum DECLSPEC_DENUM TECMeasureType : unsigned char { mtDistance, mtArea };

class PASCALIMPLEMENTATION TECNativeMeasureMap : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	bool FMeasureArea;
	bool FVisible;
	bool FExitEditableClickLastPointLine;
	bool FEditableAddPointByClickOnMap;
	System::Classes::TNotifyEvent FOnChange;
	System::TObject* FMap;
	System::UnicodeString FGroupName;
	Uecnativeshape::TECShapes* FShapes;
	Uecnativeshape::TECShapeLine* FLine;
	Uecnativeshape::TECShapePolygone* FPoly;
	Uecmaputil::TPOIShape FPointer;
	Uecmaputil::TPenStyle FPenStyle;
	System::Uitypes::TColor FPointColor;
	System::Uitypes::TColor FColor;
	System::Uitypes::TColor FFillColor;
	TECMeasureType FMeasureType;
	Uecmaputil::TMesureSystem FMesureSystem;
	int FLastPoints;
	double FArea;
	double FDistance;
	System::UnicodeString FAreaText;
	System::UnicodeString FDistanceText;
	bool FIntermediateDistances;
	bool FShowLabel;
	void __fastcall setMap(System::TObject* const value);
	void __fastcall setIntermediateDistances(const bool value);
	void __fastcall setVisible(const bool value);
	void __fastcall setMeasureArea(const bool value);
	void __fastcall setMeasureType(const TECMeasureType value);
	void __fastcall setColor(const System::Uitypes::TColor value);
	void __fastcall setFillColor(const System::Uitypes::TColor value);
	void __fastcall setPointColor(const System::Uitypes::TColor value);
	void __fastcall setPenStyle(const Uecmaputil::TPenStyle value);
	void __fastcall setPointer(const Uecmaputil::TPOIShape value);
	void __fastcall setMesureSystem(const Uecmaputil::TMesureSystem value);
	void __fastcall CreateLine(const double Lat, const double Lng);
	void __fastcall CreatePoly(const double Lat, const double Lng);
	void __fastcall doChangeEditable(System::TObject* sender);
	void __fastcall doCalc();
	void __fastcall doCalcArea();
	void __fastcall doCreateShapeLinePointEditable(System::TObject* sender, Uecnativeshape::TECShapes* const Group, Uecnativeshape::TECShape* &ShapeLinePoint, const double Lat, const double Lng, const int index);
	void __fastcall doPathChange(System::TObject* sender);
	int __fastcall RoundNumeric(const double value);
	void __fastcall setShowLabel(const bool value);
	System::UnicodeString __fastcall MeterToString(const int meter);
	
public:
	__fastcall TECNativeMeasureMap(System::TObject* const value, const System::UnicodeString Name);
	__fastcall virtual ~TECNativeMeasureMap();
	void __fastcall resetStyle();
	__property System::Uitypes::TColor Color = {read=FColor, write=setColor, nodefault};
	__property System::Uitypes::TColor FillColor = {read=FFillColor, write=setFillColor, nodefault};
	__property System::Uitypes::TColor PointColor = {read=FPointColor, write=setPointColor, nodefault};
	__property Uecmaputil::TPOIShape Pointer = {read=FPointer, write=setPointer, nodefault};
	__property Uecmaputil::TPenStyle PenStyle = {read=FPenStyle, write=setPenStyle, nodefault};
	__property Uecmaputil::TMesureSystem UnitMeasure = {read=FMesureSystem, write=setMesureSystem, nodefault};
	__property bool MeasureArea = {read=FMeasureArea, write=setMeasureArea, nodefault};
	__property Uecnativeshape::TECShapes* Group = {read=FShapes};
	__property double Distance = {read=FDistance};
	__property System::UnicodeString DistanceText = {read=FDistanceText};
	__property double Area = {read=FArea};
	__property System::UnicodeString AreaText = {read=FAreaText};
	__property bool IntermediateDistances = {read=FIntermediateDistances, write=setIntermediateDistances, nodefault};
	__property bool ShowLabel = {read=FShowLabel, write=setShowLabel, nodefault};
	__property bool Visible = {read=FVisible, write=setVisible, nodefault};
	__property System::Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
};


//-- var, const, procedure ---------------------------------------------------
}	/* namespace Uecnativemeasuremap */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UECNATIVEMEASUREMAP)
using namespace Uecnativemeasuremap;
#endif
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// uecNativeMeasureMapHPP
