ifw-odp  4.0.0-pre1
Public Member Functions | Protected Attributes | List of all members
odp::ImageProperties Class Reference

This class is C++ wrapper for a CPL properties list object. It provides a simplified interface that allows to call CPL routines from INS application. More...

#include <imageProperties.hpp>

Inheritance diagram for odp::ImageProperties:
odp::Error

Public Member Functions

 ImageProperties ()
 Class constructor. More...
 
virtual ~ImageProperties ()
 Class destructor. More...
 
constexpr bool IsPropertyList () const
 Check is CPL image list is valid. More...
 
cpl_propertylist * GetCplPropertyList () const
 Get CPL image list. More...
 
int GetPixelDepth () const
 
int GetWidth () const
 
int GetHeight () const
 
int GetNumAxes () const
 
int GetPlanes () const
 
bool IsCube () const
 
void SetCplPropertyList (cpl_propertylist *propertyList)
 Set CPL image list. More...
 
virtual void Load (const std::string filename, const cpl_size extension=0)
 Load CPL image from a FITS file. More...
 
virtual void Unload ()
 Release CPL image list. More...
 
- Public Member Functions inherited from odp::Error
 Error ()
 Class constructor. More...
 
virtual ~Error ()
 Class destructor. More...
 
void ResetCplError ()
 Reset CPL error and internal error flag. More...
 
bool CheckCplError () const
 Check if there is an error in CPL. More...
 

Protected Attributes

cpl_propertylist * m_cpl_property_list
 

Additional Inherited Members

- Protected Member Functions inherited from odp::Error
std::string GetErrorMsg () const
 Get CPL error message. More...
 

Detailed Description

This class is C++ wrapper for a CPL properties list object. It provides a simplified interface that allows to call CPL routines from INS application.

ImageProperties - CPL property list wrapper class

See also
CPL Reference: http://www.eso.org/observing/cpl/reference_3.0/ or above

Constructor & Destructor Documentation

◆ ImageProperties()

odp::ImageProperties::ImageProperties ( )

Class constructor.

Returns
none

◆ ~ImageProperties()

odp::ImageProperties::~ImageProperties ( )
virtual

Class destructor.

Returns
none
See also
CPL function: cpl_imagelist_delete

Member Function Documentation

◆ GetCplPropertyList()

cpl_propertylist* odp::ImageProperties::GetCplPropertyList ( ) const
inline

Get CPL image list.

Returns
CPL image listODP_IMAGE_PROPERTIES_HPP

◆ GetHeight()

int odp::ImageProperties::GetHeight ( ) const

◆ GetNumAxes()

int odp::ImageProperties::GetNumAxes ( ) const

◆ GetPixelDepth()

int odp::ImageProperties::GetPixelDepth ( ) const

◆ GetPlanes()

int odp::ImageProperties::GetPlanes ( ) const

◆ GetWidth()

int odp::ImageProperties::GetWidth ( ) const

◆ IsCube()

bool odp::ImageProperties::IsCube ( ) const

◆ IsPropertyList()

constexpr bool odp::ImageProperties::IsPropertyList ( ) const
inlineconstexpr

Check is CPL image list is valid.

Returns
TRUE is CPL image list is not nullptr, FALSE otherwise.

◆ Load()

void odp::ImageProperties::Load ( const std::string  filename,
const cpl_size  extension = 0 
)
virtual

Load CPL image from a FITS file.

Parameters
[in]filenameAbsolute or relative path name of the file to be loaded.
[in]extensionExtension id to be loaded, default is zero.
[in]typeCPL type used to store the input image, default is FLOAT.
Returns
none
See also
CPL function: cpl_imagelist_load

◆ SetCplPropertyList()

void odp::ImageProperties::SetCplPropertyList ( cpl_propertylist *  propertyList)

Set CPL image list.

Parameters
[in]imageListCPL image list
Returns
none

◆ Unload()

void odp::ImageProperties::Unload ( )
virtual

Release CPL image list.

Returns
none
    Delete image list object from memory.
See also
CPL function: cpl_imagelist_delete

Member Data Documentation

◆ m_cpl_property_list

cpl_propertylist* odp::ImageProperties::m_cpl_property_list
protected

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