Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::RGBALowRangeValidator Class Reference

#include <ColorValidator.h>

Inherits AzQtComponents::ColorValidator.

Public Member Functions

bool isValid (const Internal::ColorController *controller) override
 Returns true if the input color is valid, false otherwise. False will trigger adjust to be called.
 
void adjust (Internal::ColorController *controller) override
 Returns color adjusted to something acceptable.
 
void warn () override
 Must emit colorWarning when called.
 
 ColorValidator (QObject *parent=nullptr)
 
- Public Member Functions inherited from AzQtComponents::ColorValidator
 ColorValidator (QObject *parent=nullptr)
 
virtual bool isValid (const Internal::ColorController *controller)=0
 Returns true if the input color is valid, false otherwise. False will trigger adjust to be called.
 
virtual void adjust (Internal::ColorController *controller)=0
 Returns color adjusted to something acceptable.
 
virtual void warn ()=0
 Must emit colorWarning when called.
 
void acceptColor ()
 Emits the colorAccepted signal.
 

Additional Inherited Members

- Signals inherited from AzQtComponents::ColorValidator
void colorWarning (const QString &message)
 
void colorAccepted ()
 

Detailed Description

Validates the input colors are in not high dynamic range (i.e. that the colors are in the 0.0 - 1.0 range)

Member Function Documentation

◆ adjust()

void AzQtComponents::RGBALowRangeValidator::adjust ( Internal::ColorController *  controller)
overridevirtual

Returns color adjusted to something acceptable.

Implements AzQtComponents::ColorValidator.

◆ isValid()

bool AzQtComponents::RGBALowRangeValidator::isValid ( const Internal::ColorController *  controller)
overridevirtual

Returns true if the input color is valid, false otherwise. False will trigger adjust to be called.

Implements AzQtComponents::ColorValidator.

◆ warn()

void AzQtComponents::RGBALowRangeValidator::warn ( )
overridevirtual

Must emit colorWarning when called.

Implements AzQtComponents::ColorValidator.


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