• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • edu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • extragear
  • edu
  • kstars
  • kstars
  • oal
filter.h
Go to the documentation of this file.
1 /***************************************************************************
2  filter.h - description
3 
4  -------------------
5  begin : Wednesday July 8, 2009
6  copyright : (C) 2009 by Prakash Mohan
7  email : [email protected]
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #ifndef FILTER_H_
19 #define FILTER_H_
20 
21 #include "oal/oal.h"
22 
23 #include <QString>
24 
30 class OAL::Filter
31 {
32  public:
33  Filter(const QString &id, const QString &model, const QString &vendor, const QString &type, const QString &color,
34  double exposure, int offset, bool useAutoFocus, const QString &lockedFilter, int absFocusPosition);
35 
36  QString id() const { return m_Id; }
37  QString name() const { return m_Name; }
38  QString model() const { return m_Model; }
39  QString vendor() const { return m_Vendor; }
40  QString type() const { return m_Type; }
41  QString color() const { return m_Color; }
42 
43  // Additional fields used by Ekos
44  int offset() const { return m_Offset; }
45  void setOffset(int _offset) { m_Offset = _offset; }
46 
47  double exposure() const { return m_Exposure; }
48  void setExposure(double _exposure) { m_Exposure = _exposure; }
49 
50  QString lockedFilter() const { return m_LockedFilter; }
51  void setLockedFilter(const QString &_filter) { m_LockedFilter = _filter; }
52 
53  bool useAutoFocus() const { return m_UseAutoFocus; }
54  void setUseAutoFocus(bool enabled) { m_UseAutoFocus = enabled; }
55 
56  int absoluteFocusPosition() { return m_AbsoluteFocusPosition; }
57  void setAbsoluteFocusPosition(int newAbsFocusPos) { m_AbsoluteFocusPosition = newAbsFocusPos; }
58 
59  private:
60  QString m_Id, m_Model, m_Vendor, m_Type, m_Color, m_Name, m_LockedFilter;
61  int m_Offset { 0 };
62  int m_AbsoluteFocusPosition { 0 };
63  double m_Exposure { 1.0 };
64  bool m_UseAutoFocus { false };
65 };
66 #endif
OAL::Filter::model
QString model() const
Definition: filter.h:38
OAL::Filter::type
QString type() const
Definition: filter.h:40
OAL::Filter::name
QString name() const
Definition: filter.h:37
OAL::Filter::id
QString id() const
Definition: filter.h:36
OAL::Filter::setAbsoluteFocusPosition
void setAbsoluteFocusPosition(int newAbsFocusPos)
Definition: filter.h:57
OAL::Filter::vendor
QString vendor() const
Definition: filter.h:39
OAL::Filter::setOffset
void setOffset(int _offset)
Definition: filter.h:45
OAL::Filter::exposure
double exposure() const
Definition: filter.h:47
oal.h
OAL::Filter
Information of user filters.
Definition: filter.h:30
OAL::Filter::Filter
Filter(const QString &id, const QString &model, const QString &vendor, const QString &type, const QString &color, double exposure, int offset, bool useAutoFocus, const QString &lockedFilter, int absFocusPosition)
Definition: filter.cpp:21
QString
OAL::Filter::absoluteFocusPosition
int absoluteFocusPosition()
Definition: filter.h:56
OAL::Filter::setExposure
void setExposure(double _exposure)
Definition: filter.h:48
OAL::Filter::useAutoFocus
bool useAutoFocus() const
Definition: filter.h:53
OAL::Filter::lockedFilter
QString lockedFilter() const
Definition: filter.h:50
OAL::Filter::color
QString color() const
Definition: filter.h:41
OAL::Filter::offset
int offset() const
Definition: filter.h:44
OAL::Filter::setUseAutoFocus
void setUseAutoFocus(bool enabled)
Definition: filter.h:54
OAL::Filter::setLockedFilter
void setLockedFilter(const QString &_filter)
Definition: filter.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sat Dec 7 2019 03:50:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

edu API Reference

Skip menu "edu API Reference"
  •     core
  • kstars

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal