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

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

#ifndef Fmx_UecnativemeasuremapHPP
#define Fmx_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 <System.SysUtils.hpp>
#include <System.Types.hpp>
#include <System.UITypes.hpp>
#include <System.Rtti.hpp>
#include <System.Classes.hpp>
#include <FMX.Types.hpp>
#include <FMX.Controls.hpp>
#include <FMX.Forms.hpp>
#include <FMX.Objects.hpp>
#include <System.UIConsts.hpp>
#include <FMX.uecMapUtil.hpp>
#include <FMX.Graphics.hpp>
#include <FMX.uecNativeShape.hpp>
#include <FMX.uecGraphics.hpp>
#include <System.Math.hpp>

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

namespace Fmx
{
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;
	Fmx::Uecnativeshape::TECShapes* FShapes;
	Fmx::Uecnativeshape::TECShapeLine* FLine;
	Fmx::Uecnativeshape::TECShapePolygone* FPoly;
	Fmx::Uecmaputil::TPOIShape FPointer;
	Fmx::Uecmaputil::TPenStyle FPenStyle;
	Fmx::Uecmaputil::TColor FPointColor;
	Fmx::Uecmaputil::TColor FColor;
	Fmx::Uecmaputil::TColor FFillColor;
	TECMeasureType FMeasureType;
	Fmx::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 Fmx::Uecmaputil::TColor value);
	void __fastcall setFillColor(const Fmx::Uecmaputil::TColor value);
	void __fastcall setPointColor(const Fmx::Uecmaputil::TColor value);
	void __fastcall setPenStyle(const Fmx::Uecmaputil::TPenStyle value);
	void __fastcall setPointer(const Fmx::Uecmaputil::TPOIShape value);
	void __fastcall setMesureSystem(const Fmx::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, Fmx::Uecnativeshape::TECShapes* const Group, Fmx::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 Fmx::Uecmaputil::TColor Color = {read=FColor, write=setColor, nodefault};
	__property Fmx::Uecmaputil::TColor FillColor = {read=FFillColor, write=setFillColor, nodefault};
	__property Fmx::Uecmaputil::TColor PointColor = {read=FPointColor, write=setPointColor, nodefault};
	__property Fmx::Uecmaputil::TPOIShape Pointer = {read=FPointer, write=setPointer, nodefault};
	__property Fmx::Uecmaputil::TPenStyle PenStyle = {read=FPenStyle, write=setPenStyle, nodefault};
	__property Fmx::Uecmaputil::TMesureSystem UnitMeasure = {read=FMesureSystem, write=setMesureSystem, nodefault};
	__property bool MeasureArea = {read=FMeasureArea, write=setMeasureArea, nodefault};
	__property Fmx::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 */
}	/* namespace Fmx */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMX_UECNATIVEMEASUREMAP)
using namespace Fmx::Uecnativemeasuremap;
#endif
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMX)
using namespace Fmx;
#endif
#pragma pack(pop)
#pragma option pop

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