ACF $AcfVersion:0$
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
icmm::CSpectralColorSpecificationBase Class Reference

#include <CSpectralColorSpecificationBase.h>

Inheritance diagram for icmm::CSpectralColorSpecificationBase:
icmm::ISpectralColorSpecification icmm::IColorSpecification icmm::ISpectrumInfoProvider iser::IObject istd::IChangeable iser::ISerializable istd::IPolymorphic istd::IChangeable istd::IPolymorphic

Public Member Functions

 CSpectralColorSpecificationBase (const CSpectralColorSpecificationBase &spec)
 
virtual const ISpectrumInfoGetSpectrumInfo () const override
 
virtual SpectrumType GetSpectrumType () const override
 
virtual bool Serialize (iser::IArchive &archive) override
 Load or store state of this object as a archive stream.
 
virtual int GetSupportedOperations () const override
 Get set of flags for supported operations.
 
virtual bool CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS) override
 Copy this object from another one.
 
virtual bool IsEqual (const istd::IChangeable &other) const override
 Compare this object with another object.
 
- Public Member Functions inherited from icmm::ISpectralColorSpecification
 I_DECLARE_ENUM (SpectrumType, Reflective, Emissive, Transmissive, TotalTransmissive)
 
- Public Member Functions inherited from icmm::IColorSpecification
 I_DECLARE_ENUM (SpecType, Tristimulus, Spectral)
 
- Public Member Functions inherited from iser::IObject
virtual QByteArray GetFactoryId () const
 
- Public Member Functions inherited from iser::ISerializable
virtual quint32 GetMinimalVersion (int versionId) const
 Get minimal needed version to correct storing of this data.
 
- Public Member Functions inherited from istd::IChangeable
virtual istd::TUniqueInterfacePtr< istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object.
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state.
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction.
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction.
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes.
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

 CSpectralColorSpecificationBase (const ISpectrumInfo &spectrumInfo)
 
 CSpectralColorSpecificationBase (istd::CIntRange range, int step)
 
- Protected Member Functions inherited from icmm::ISpectralColorSpecification
virtual SpecType GetSpecificationType () const final
 Gets the logical type of the specification.
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event.
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event.
 

Protected Attributes

SpectrumType m_spectrumType
 
CSpectrumInfo m_info
 

Additional Inherited Members

- Public Types inherited from icmm::ISpectralColorSpecification
enum  SpectrumType { Reflective = 1 , Emissive , Transmissive , TotalTransmissive }
 
typedef std::shared_ptr< const ISpectralColorSpecificationConstSpectralColorSpecPtr
 
typedef std::shared_ptr< ISpectralColorSpecificationSpectralColorSpecPtr
 
- Public Types inherited from icmm::IColorSpecification
enum  SpecType { Tristimulus , Spectral }
 
typedef std::shared_ptr< const IColorSpecificationConstColorSpecPtr
 
typedef std::shared_ptr< IColorSpecificationColorSpecPtr
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0 , CF_ALL_DATA , CF_ANY , CF_DESTROYING ,
  CF_DELEGATED , CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0 , SO_OBSERVE = 1 << 0 , SO_COPY = 1 << 1 , SO_CLONE = 1 << 2 ,
  SO_COMPARE = 1 << 3 , SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT , CM_WITHOUT_REFS , CM_WITH_REFS , CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 
typedef QMultiMap< QByteArray, QVariant > ChangeInfoMap
 
- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes.
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set.
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set.
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set.
 

Detailed Description

Definition at line 14 of file CSpectralColorSpecificationBase.h.

Constructor & Destructor Documentation

◆ CSpectralColorSpecificationBase() [1/3]

icmm::CSpectralColorSpecificationBase::CSpectralColorSpecificationBase ( const CSpectralColorSpecificationBase spec)

◆ CSpectralColorSpecificationBase() [2/3]

icmm::CSpectralColorSpecificationBase::CSpectralColorSpecificationBase ( const ISpectrumInfo spectrumInfo)
protected

◆ CSpectralColorSpecificationBase() [3/3]

icmm::CSpectralColorSpecificationBase::CSpectralColorSpecificationBase ( istd::CIntRange  range,
int  step 
)
protected

Member Function Documentation

◆ CopyFrom()

virtual bool icmm::CSpectralColorSpecificationBase::CopyFrom ( const istd::IChangeable object,
CompatibilityMode  mode = CM_WITHOUT_REFS 
)
overridevirtual

Copy this object from another one.

Default implementation in istd::IChangeable does nothing.

Reimplemented from istd::IChangeable.

◆ GetSpectrumInfo()

virtual const ISpectrumInfo * icmm::CSpectralColorSpecificationBase::GetSpectrumInfo ( ) const
overridevirtual

◆ GetSpectrumType()

virtual SpectrumType icmm::CSpectralColorSpecificationBase::GetSpectrumType ( ) const
overridevirtual

◆ GetSupportedOperations()

virtual int icmm::CSpectralColorSpecificationBase::GetSupportedOperations ( ) const
overridevirtual

Get set of flags for supported operations.

See also
SupportedOperations

Reimplemented from istd::IChangeable.

◆ IsEqual()

virtual bool icmm::CSpectralColorSpecificationBase::IsEqual ( const istd::IChangeable object) const
overridevirtual

Compare this object with another object.

Parameters
objectObject to be compared
Returns
true if the objects are identical and false otherwise.

Reimplemented from istd::IChangeable.

◆ Serialize()

virtual bool icmm::CSpectralColorSpecificationBase::Serialize ( iser::IArchive archive)
overridevirtual

Load or store state of this object as a archive stream.

Type of operation is depending on archive type.

See also
iser::IArchive

Implements iser::ISerializable.

Member Data Documentation

◆ m_info

CSpectrumInfo icmm::CSpectralColorSpecificationBase::m_info
protected

Definition at line 37 of file CSpectralColorSpecificationBase.h.

◆ m_spectrumType

SpectrumType icmm::CSpectralColorSpecificationBase::m_spectrumType
protected

Definition at line 36 of file CSpectralColorSpecificationBase.h.


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