  | 
  
    Isis 3 Programmer Reference
    
   | 
 
 
 
 
    8 #include "CubeStretch.h" 
   20     m_type(stretchType), m_bandNumber(bandNumber) {
 
   40     m_name = 
"DefaultStretch";
 
   52     m_name = 
"DefaultName";
 
   64     std::string stringFromBuffer(buff, blob.
Size());
 
   67     Parse(QString::fromStdString(stringFromBuffer));
 
   73   CubeStretch::~CubeStretch() {
 
   90     std::string blobString = 
Text().toStdString();
 
   91     blob.
setData(blobString.c_str(), blobString.size());
 
  
 
QString m_type
The name of the stretch.
 
A single keyword-value pair.
 
void setData(const char *buffer, int nbytes)
Set the data stored in the BLOB.
 
bool operator==(CubeStretch &stretch2)
Check if the CubeStretches are equal.
 
void setName(QString name)
Set the Stretch name.
 
Stores stretch information for a cube.
 
int getBandNumber() const
Get the band number for the stretch.
 
char * getBuffer()
Get the internal data buff of the Blob.
 
PvlObject & Label()
Accessor method that returns a PvlObject containing the Blob label.
 
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.
 
int m_bandNumber
Type of stretch. This is only currently used in the AdvancedStretchTool.
 
QString Text() const
Converts stretch pair to a string.
 
int Size() const
Accessor method that returns the number of bytes in the blob data.
 
Isis::Blob toBlob() const
Serialize the CubeStretch to a Blob.
 
void setBandNumber(int bandNumber)
Set the band number for the stretch.
 
QString getType() const
Get the Type of Stretch.
 
void setType(QString stretchType)
Set the type of Stretch.
 
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 getName() const
Get the Stretch name.
 
This is free and unencumbered software released into the public domain.