Torc  0.1
Public Slots | Properties | List of all members
TorcTransitionControl Class Reference

#include <torctransitioncontrol.h>

Inheritance diagram for TorcTransitionControl:
[legend]

Public Slots

bool event (QEvent *Event) override
 
void Restart (void)
 
void SetAnimationValue (double Value)
 Our main output, value, is read only. So the animation operates on a proxy, animationValue. More...
 
double GetAnimationValue (void)
 
- Public Slots inherited from TorcControl
void SubscriberDeleted (QObject *Subscriber)
 
void InputValueChanged (double Value)
 
void InputValidChanged (bool Valid)
 
- Public Slots inherited from TorcDevice
bool GetValid (void)
 
double GetValue (void)
 
double GetDefaultValue (void)
 
QString GetModelId (void)
 
QString GetUniqueId (void)
 
QString GetUserName (void)
 
QString GetUserDescription (void)
 

Properties

double animationValue
 
- Properties inherited from TorcDevice
bool valid
 

Additional Inherited Members

- Public Types inherited from TorcControl
enum  Type { Logic, Timer, Transition }
 
- Signals inherited from TorcDevice
void ValidChanged (bool Valid)
 
void ValueChanged (double Value)
 
- Public Member Functions inherited from TorcControl
virtual bool IsPassthrough (void)
 Only certain logic controls can be passthrough. More...
 
virtual bool AllowInputs (void) const
 Most controls have an input side. More...
 
bool IsKnownInput (const QString &Input) const
 
bool IsKnownOutput (const QString &Output) const
 
QString GetUIName (void) override
 
- Public Member Functions inherited from TorcReferenceCounter
 TorcReferenceCounter (void)
 
virtual ~TorcReferenceCounter (void)=default
 
void UpRef (void)
 
virtual bool DownRef (void)
 
bool IsShared (void)
 
- Public Member Functions inherited from TorcHTTPService
 TorcHTTPService (QObject *Parent, const QString &Signature, const QString &Name, const QMetaObject &MetaObject, const QString &Blacklist=QStringLiteral(""))
 
virtual ~TorcHTTPService ()
 
void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
 
QVariantMap ProcessRequest (const QString &Method, const QVariant &Parameters, QObject *Connection, bool Authenticated) override
 
QString GetMethod (int Index)
 
QVariant GetProperty (int Index)
 Get the value of a given property. More...
 
QVariantMap GetServiceDetails (void)
 Return a QVariantMap describing the services methods and properties. More...
 
virtual QString GetPresentationURL (void)
 
- Public Member Functions inherited from TorcHTTPHandler
 TorcHTTPHandler (const QString &Signature, const QString &Name)
 
virtual ~TorcHTTPHandler ()
 
QString Signature (void) const
 
bool GetRecursive (void) const
 
QString Name (void) const
 
- Static Public Member Functions inherited from TorcControl
static bool ParseTimeString (const QString &Time, int &Days, int &Hours, int &Minutes, int &Seconds, quint64 &DurationInSeconds)
 Parse a Torc time string into days, hours, minutes and, if present, seconds. More...
 
static QString DurationToString (int Days, quint64 Duration)
 
- Static Public Member Functions inherited from TorcReferenceCounter
static void EventLoopEnding (bool Ending)
 
- Protected Member Functions inherited from TorcControl
 TorcControl (TorcControl::Type Type, const QVariantMap &Details)
 
virtual ~TorcControl ()=default
 
void Graph (QByteArray *Data)
 Add this control to the state graph. More...
 
bool Finish (void)
 Finish setup of the control. More...
 
void InputValidChangedPriv (QObject *Input, bool Valid)
 
void CheckInputValues (void)
 
void SetValue (double Value) override
 
void SetValid (bool Valid) override
 
bool CheckForCircularReferences (const QString &UniqueId, const QString &Path) const
 
- Protected Member Functions inherited from TorcDevice
virtual ~TorcDevice ()
 
- Protected Member Functions inherited from TorcHTTPService
void HandleSubscriberDeleted (QObject *Subscriber)
 
- Static Protected Member Functions inherited from TorcHTTPHandler
static bool MethodIsAuthorised (TorcHTTPRequest &Request, int Allowed)
 Check the current request is authorised and set the authentication header if not. More...
 
static void HandleOptions (TorcHTTPRequest &Request, int Allowed)
 
static void HandleFile (TorcHTTPRequest &Request, const QString &Filename, int Cache)
 
- Protected Attributes inherited from TorcControl
bool m_parsed
 
bool m_validated
 
QStringList m_inputList
 
QStringList m_outputList
 
QMap< QObject *, QString > m_inputs
 
QMap< QObject *, QString > m_outputs
 
QMap< QObject *, double > m_inputValues
 
QMap< QObject *, double > m_lastInputValues
 
QMap< QObject *, bool > m_inputValids
 
bool m_allInputsValid
 
- Protected Attributes inherited from TorcDevice
double value
 
double defaultValue
 
QString modelId
 
QString uniqueId
 
QString userName
 
QString userDescription
 
QMutex lock
 
bool wasInvalid
 
- Protected Attributes inherited from TorcReferenceCounter
QAtomicInt m_refCount
 
- Protected Attributes inherited from TorcHTTPService
QReadWriteLock m_httpServiceLock
 
- Protected Attributes inherited from TorcHTTPHandler
QString m_signature
 
bool m_recursive
 
QString m_name
 
- Static Protected Attributes inherited from TorcDevice
static QHash< QString, TorcDevice * > * gDeviceList = new QHash<QString,TorcDevice*>()
 
static QMutex * gDeviceListLock = new QMutex(QMutex::Recursive)
 
- Static Protected Attributes inherited from TorcReferenceCounter
static bool m_eventLoopEnding = false
 

Detailed Description

A control to transition an output between 2 levels over a period of time. A variety of transition types are available (for a complete reference see the Qt documentation). A linear transition will move smoothly between the 2 levels and other transitions may mimic more natural fluctuations (such as solunar intensity).

The custom 'LinearLED' transition implements the CIE 1931 formula for adjusting an output for perceived brightness.

Definition at line 11 of file torctransitioncontrol.h.

Member Function Documentation

bool TorcTransitionControl::event ( QEvent *  Event)
overrideslot

Definition at line 239 of file torctransitioncontrol.cpp.

double TorcTransitionControl::GetAnimationValue ( void  )
slot

Definition at line 421 of file torctransitioncontrol.cpp.

void TorcTransitionControl::Restart ( void  )
slot

Definition at line 256 of file torctransitioncontrol.cpp.

void TorcTransitionControl::SetAnimationValue ( double  Value)
slot

Our main output, value, is read only. So the animation operates on a proxy, animationValue.

Definition at line 414 of file torctransitioncontrol.cpp.

Property Documentation

double TorcTransitionControl::animationValue
read

Definition at line 14 of file torctransitioncontrol.h.


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