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 
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;
53  int m_bandNumber;
54  };
55 };
56 
57 #endif
Stretch.h
Isis::CubeStretch::~CubeStretch
~CubeStretch()
Definition: CubeStretch.cpp:73
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::Blob::setData
void setData(const char *buffer, int nbytes)
Set the data stored in the BLOB.
Definition: Blob.cpp:382
CubeStretch.h
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::Blob::getBuffer
char * getBuffer()
Get the internal data buff of the Blob.
Definition: Blob.cpp:546
Isis::Blob::Label
PvlObject & Label()
Accessor method that returns a PvlObject containing the Blob label.
Definition: Blob.cpp:151
Isis::Stretch::Parse
void Parse(const QString &pairs)
Parses a string of the form "i1:o1 i2:o2...iN:oN" where each i:o represents an input:output pair.
Definition: Stretch.cpp:181
Blob.h
Isis::Stretch::Text
QString Text() const
Converts stretch pair to a string.
Definition: Stretch.cpp:268
Isis::Blob::Size
int Size() const
Accessor method that returns the number of bytes in the blob data.
Definition: Blob.cpp:142
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