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

#include <eda_angle_variant.h>

Inheritance diagram for EDA_ANGLE_VARIANT_DATA:

Public Member Functions

 EDA_ANGLE_VARIANT_DATA ()
 
 EDA_ANGLE_VARIANT_DATA (double aAngleDegrees)
 
 EDA_ANGLE_VARIANT_DATA (const EDA_ANGLE &aAngle)
 
bool Eq (wxVariantData &aOther) const override
 
wxString GetType () const override
 
bool Read (wxString &aString) override
 
bool Write (wxString &aString) const override
 
bool GetAsAny (wxAny *aAny) const override
 
const EDA_ANGLEAngle ()
 
void SetAngle (const EDA_ANGLE &aAngle)
 

Static Public Member Functions

static wxVariantData * VariantDataFactory (const wxAny &aAny)
 

Protected Attributes

EDA_ANGLE m_angle
 

Detailed Description

Definition at line 27 of file eda_angle_variant.h.

Constructor & Destructor Documentation

◆ EDA_ANGLE_VARIANT_DATA() [1/3]

EDA_ANGLE_VARIANT_DATA::EDA_ANGLE_VARIANT_DATA ( )

Definition at line 23 of file eda_angle_variant.cpp.

Referenced by VariantDataFactory().

◆ EDA_ANGLE_VARIANT_DATA() [2/3]

EDA_ANGLE_VARIANT_DATA::EDA_ANGLE_VARIANT_DATA ( double  aAngleDegrees)

Definition at line 28 of file eda_angle_variant.cpp.

◆ EDA_ANGLE_VARIANT_DATA() [3/3]

EDA_ANGLE_VARIANT_DATA::EDA_ANGLE_VARIANT_DATA ( const EDA_ANGLE aAngle)

Definition at line 34 of file eda_angle_variant.cpp.

Member Function Documentation

◆ Angle()

const EDA_ANGLE & EDA_ANGLE_VARIANT_DATA::Angle ( )
inline

◆ Eq()

bool EDA_ANGLE_VARIANT_DATA::Eq ( wxVariantData &  aOther) const
override

Definition at line 40 of file eda_angle_variant.cpp.

References m_angle.

◆ GetAsAny()

bool EDA_ANGLE_VARIANT_DATA::GetAsAny ( wxAny *  aAny) const
override

Definition at line 74 of file eda_angle_variant.cpp.

References EDA_ANGLE::AsDegrees(), and m_angle.

◆ GetType()

wxString EDA_ANGLE_VARIANT_DATA::GetType ( ) const
inlineoverride

Definition at line 38 of file eda_angle_variant.h.

◆ Read()

bool EDA_ANGLE_VARIANT_DATA::Read ( wxString &  aString)
override

Definition at line 55 of file eda_angle_variant.cpp.

References DEGREES_T, and m_angle.

◆ SetAngle()

void EDA_ANGLE_VARIANT_DATA::SetAngle ( const EDA_ANGLE aAngle)
inline

Definition at line 50 of file eda_angle_variant.h.

References m_angle.

Referenced by PG_UNIT_EDITOR::GetValueFromControl().

◆ VariantDataFactory()

static wxAnyToEDA_ANGLE_VARIANTRegistrationImpl s_wxAnyToEDA_ANGLE_VARIANTRegistration & EDA_ANGLE_VARIANT_DATA::VariantDataFactory ( const wxAny &  aAny)
static

Definition at line 81 of file eda_angle_variant.cpp.

References EDA_ANGLE_VARIANT_DATA().

◆ Write()

bool EDA_ANGLE_VARIANT_DATA::Write ( wxString &  aString) const
override

Definition at line 67 of file eda_angle_variant.cpp.

References EDA_ANGLE::AsDegrees(), and m_angle.

Member Data Documentation

◆ m_angle

EDA_ANGLE EDA_ANGLE_VARIANT_DATA::m_angle
protected

Definition at line 53 of file eda_angle_variant.h.

Referenced by Angle(), Eq(), GetAsAny(), Read(), SetAngle(), and Write().


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