Isis Developer Reference
CubeStretch.h
Go to the documentation of this file.
1#ifndef CubeStretch_h
2#define CubeStretch_h
3
9/* SPDX-License-Identifier: CC0-1.0 */
10
11#include "Stretch.h"
12#include "Blob.h"
13
14namespace Isis {
27 class CubeStretch : public Stretch {
28 public:
29 CubeStretch(QString name="DefaultStretch", QString stretchType="Default", int bandNumber = 1);
30
31 CubeStretch(CubeStretch const& stretch);
32 CubeStretch(Stretch const& stretch);
33 CubeStretch(Stretch const& stretch, QString type);
34 CubeStretch(Blob blob);
36
37 bool operator==(CubeStretch& stretch2);
38
39 Isis::Blob toBlob() const;
40
41 QString getType() const;
42 void setType(QString stretchType);
43
44 QString getName() const;
45 void setName(QString name);
46
47 int getBandNumber() const;
48 void setBandNumber(int bandNumber);
49
50 private:
51 QString m_name;
52 QString m_type;
53 int m_bandNumber;
54 };
55};
56
57#endif
Definition Blob.h:51
Stores stretch information for a cube.
Definition CubeStretch.h:27
void setBandNumber(int bandNumber)
Set the band number for the stretch.
Definition CubeStretch.cpp:165
~CubeStretch()
Definition CubeStretch.cpp:73
bool operator==(CubeStretch &stretch2)
Check if the CubeStretches are equal.
Definition CubeStretch.cpp:103
int getBandNumber() const
Get the band number for the stretch.
Definition CubeStretch.cpp:155
void setName(QString name)
Set the Stretch name.
Definition CubeStretch.cpp:135
Isis::Blob toBlob() const
Serialize the CubeStretch to a Blob.
Definition CubeStretch.cpp:84
QString getName() const
Get the Stretch name.
Definition CubeStretch.cpp:145
CubeStretch(QString name="DefaultStretch", QString stretchType="Default", int bandNumber=1)
Constructs a CubeStretch object with default mapping of special pixel values to themselves and a prov...
Definition CubeStretch.cpp:19
QString getType() const
Get the Type of Stretch.
Definition CubeStretch.cpp:115
void setType(QString stretchType)
Set the type of Stretch.
Definition CubeStretch.cpp:125
Pixel value mapper.
Definition Stretch.h:58
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16