Stellarium  24.3
Public Types | Public Slots | Signals | Public Member Functions | Properties
LensDistortionEstimator Class Reference

Public Types

enum class  DistortionModel { Poly3 , Poly5 , PTLens }
 
- Public Types inherited from StelModule
enum  StelModuleSelectAction { AddToSelection , ReplaceSelection , RemoveFromSelection }
 Enum used when selecting objects to define whether to add to, replace, or remove from the existing selection list. More...
 
enum  StelModuleActionName {
  ActionDraw , ActionUpdate , ActionHandleMouseClicks , ActionHandleMouseMoves ,
  ActionHandleKeys
}
 Define the possible action for which an order is defined. More...
 

Public Slots

void setImageEnabled (bool enable)
 
void setDialogVisible (bool enable)
 
void setImageAxesEnabled (bool enabled)
 
void setPointMarkersEnabled (bool enabled)
 
void setProjectionCenterMarkerEnabled (bool enabled)
 
void setProjectionCenterMarkerColor (const Vec3f &color)
 
void setSelectedPointMarkerColor (const Vec3f &color)
 
void setPointMarkerColor (const Vec3f &color)
 
void setImageAxesColor (const Vec3f &color)
 

Signals

void imageToggled (bool enabled)
 
void dialogToggled (bool enabled)
 
void imageAxesToggled (bool enabled)
 
void pointMarkersToggled (bool enabled)
 
void projectionCenterMarkerToggled (bool enabled)
 
void projectionCenterMarkerColorChanged (const Vec3f &color)
 
void selectedPointMarkerColorChanged (const Vec3f &color)
 
void pointMarkerColorChanged (const Vec3f &color)
 
void imageAxesColorChanged (const Vec3f &color)
 

Public Member Functions

void init () override
 Initialize itself. More...
 
void draw (StelCore *core) override
 Execute all the drawing functions for this module. More...
 
double getCallOrder (StelModuleActionName actionName) const override
 Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations. More...
 
void handleMouseClicks (QMouseEvent *event) override
 Handle mouse clicks. More...
 
bool handleMouseMoves (int x, int y, Qt::MouseButtons) override
 Handle mouse moves. More...
 
bool configureGui (bool show=true) override
 Detect or show the configuration GUI elements for the module. More...
 
bool arePointMarkersEnabled () const
 
bool isProjectionCenterMarkerEnabled () const
 
bool areImageAxesEnabled () const
 
bool isImageEnabled () const
 
bool isDialogVisible () const
 
QCursor getPointPickCursor () const
 
Vec3f getProjectionCenterMarkerColor () const
 
Vec3f getSelectedPointMarkerColor () const
 
Vec3f getPointMarkerColor () const
 
Vec3f getImageAxesColor () const
 
void restoreDefaultSettings ()
 
- Public Member Functions inherited from StelModule
 StelModule ()
 Constructor. Every derived class MUST call setObjectName(className) in its constructor.
 
virtual void deinit ()
 Called before the module will be deleted, and before the OpenGL context is suppressed. More...
 
virtual QSettings * getSettings ()
 Return module-specific settings. More...
 
virtual void update (double deltaTime)
 Update the module with respect to the time. More...
 
virtual QString getModuleVersion () const
 Get the version of the module, default is stellarium main version.
 
virtual QString getAuthorName () const
 Get the name of the module author.
 
virtual QString getAuthorEmail () const
 Get the email address of the module author.
 
virtual void handleMouseWheel (class QWheelEvent *)
 Handle mouse wheel. More...
 
virtual void handleKeys (class QKeyEvent *e)
 Handle key events. More...
 
virtual bool handlePinch (qreal scale, bool started)
 Handle pinch gesture events. More...
 

Properties

bool dialogVisible = false
 
bool imageEnabled = true
 
bool imageAxesEnabled = false
 
bool pointMarkersEnabled = true
 
bool projectionCenterMarkerEnabled = false
 
Vec3f selectedPointMarkerColor = Vec3f(0,0,0)
 
Vec3f pointMarkerColor = Vec3f(0,0,0)
 
Vec3f projectionCenterMarkerColor = Vec3f(0,0,0)
 
Vec3f imageAxesColor = Vec3f(0,0,0)
 

Additional Inherited Members

- Protected Member Functions inherited from StelModule
class StelActionaddAction (const QString &id, const QString &groupId, const QString &text, QObject *target, const char *slot, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action (call to slot) to the StelActionMgr object. More...
 
class StelActionaddAction (const QString &id, const QString &groupId, const QString &text, const char *slot, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action (call to own slot) to the StelActionMgr object. More...
 
StelActionaddAction (const QString &id, const QString &groupId, const QString &text, QObject *contextObject, std::function< void()> lambda, const QString &shortcut="", const QString &altShortcut="")
 convenience methods to add an action (call to Lambda functor) to the StelActionMgr object. More...
 

Member Function Documentation

◆ configureGui()

bool LensDistortionEstimator::configureGui ( bool  show = true)
overridevirtual

Detect or show the configuration GUI elements for the module.

This is to be used with plugins to display a configuration dialog from the plugin list window.

Parameters
showif true, make the configuration GUI visible. If false, hide the config GUI if there is one.
Returns
true if the module has a configuration GUI, else false.

Reimplemented from StelModule.

◆ draw()

void LensDistortionEstimator::draw ( StelCore core)
overridevirtual

Execute all the drawing functions for this module.

Parameters
corethe core to use for the drawing

Reimplemented from StelModule.

◆ getCallOrder()

double LensDistortionEstimator::getCallOrder ( StelModuleActionName  actionName) const
overridevirtual

Return the value defining the order of call for the given action For example if stars.callOrder[ActionDraw] == 10 and constellation.callOrder[ActionDraw] == 11, the stars module will be drawn before the constellations.

Parameters
actionNamethe name of the action for which we want the call order
Returns
the value defining the order. The closer to 0 the earlier the module's action will be called

Reimplemented from StelModule.

◆ handleMouseClicks()

void LensDistortionEstimator::handleMouseClicks ( QMouseEvent *  )
overridevirtual

Handle mouse clicks.

Please note that most of the interactions will be done through the GUI module.

Returns
set the event as accepted if it was intercepted

Reimplemented from StelModule.

◆ handleMouseMoves()

bool LensDistortionEstimator::handleMouseMoves ( int  x,
int  y,
Qt::MouseButtons  b 
)
overridevirtual

Handle mouse moves.

Please note that most of the interactions will be done through the GUI module.

Returns
true if the event was intercepted

Reimplemented from StelModule.

◆ init()

void LensDistortionEstimator::init ( )
overridevirtual

Initialize itself.

If the initialization takes significant time, the progress should be displayed on the loading bar.

Implements StelModule.