digiKam
Digikam::FocusPoint Class Reference

Public Types

enum  TypePoint { Inactive = 0 , InFocus = 1 , Selected = 2 , SelectedInFocus = 3 }
 

Public Member Functions

 FocusPoint ()
 
 FocusPoint (const FocusPoint &other)
 
 FocusPoint (const QRectF &rectF)
 
 FocusPoint (float x_position, float y_position, float width, float height)
 
 FocusPoint (float x_position, float y_position, float width, float height, TypePoint type)
 
QPointF getCenterPosition () const
 
QRectF getRect () const
 
QRect getRectBySize (const QSize &size) const
 
QSizeF getSize () const
 
TypePoint getType () const
 
QString getTypeDescription () const
 
FocusPointoperator= (const FocusPoint &other)
 
void setCenterPosition (float x_position, float y_position)
 
void setRect (const QRectF &rectF)
 
void setSize (float width, float height)
 
void setType (TypePoint type)
 
 ~FocusPoint ()
 

Member Enumeration Documentation

◆ TypePoint

Enumerator
Inactive 

The AF-point is not active.

InFocus 

The AF-point is in focus.

Selected 

The AF-point is selected but not in focus.

SelectedInFocus 

The AF-point is selected and in focus.

Constructor & Destructor Documentation

◆ FocusPoint() [1/5]

Digikam::FocusPoint::FocusPoint ( float  x_position,
float  y_position,
float  width,
float  height,
TypePoint  type 
)

Focus point container contructors. Position and size are in float and a relative to the original image size. Typically, the area is define as percents of values depending of image size used to extract information from metadata. Like this, focus area can be drawn easily over a resized version of image.

◆ FocusPoint() [2/5]

Digikam::FocusPoint::FocusPoint ( float  x_position,
float  y_position,
float  width,
float  height 
)

References Inactive.

◆ FocusPoint() [3/5]

Digikam::FocusPoint::FocusPoint ( const QRectF &  rectF)
explicit

References Inactive, and setRect().

◆ FocusPoint() [4/5]

Digikam::FocusPoint::FocusPoint ( const FocusPoint other)

◆ FocusPoint() [5/5]

Digikam::FocusPoint::FocusPoint ( )

◆ ~FocusPoint()

Digikam::FocusPoint::~FocusPoint ( )

Member Function Documentation

◆ getCenterPosition()

QPointF Digikam::FocusPoint::getCenterPosition ( ) const

◆ getRect()

QRectF Digikam::FocusPoint::getRect ( ) const

References getCenterPosition(), and getSize().

Referenced by Digikam::operator<<().

◆ getRectBySize()

QRect Digikam::FocusPoint::getRectBySize ( const QSize &  size) const

Return the real aera properties in image coordinates depending of the size.

Referenced by Digikam::FocusPointGroup::Private::createItem().

◆ getSize()

QSizeF Digikam::FocusPoint::getSize ( ) const

◆ getType()

FocusPoint::TypePoint Digikam::FocusPoint::getType ( ) const

◆ getTypeDescription()

QString Digikam::FocusPoint::getTypeDescription ( ) const

References getType(), InFocus, Selected, and SelectedInFocus.

Referenced by Digikam::operator<<().

◆ operator=()

FocusPoint & Digikam::FocusPoint::operator= ( const FocusPoint other)

Equivalent to the copy constructor

◆ setCenterPosition()

void Digikam::FocusPoint::setCenterPosition ( float  x_position,
float  y_position 
)

Accessors to relative properties of focus point area.

Referenced by Digikam::CanonInternal::set_point_position().

◆ setRect()

void Digikam::FocusPoint::setRect ( const QRectF &  rectF)

Referenced by FocusPoint().

◆ setSize()

void Digikam::FocusPoint::setSize ( float  width,
float  height 
)

◆ setType()

void Digikam::FocusPoint::setType ( TypePoint  type)

Focus point type properties accessor. See TypePoint enum definition for details.

Referenced by Digikam::CanonInternal::set_point_type(), and Digikam::FocusPointGroup::slotAddItemFinished().


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