Workspace 6.21.5
Public Member Functions | Protected Attributes | List of all members
ImageTileSet::Image Class Reference

#include <DataAnalysis/DataStructures/imagetileset.h>

Inheritance diagram for ImageTileSet::Image:
[legend]

Public Member Functions

 Image (const Image &other)=delete
 
 Image (std::unique_ptr< DataExecution::DataObject > data)
 
 ~Image () override=default
 
virtual QImage asQImage () const
 
Imageclone () const override
 
DataExecution::DataObjectdata ()
 
const DataExecution::DataObjectdata () const
 
Imageoperator= (const Image &other)=delete
 
virtual QSize size () const
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()=default
 
virtual Clonableclone () const =0
 

Protected Attributes

std::unique_ptr< DataExecution::DataObjectdata_
 

Detailed Description

Holds a Workspace data type representing an image. Usually QImage but can be extended by other plugins to hold a different type (eg. cv::Mat)

Constructor & Destructor Documentation

◆ Image() [1/2]

Image ( std::unique_ptr< DataExecution::DataObject data)
inline

Takes ownership of data

◆ Image() [2/2]

Image ( const Image other)
delete

◆ ~Image()

~Image ( )
overridedefault

Member Function Documentation

◆ asQImage()

virtual QImage asQImage ( ) const
inlinevirtual

◆ clone()

Image * clone ( ) const
inlineoverridevirtual
Returns
A clone of this object.
Note
Subclasses would normally return their own type rather than the Clonable type. The C++ language rules allow a more derived type to be returned from a virtual function and the compiler will still treat it as a valid override.

Implements Clonable.

◆ data() [1/2]

DataExecution::DataObject & data ( )
inline

◆ data() [2/2]

const DataExecution::DataObject & data ( ) const
inline

◆ operator=()

Image & operator= ( const Image other)
delete

◆ size()

virtual QSize size ( ) const
inlinevirtual

Member Data Documentation

◆ data_

std::unique_ptr<DataExecution::DataObject> data_
protected