API Documentation
Loading...
Searching...
No Matches
PointWidget Class Reference

Allows the user to input an N-dimensional point (up to 4 dimensions) with an optinal unit. Also allows other widgets, such as a GNSS take reading button, to be added into the layout. More...

#include <PointWidget.h>

Inheritance diagram for PointWidget:
[legend]
Collaboration diagram for PointWidget:
[legend]

Classes

class  GNSSCallback
 
class  PreTransform
 

Signals

void edited2 ()
 
void editingFinished ()
 
void surveySettingsRequested ()
 

Public Member Functions

Vertex< 3, fltp08calculatePoint () const
 
Vertex< 3, fltp08getPoint () const
 
bool isDefault () const
 
Vertex< 3, fltp08placeholderPoint () const
 
 PointWidget (QWidget *parent=nullptr)
 
void setDecimalCount (uint04 count)
 
void setDefaultPoint (const Vertex< 3, fltp08 > &point)
 
void setDimensionCount (uint01 dim_count)
 
void setEditable (bool editable)
 
void setFontMultiplier (fltp04 size_mult)
 
void setLabel (uint01 dimension, const TranslatedString &label)
 
void setMaxPoint (const Vertex< 3, fltp08 > &point)
 
void setMinPoint (const Vertex< 3, fltp08 > &point)
 
void setNumberOfLines (uint04 line_count)
 
void setPoint (Vertex< 2, fltp08 > point)
 
void setPoint (Vertex< 3, fltp08 > point)
 
void setPoint (Vertex< 4, fltp08 > point)
 
void setPreTransform (PreTransform *transform)
 
void setStep (fltp08 step)
 
void setSurveySettings (QWidget *survey_settings)
 
void setTransform (const Matrix< fltp08 > &mat)
 
void setUnit (const ConstPointer< Unit > &unit)
 
void setUnitToApplicationAngleUnit ()
 
void setUnitToApplicationDistanceUnit ()
 
void setUnitToApplicationOrientationUnit ()
 
void setUnitToApplicationSpatialUnit ()
 
void setUseLabelAbreviation (bool use_label_abv)
 
QPointer< QWidget > surveySettings () const
 
const ConstPointer< Unit > & unit () const
 

Protected Slots

void onFinishedSlot ()
 
void onUpdatedSlot ()
 

Protected Member Functions

void setRawUnit (const ConstPointer< Unit > &unit)
 

Protected Attributes

Vector< 4, TranslatedStringm_custom_labels
 
Vertex< 3, fltp08m_default_point
 
QTResourceListenerm_default_units_listener
 
uint01 m_dimension_count
 
Vector< 4, DimensionWidgets * > m_dimension_widgets
 
QGridLayout * m_layout
 
uint04 m_layout_line_count
 
Matrix< fltp08m_matrix
 
Vertex< 3, fltp08m_point
 
PreTransformm_pre_transform = nullptr
 
QPointer< QWidget > m_survey_settings = nullptr
 
ConstPointer< Unitm_unit
 
bool m_use_label_abv
 
fltp08 m_w_point
 

Detailed Description

Allows the user to input an N-dimensional point (up to 4 dimensions) with an optinal unit. Also allows other widgets, such as a GNSS take reading button, to be added into the layout.


Constructor & Destructor Documentation

◆ PointWidget()

PointWidget ( QWidget * parent = nullptr)

Member Function Documentation

◆ calculatePoint()

Vertex< 3, fltp08 > calculatePoint ( ) const

◆ edited2

void edited2 ( )
signal

◆ editingFinished

void editingFinished ( )
signal

◆ getPoint()

Vertex< 3, fltp08 > getPoint ( ) const

◆ isDefault()

bool isDefault ( ) const

◆ onFinishedSlot

void onFinishedSlot ( )
protectedslot

◆ onUpdatedSlot

void onUpdatedSlot ( )
protectedslot

◆ placeholderPoint()

Vertex< 3, fltp08 > placeholderPoint ( ) const

◆ setDecimalCount()

void setDecimalCount ( uint04 count)

◆ setDefaultPoint()

void setDefaultPoint ( const Vertex< 3, fltp08 > & point)

◆ setDimensionCount()

void setDimensionCount ( uint01 dim_count)

◆ setEditable()

void setEditable ( bool editable)

◆ setFontMultiplier()

void setFontMultiplier ( fltp04 size_mult)

◆ setLabel()

void setLabel ( uint01 dimension,
const TranslatedString & label )

◆ setMaxPoint()

void setMaxPoint ( const Vertex< 3, fltp08 > & point)

◆ setMinPoint()

void setMinPoint ( const Vertex< 3, fltp08 > & point)

◆ setNumberOfLines()

void setNumberOfLines ( uint04 line_count)

◆ setPoint() [1/3]

void setPoint ( Vertex< 2, fltp08 > point)

◆ setPoint() [2/3]

void setPoint ( Vertex< 3, fltp08 > point)

◆ setPoint() [3/3]

void setPoint ( Vertex< 4, fltp08 > point)

◆ setPreTransform()

void setPreTransform ( PreTransform * transform)

◆ setRawUnit()

void setRawUnit ( const ConstPointer< Unit > & unit)
protected

◆ setStep()

void setStep ( fltp08 step)

◆ setSurveySettings()

void setSurveySettings ( QWidget * survey_settings)

◆ setTransform()

void setTransform ( const Matrix< fltp08 > & mat)

◆ setUnit()

void setUnit ( const ConstPointer< Unit > & unit)

◆ setUnitToApplicationAngleUnit()

void setUnitToApplicationAngleUnit ( )

◆ setUnitToApplicationDistanceUnit()

void setUnitToApplicationDistanceUnit ( )

◆ setUnitToApplicationOrientationUnit()

void setUnitToApplicationOrientationUnit ( )

◆ setUnitToApplicationSpatialUnit()

void setUnitToApplicationSpatialUnit ( )

◆ setUseLabelAbreviation()

void setUseLabelAbreviation ( bool use_label_abv)

◆ surveySettings()

QPointer< QWidget > surveySettings ( ) const
inline

◆ surveySettingsRequested

void surveySettingsRequested ( )
signal

◆ unit()

const ConstPointer< Unit > & unit ( ) const

Member Data Documentation

◆ m_custom_labels

Vector<4, TranslatedString> m_custom_labels
protected

◆ m_default_point

Vertex<3, fltp08> m_default_point
protected

◆ m_default_units_listener

QTResourceListener* m_default_units_listener
protected

◆ m_dimension_count

uint01 m_dimension_count
protected

◆ m_dimension_widgets

Vector<4, DimensionWidgets*> m_dimension_widgets
protected

◆ m_layout

QGridLayout* m_layout
protected

◆ m_layout_line_count

uint04 m_layout_line_count
protected

◆ m_matrix

Matrix<fltp08> m_matrix
protected

◆ m_point

Vertex<3, fltp08> m_point
protected

◆ m_pre_transform

PreTransform* m_pre_transform = nullptr
protected

◆ m_survey_settings

QPointer<QWidget> m_survey_settings = nullptr
protected

◆ m_unit

ConstPointer<Unit> m_unit
protected

◆ m_use_label_abv

bool m_use_label_abv
protected

◆ m_w_point

fltp08 m_w_point
protected

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