Isis 3 Programmer Reference
CubeStretch.h
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;
54 };
55};
56
57#endif
Stores stretch information for a cube.
Definition CubeStretch.h:27
void setBandNumber(int bandNumber)
Set the band number for the stretch.
int m_bandNumber
Type of stretch. This is only currently used in the AdvancedStretchTool.
Definition CubeStretch.h:53
bool operator==(CubeStretch &stretch2)
Check if the CubeStretches are equal.
int getBandNumber() const
Get the band number for the stretch.
void setName(QString name)
Set the Stretch name.
Isis::Blob toBlob() const
Serialize the CubeStretch to a Blob.
QString getName() const
Get the Stretch name.
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...
QString m_type
The name of the stretch.
Definition CubeStretch.h:52
QString getType() const
Get the Type of Stretch.
void setType(QString stretchType)
Set the type of Stretch.
Pixel value mapper.
Definition Stretch.h:58
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16