Loading [MathJax]/jax/output/NativeMML/config.js
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 
14 namespace 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);
35  ~CubeStretch();
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
Isis::CubeStretch::m_type
QString m_type
The name of the stretch.
Definition: CubeStretch.h:52
Isis::Stretch
Pixel value mapper.
Definition: Stretch.h:58
Isis::CubeStretch::operator==
bool operator==(CubeStretch &stretch2)
Check if the CubeStretches are equal.
Definition: CubeStretch.cpp:103
Isis::CubeStretch::setName
void setName(QString name)
Set the Stretch name.
Definition: CubeStretch.cpp:135
Isis::CubeStretch
Stores stretch information for a cube.
Definition: CubeStretch.h:27
Isis::CubeStretch::getBandNumber
int getBandNumber() const
Get the band number for the stretch.
Definition: CubeStretch.cpp:155
Isis::CubeStretch::m_bandNumber
int m_bandNumber
Type of stretch. This is only currently used in the AdvancedStretchTool.
Definition: CubeStretch.h:53
Isis::CubeStretch::toBlob
Isis::Blob toBlob() const
Serialize the CubeStretch to a Blob.
Definition: CubeStretch.cpp:84
Isis::CubeStretch::setBandNumber
void setBandNumber(int bandNumber)
Set the band number for the stretch.
Definition: CubeStretch.cpp:165
Isis::CubeStretch::getType
QString getType() const
Get the Type of Stretch.
Definition: CubeStretch.cpp:115
Isis::CubeStretch::setType
void setType(QString stretchType)
Set the type of Stretch.
Definition: CubeStretch.cpp:125
Isis::CubeStretch::CubeStretch
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
Isis::Blob
Definition: Blob.h:51
Isis::CubeStretch::getName
QString getName() const
Get the Stretch name.
Definition: CubeStretch.cpp:145
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:16:22