OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Classes | Public Member Functions | Private Attributes | List of all members
ossimSrcRecord Class Reference

Class used for parsing the command line *.src files. More...

#include <ossimSrcRecord.h>

Classes

struct  PixelFlipParams
 

Public Member Functions

 ossimSrcRecord ()
 Class used for parsing the command line *.src files. More...
 
 ossimSrcRecord (const ossimKeywordlist &kwl, ossim_uint32 index=0, ossimString prefix_str="image")
 Constructs given an in-memory KWL and record index. More...
 
bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 Initializes record from an in-memory KWL and prefix. More...
 
bool valid () const
 Returns TRUE if record is valid. More...
 
const ossimFilenamegetFilename () const
 
ossim_int32 getEntryIndex () const
 
const ossimFilenamegetSupportDir () const
 
const ossimStringgetHistogramOp () const
 
const std::vector< ossim_uint32 > & getBands () const
 
const double & getWeight () const
 
const PixelFlipParamsgetPixelFlipParams () const
 
const ossimFilenamegetOverviewPath () const
 See note below on these data members. More...
 
const ossimFilenamegetHistogramPath () const
 
const ossimFilenamegetMaskPath () const
 
const ossimFilenamegetGeomPath () const
 
void setFilename (const ossimFilename &f)
 
void setEntryIndex (ossim_int32 i)
 
void setOverview (const ossimFilename &f)
 
void setMask (const ossimFilename &f)
 
void setHistogram (const ossimFilename &f)
 
void setHistogramOp (const ossimString &s)
 
void setGeom (const ossimFilename &f)
 
void setBands (const std::vector< ossim_uint32 > &v)
 
void setWeight (const double &weight)
 
void setRgbDataBool (bool isRgbData)
 
void setSupportDir (const ossimFilename &f)
 Sets supplementary data files dir. More...
 
bool isVectorData () const
 Returns TRUE if the record represents a vector data set: More...
 
bool isRgbData () const
 Returns TRUE if the record represents an rgb data set: More...
 
ossimFilename getRgbFilename (int band) const
 
ossimFilename getRgbHistogramPath (int band) const
 
ossimString getRgbHistogramOp (int band) const
 
ossimFilename getRgbOverviewPath (int band) const
 
const ossimKeywordlistgetAttributesKwl () const
 Returns the KWL containing the desired vector representation properties. More...
 

Private Attributes

ossimFilename m_filename
 
ossim_int32 m_entryIndex
 
ossimFilename m_supportDir
 
std::vector< ossim_uint32m_bandList
 
ossimString m_histogramOp
 
double m_weight
 
ossimFilename m_overviewPath
 The following data members are usually just a copy of m_supportDir, but are provided in order to support legacy systems where paths to OVR, thumbnails and histogram files. More...
 
ossimFilename m_histogramPath
 
ossimFilename m_maskPath
 
ossimFilename m_geomPath
 
bool m_isVectorData
 The following data members allow users to render vector data. More...
 
ossimKeywordlist m_attributesKwl
 
std::vector< ossimStringm_rgbFilenames
 
std::vector< ossimStringm_rgbHistogramPaths
 
std::vector< ossimStringm_rgbHistogramOps
 
std::vector< ossimStringm_rgbOverviewPaths
 
bool m_isRgbData
 
PixelFlipParams m_pixelFlipParams
 

Detailed Description

Class used for parsing the command line *.src files.

This is a scheme for providing input file information to am ossim app such as ossim-orthoigen.

The following keywords with image prefixes as shown are considered:

image0.file: <image_filename>
image0.entry: <image_index_in_multi_image_file> (unsigned integer) image0.ovr: <full/path/to/overview_file.ovr> image0.hist: <full/path/to/histogram.his> image0.hist-op: auto-minmax | std-stretch N (N=1|2|3) image0.support: <path_to_support_files> image0.rgb: R,G,B (unsigned integers starting with 1) image0.mask: <filename> image0.opacity: <double> image0.replacement_mode: <REPLACE_BAND_IF_TARGET | REPLACE_BAND_IF_PARTIAL_TARGET | REPLACE_ALL_BANDS_IF_ANY_TARGET | REPLACE_ALL_BANDS_IF_PARTIAL_TARGET | REPLACE_ONLY_FULL_TARGETS> image0.clamp.min: <double> image0.clamp.max: <double> image0.clip.min: <double> image0.clip.max: <double>

vector0.file: <image_filename>
vector0.entry: <image_index_in_multi_image_file> (unsigned integer) vector0.query: <select query>=""> vector0.line.color: <R, G, B> (255,255,255) vector0.line.width: <line width>=""> (unsigned integer) vector0.fill.color: <R, G, B> (255,0,0) vector0.fill.opacity: <opacity> (unsigned integer)

The "support" keyword can be specified in lieu of "ovr" and "hist" when the latter reside in the same external directory. This directory can also contain external image geometry files. If a support dir is provided without an ovr or hist specification, then default filenames are derived from the image filename, but with the support dir as the path.

Multiple files can be specified by incrementing the prefix image index.

Definition at line 62 of file ossimSrcRecord.h.

Constructor & Destructor Documentation

◆ ossimSrcRecord() [1/2]

ossimSrcRecord::ossimSrcRecord ( )

Class used for parsing the command line *.src files.

This is a scheme for providing input file information to am ossim app such as ossim-orthoigen.

Definition at line 20 of file ossimSrcRecord.cpp.

21 : m_entryIndex(-1),
22  m_weight(0.0),
23  m_isVectorData(false),
24  m_isRgbData(false)
25 {}
bool m_isVectorData
The following data members allow users to render vector data.
ossim_int32 m_entryIndex

◆ ossimSrcRecord() [2/2]

ossimSrcRecord::ossimSrcRecord ( const ossimKeywordlist kwl,
ossim_uint32  index = 0,
ossimString  prefix_str = "image" 
)

Constructs given an in-memory KWL and record index.

Definition at line 30 of file ossimSrcRecord.cpp.

References ossimString::chars(), loadState(), and ossimString::toString().

31 : m_entryIndex(-1),
32  m_weight(0.0),
33  m_isVectorData(false),
34  m_isRgbData(false)
35 {
36  prefix_str += ossimString::toString(index) + ".";
37  const char* prefix = prefix_str.chars();
38 
39  loadState(src_kwl, prefix);
40 }
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Initializes record from an in-memory KWL and prefix.
static ossimString toString(bool aValue)
Numeric to string methods.
const char * chars() const
For backward compatibility.
Definition: ossimString.h:77
bool m_isVectorData
The following data members allow users to render vector data.
ossim_int32 m_entryIndex

Member Function Documentation

◆ getAttributesKwl()

const ossimKeywordlist& ossimSrcRecord::getAttributesKwl ( ) const
inline

Returns the KWL containing the desired vector representation properties.

In the future we should stuff many of the members in ossimSrcRecord in a KWL (similar to what is currently done with vector properties) so that the handler is initialized via loadState() instead of individual calls to set methods. OLK 10/10

Definition at line 142 of file ossimSrcRecord.h.

Referenced by ossimSingleImageChain::addImageHandler().

142 { return m_attributesKwl; }
ossimKeywordlist m_attributesKwl

◆ getBands()

const std::vector<ossim_uint32>& ossimSrcRecord::getBands ( ) const
inline

Definition at line 101 of file ossimSrcRecord.h.

Referenced by ossimSingleImageChain::addBandSelector(), and ossimSingleImageChain::createRenderedChain().

101 { return m_bandList; }
std::vector< ossim_uint32 > m_bandList

◆ getEntryIndex()

ossim_int32 ossimSrcRecord::getEntryIndex ( ) const
inline

Definition at line 98 of file ossimSrcRecord.h.

Referenced by ossimSingleImageChain::addImageHandler(), and ossimImageHandlerFactory::openSrcRecord().

98 { return m_entryIndex; }
ossim_int32 m_entryIndex

◆ getFilename()

const ossimFilename& ossimSrcRecord::getFilename ( ) const
inline

Definition at line 97 of file ossimSrcRecord.h.

Referenced by ossimSingleImageChain::addImageHandler(), and ossimImageHandlerFactory::openSrcRecord().

97 { return m_filename; }
ossimFilename m_filename

◆ getGeomPath()

const ossimFilename& ossimSrcRecord::getGeomPath ( ) const
inline

Definition at line 110 of file ossimSrcRecord.h.

110 { return m_geomPath; }
ossimFilename m_geomPath

◆ getHistogramOp()

const ossimString& ossimSrcRecord::getHistogramOp ( ) const
inline

◆ getHistogramPath()

const ossimFilename& ossimSrcRecord::getHistogramPath ( ) const
inline

Definition at line 108 of file ossimSrcRecord.h.

Referenced by ossimSingleImageChain::addImageHandler(), and ossimImageHandlerFactory::openSrcRecord().

108 { return m_histogramPath; }
ossimFilename m_histogramPath

◆ getMaskPath()

const ossimFilename& ossimSrcRecord::getMaskPath ( ) const
inline

Definition at line 109 of file ossimSrcRecord.h.

Referenced by ossimSingleImageChain::addImageHandler().

109 { return m_maskPath; }
ossimFilename m_maskPath

◆ getOverviewPath()

const ossimFilename& ossimSrcRecord::getOverviewPath ( ) const
inline

See note below on these data members.

Definition at line 107 of file ossimSrcRecord.h.

Referenced by ossimSingleImageChain::addImageHandler(), and ossimImageHandlerFactory::openSrcRecord().

107 { return m_overviewPath; }
ossimFilename m_overviewPath
The following data members are usually just a copy of m_supportDir, but are provided in order to supp...

◆ getPixelFlipParams()

const PixelFlipParams& ossimSrcRecord::getPixelFlipParams ( ) const
inline

Definition at line 104 of file ossimSrcRecord.h.

104 { return m_pixelFlipParams; }
PixelFlipParams m_pixelFlipParams

◆ getRgbFilename()

ossimFilename ossimSrcRecord::getRgbFilename ( int  band) const
inline

Definition at line 133 of file ossimSrcRecord.h.

133 { return m_rgbFilenames[band]; }
std::vector< ossimString > m_rgbFilenames

◆ getRgbHistogramOp()

ossimString ossimSrcRecord::getRgbHistogramOp ( int  band) const
inline

Definition at line 135 of file ossimSrcRecord.h.

135 { return m_rgbHistogramOps[band]; }
std::vector< ossimString > m_rgbHistogramOps

◆ getRgbHistogramPath()

ossimFilename ossimSrcRecord::getRgbHistogramPath ( int  band) const
inline

Definition at line 134 of file ossimSrcRecord.h.

134 { return m_rgbHistogramPaths[band]; }
std::vector< ossimString > m_rgbHistogramPaths

◆ getRgbOverviewPath()

ossimFilename ossimSrcRecord::getRgbOverviewPath ( int  band) const
inline

Definition at line 136 of file ossimSrcRecord.h.

136 { return m_rgbOverviewPaths[band]; }
std::vector< ossimString > m_rgbOverviewPaths

◆ getSupportDir()

const ossimFilename& ossimSrcRecord::getSupportDir ( ) const
inline

◆ getWeight()

const double& ossimSrcRecord::getWeight ( ) const
inline

Definition at line 102 of file ossimSrcRecord.h.

102 { return m_weight; }

◆ isRgbData()

bool ossimSrcRecord::isRgbData ( ) const
inline

Returns TRUE if the record represents an rgb data set:

Definition at line 131 of file ossimSrcRecord.h.

131 { return m_isRgbData; }

◆ isVectorData()

bool ossimSrcRecord::isVectorData ( ) const
inline

Returns TRUE if the record represents a vector data set:

Definition at line 128 of file ossimSrcRecord.h.

128 { return m_isVectorData; }
bool m_isVectorData
The following data members allow users to render vector data.

◆ loadState()

bool ossimSrcRecord::loadState ( const ossimKeywordlist kwl,
const char *  prefix = 0 
)

Initializes record from an in-memory KWL and prefix.

"prefix.file" e.g. "image0.file" is required. All other data members will be cleared if their keword is not present.

Parameters
kwlKeyword list containing one or more records.
prefixLike "image0."
Returns
true on success, false if required keyword is not set.

Definition at line 45 of file ossimSrcRecord.cpp.

References ossimKeywordlist::add(), ossimKeywordNames::BRUSH_COLOR_KW, ossimString::chars(), ossimSrcRecord::PixelFlipParams::clampMax, ossimSrcRecord::PixelFlipParams::clampMin, ossimString::clear(), ossimSrcRecord::PixelFlipParams::clipMax, ossimSrcRecord::PixelFlipParams::clipMin, DIRECT_KW_MAPPING, ossimString::downcase(), ossimString::empty(), ossimKeywordNames::ENTRY_KW, ossimKeywordNames::FILENAME_KW, ossimKeywordNames::FILL_FLAG_KW, ossimKeywordlist::find(), ossimKeywordlist::getSize(), m_attributesKwl, m_bandList, m_entryIndex, m_filename, m_geomPath, m_histogramOp, m_histogramPath, m_isRgbData, m_isVectorData, m_maskPath, m_overviewPath, m_pixelFlipParams, m_rgbFilenames, m_rgbHistogramOps, m_rgbHistogramPaths, m_rgbOverviewPaths, m_supportDir, m_weight, ossimKeywordNames::PEN_COLOR_KW, ossimKeywordNames::QUERY_KW, ossimSrcRecord::PixelFlipParams::replacementMode, setGeom(), setOverview(), setSupportDir(), ossimString::split(), ossimKeywordNames::THICKNESS_KW, ossimString::toDouble(), and ossimString::toInt32().

Referenced by ossimImageHandlerFactory::openSrcRecord(), and ossimSrcRecord().

46 {
47  // Read image filename entry (required):
48  m_rgbFilenames.clear();
49  m_rgbHistogramPaths.clear();
50  m_rgbHistogramOps.clear();
51  m_rgbOverviewPaths.clear();
52  ossimString lookup = kwl.find(prefix, "r");
53  if (!lookup.empty())
54  {
55  m_filename = lookup;
56  m_isRgbData = true;
57  m_rgbFilenames.push_back(lookup);
58 
59  lookup = kwl.find(prefix, "r.hist");
60  m_rgbHistogramPaths.push_back(lookup.downcase());
61 
62  lookup = kwl.find(prefix, "r.hist-op");
63  m_rgbHistogramOps.push_back(lookup.downcase());
64 
65  lookup = kwl.find(prefix, "r.ovr");
66  m_rgbOverviewPaths.push_back(lookup);
67 
68  lookup = kwl.find(prefix, "g");
69  m_rgbFilenames.push_back(lookup);
70 
71  lookup = kwl.find(prefix, "g.hist");
72  m_rgbHistogramPaths.push_back(lookup.downcase());
73 
74  lookup = kwl.find(prefix, "g.ovr");
75  m_rgbOverviewPaths.push_back(lookup);
76 
77  lookup = kwl.find(prefix, "g.hist-op");
78  m_rgbHistogramOps.push_back(lookup.downcase());
79 
80  lookup = kwl.find(prefix, "b");
81  m_rgbFilenames.push_back(lookup);
82 
83  lookup = kwl.find(prefix, "b.hist");
84  m_rgbHistogramPaths.push_back(lookup.downcase());
85 
86  lookup = kwl.find(prefix, "b.hist-op");
87  m_rgbHistogramOps.push_back(lookup.downcase());
88 
89  lookup = kwl.find(prefix, "b.ovr");
90  m_rgbOverviewPaths.push_back(lookup);
91 
92  return true;
93  }
94 
95  lookup = kwl.find(prefix, "file");
96  if (!lookup.empty())
97  {
98  m_filename = lookup;
100  }
101  else
102  {
103  m_filename.clear();
104  return false;
105  }
106 
107  // Read image entry index:
108  lookup = kwl.find(prefix, "entry");
109  if (!lookup.empty())
110  {
111  m_entryIndex = lookup.toInt32();
113  }
114  else
115  {
116  m_entryIndex = -1;
117  }
118 
119  // Establish supplementary directory containing overview:
120  lookup = kwl.find(prefix, "ovr");
121  if (!lookup.empty())
122  {
123  setOverview(ossimFilename(lookup));
124  }
125  else
126  {
128  }
129  lookup = kwl.find(prefix, "geom");
130  if (!lookup.empty())
131  {
132  setGeom(ossimFilename(lookup));
133  }
134  else
135  {
136  m_geomPath.clear();
137  }
138 
139  lookup = kwl.find(prefix, "mask");
140  if (!lookup.empty())
141  {
142  m_maskPath = ossimFilename(lookup);
143  }
144  else
145  {
146  m_maskPath.clear();
147  }
148 
149  // Histogram operation for this image:
150  lookup = kwl.find(prefix, "hist");
151  if (!lookup.empty())
152  {
153  m_histogramPath = lookup.downcase();
154  }
155  else
156  {
158  }
159 
160  // Histogram operation for this image:
161  lookup = kwl.find(prefix, "hist-op");
162  if (!lookup.empty())
163  {
164  m_histogramOp = lookup.downcase();
165  }
166  else
167  {
169  }
170 
171  // Newer more generic spec of supp dir since more than just ovrs may reside there:
172  lookup = kwl.find(prefix, "support");
173  if (!lookup.empty())
174  {
175  setSupportDir(lookup);
176  }
177  else
178  {
180  }
181 
182  // Establish selected bands:
183  lookup = kwl.find(prefix, "rgb");
184  if (!lookup.empty())
185  {
186  m_bandList.clear();
187 
188  //---
189  // Multiple bands delimited by comma:
190  //
191  // NOTE: Keyword list ONE based.
192  // ossimBandSelector list ZERO based.
193  //---
194  std::vector<ossimString> bandsStr = lookup.split(",");
195  for (ossim_uint32 i = 0; i < bandsStr.size(); i++)
196  {
197  int band = bandsStr[i].toInt32() - 1;
198  if (band >= 0) m_bandList.push_back((ossim_uint32) band);
199  }
200  }
201  else
202  {
203  m_bandList.clear();
204  }
205 
206  lookup = kwl.find(prefix, "opacity");
207  if (!lookup.empty())
208  m_weight = lookup.toDouble();
209 
210  // Look for vector data info:
211  m_isVectorData = false;
212  ossimString vector_prefix (prefix);
213  vector_prefix += "vector.";
214  ossimKeywordlist vectorKwl;
215 
216 #define DIRECT_KW_MAPPING false
217  if (DIRECT_KW_MAPPING)
218  {
219  // This method of stuffing the attributes KWL is presented here as an example of the way we
220  // should do it:
221  m_attributesKwl.add(kwl, vector_prefix.chars());
222  }
223  else
224  {
225  // Need to translate SRC keywords to KWs expected by OSSIM:
226  lookup = kwl.find(vector_prefix, "line.color");
227  if (!lookup.empty())
228  vectorKwl.add(ossimKeywordNames::PEN_COLOR_KW, lookup);
229  lookup = kwl.find(vector_prefix, "line.width");
230  if (!lookup.empty())
231  vectorKwl.add(ossimKeywordNames::THICKNESS_KW, lookup);
232  lookup = kwl.find(vector_prefix, "fill.color");
233  if (!lookup.empty())
234  {
235  vectorKwl.add(ossimKeywordNames::FILL_FLAG_KW, true);
236  vectorKwl.add(ossimKeywordNames::BRUSH_COLOR_KW, lookup);
237  }
238  lookup = kwl.find(vector_prefix, "query");
239  if (!lookup.empty())
240  vectorKwl.add(ossimKeywordNames::QUERY_KW, lookup);
241  }
242 
243  if (vectorKwl.getSize())
244  {
245  m_isVectorData = true;
246  m_attributesKwl.add(0, vectorKwl);
247  }
248 
249  // Read keywords associated with special pixel remapping (pixel flipping, clamping, and
250  // clipping):
251  lookup = kwl.find(prefix, "replacement_mode");
252  if (!lookup.empty())
254  lookup = kwl.find(prefix, "clamp.min");
255  if (!lookup.empty())
257  lookup = kwl.find(prefix, "clamp.max");
258  if (!lookup.empty())
260  lookup = kwl.find(prefix, "clip.min");
261  if (!lookup.empty())
263  lookup = kwl.find(prefix, "clip.max");
264  if (!lookup.empty())
266 
267  return true;
268 }
void clear()
Erases the entire container.
Definition: ossimString.h:432
void setOverview(const ossimFilename &f)
static const char * BRUSH_COLOR_KW
Represents serializable keyword/value map.
const char * find(const char *key) const
std::vector< ossimString > m_rgbOverviewPaths
void split(std::vector< ossimString > &result, const ossimString &separatorList, bool skipBlankFields=false) const
Splits this string into a vector of strings (fields) using the delimiter list specified.
ossimFilename m_supportDir
ossimFilename m_overviewPath
The following data members are usually just a copy of m_supportDir, but are provided in order to supp...
ossimFilename m_maskPath
ossim_int32 toInt32() const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimKeywordlist m_attributesKwl
std::vector< ossimString > m_rgbHistogramPaths
#define DIRECT_KW_MAPPING
static const char * QUERY_KW
unsigned int ossim_uint32
static const char * FILL_FLAG_KW
const char * chars() const
For backward compatibility.
Definition: ossimString.h:77
double toDouble() const
ossimString m_histogramOp
std::vector< ossim_uint32 > m_bandList
std::vector< ossimString > m_rgbHistogramOps
static ossimString downcase(const ossimString &aString)
Definition: ossimString.cpp:48
ossimFilename m_histogramPath
ossimFilename m_filename
void setSupportDir(const ossimFilename &f)
Sets supplementary data files dir.
static const char * ENTRY_KW
PixelFlipParams m_pixelFlipParams
bool m_isVectorData
The following data members allow users to render vector data.
ossim_uint32 getSize() const
ossimFilename m_geomPath
bool empty() const
Definition: ossimString.h:411
std::vector< ossimString > m_rgbFilenames
static const char * PEN_COLOR_KW
ossim_int32 m_entryIndex
void setGeom(const ossimFilename &f)
static const char * FILENAME_KW
static const char * THICKNESS_KW

◆ setBands()

void ossimSrcRecord::setBands ( const std::vector< ossim_uint32 > &  v)
inline

Definition at line 119 of file ossimSrcRecord.h.

119 { m_bandList = v; }
std::vector< ossim_uint32 > m_bandList

◆ setEntryIndex()

void ossimSrcRecord::setEntryIndex ( ossim_int32  i)

Definition at line 300 of file ossimSrcRecord.cpp.

References ossimKeywordlist::add(), ossimKeywordNames::ENTRY_KW, m_attributesKwl, and m_entryIndex.

301 {
302  m_entryIndex = i;
304 }
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimKeywordlist m_attributesKwl
static const char * ENTRY_KW
ossim_int32 m_entryIndex

◆ setFilename()

void ossimSrcRecord::setFilename ( const ossimFilename f)

Definition at line 291 of file ossimSrcRecord.cpp.

References ossimKeywordlist::add(), ossimString::chars(), ossimKeywordNames::FILENAME_KW, m_attributesKwl, and m_filename.

292 {
293  m_filename = f;
295 }
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimKeywordlist m_attributesKwl
const char * chars() const
For backward compatibility.
Definition: ossimString.h:77
ossimFilename m_filename
static const char * FILENAME_KW

◆ setGeom()

void ossimSrcRecord::setGeom ( const ossimFilename f)

Definition at line 317 of file ossimSrcRecord.cpp.

References ossimKeywordlist::add(), ossimString::chars(), ossimKeywordNames::GEOM_FILE_KW, m_attributesKwl, m_geomPath, and m_overviewPath.

Referenced by loadState().

318 {
319  m_geomPath = f;
321 }
ossimFilename m_overviewPath
The following data members are usually just a copy of m_supportDir, but are provided in order to supp...
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimKeywordlist m_attributesKwl
const char * chars() const
For backward compatibility.
Definition: ossimString.h:77
static const char * GEOM_FILE_KW
ossimFilename m_geomPath

◆ setHistogram()

void ossimSrcRecord::setHistogram ( const ossimFilename f)
inline

Definition at line 116 of file ossimSrcRecord.h.

116 { m_histogramPath = f; }
ossimFilename m_histogramPath

◆ setHistogramOp()

void ossimSrcRecord::setHistogramOp ( const ossimString s)
inline

Definition at line 117 of file ossimSrcRecord.h.

117 { m_histogramOp = s; }
ossimString m_histogramOp

◆ setMask()

void ossimSrcRecord::setMask ( const ossimFilename f)
inline

Definition at line 115 of file ossimSrcRecord.h.

115 { m_maskPath = f; }
ossimFilename m_maskPath

◆ setOverview()

void ossimSrcRecord::setOverview ( const ossimFilename f)

Definition at line 309 of file ossimSrcRecord.cpp.

References ossimKeywordlist::add(), ossimString::chars(), m_attributesKwl, m_overviewPath, and ossimKeywordNames::OVERVIEW_FILE_KW.

Referenced by loadState().

310 {
311  m_overviewPath = f;
313 }
static const char * OVERVIEW_FILE_KW
ossimFilename m_overviewPath
The following data members are usually just a copy of m_supportDir, but are provided in order to supp...
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimKeywordlist m_attributesKwl
const char * chars() const
For backward compatibility.
Definition: ossimString.h:77

◆ setRgbDataBool()

void ossimSrcRecord::setRgbDataBool ( bool  isRgbData)
inline

Definition at line 121 of file ossimSrcRecord.h.

121 { m_isRgbData = isRgbData; }
bool isRgbData() const
Returns TRUE if the record represents an rgb data set:

◆ setSupportDir()

void ossimSrcRecord::setSupportDir ( const ossimFilename f)

Sets supplementary data files dir.

If the OVR and/or hist dirs are undefined, they are also set to this path.

Definition at line 274 of file ossimSrcRecord.cpp.

References ossimKeywordlist::add(), ossimString::c_str(), ossimString::empty(), m_attributesKwl, m_histogramPath, m_maskPath, and m_supportDir.

Referenced by loadState().

275 {
276  m_supportDir = f;
277  m_attributesKwl.add("supplementary_directory", f.c_str());
278  // if (m_overviewPath.empty())
279  // setOverview(m_supportDir);
280  if (m_histogramPath.empty())
282  if (m_maskPath.empty())
284  // if(m_geomPath.empty())
285  // m_geomPath = m_supportDir;
286 }
ossimFilename m_supportDir
ossimFilename m_maskPath
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimKeywordlist m_attributesKwl
ossimFilename m_histogramPath
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396
bool empty() const
Definition: ossimString.h:411

◆ setWeight()

void ossimSrcRecord::setWeight ( const double &  weight)
inline

Definition at line 120 of file ossimSrcRecord.h.

120 { m_weight = weight; }

◆ valid()

bool ossimSrcRecord::valid ( ) const
inline

Returns TRUE if record is valid.

Definition at line 95 of file ossimSrcRecord.h.

95 { return !m_filename.empty(); }
ossimFilename m_filename
bool empty() const
Definition: ossimString.h:411

Member Data Documentation

◆ m_attributesKwl

ossimKeywordlist ossimSrcRecord::m_attributesKwl
private

◆ m_bandList

std::vector<ossim_uint32> ossimSrcRecord::m_bandList
private

Definition at line 148 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_entryIndex

ossim_int32 ossimSrcRecord::m_entryIndex
private

Definition at line 146 of file ossimSrcRecord.h.

Referenced by loadState(), and setEntryIndex().

◆ m_filename

ossimFilename ossimSrcRecord::m_filename
private

Definition at line 145 of file ossimSrcRecord.h.

Referenced by loadState(), and setFilename().

◆ m_geomPath

ossimFilename ossimSrcRecord::m_geomPath
private

Definition at line 157 of file ossimSrcRecord.h.

Referenced by loadState(), and setGeom().

◆ m_histogramOp

ossimString ossimSrcRecord::m_histogramOp
private

Definition at line 149 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_histogramPath

ossimFilename ossimSrcRecord::m_histogramPath
private

Definition at line 155 of file ossimSrcRecord.h.

Referenced by loadState(), and setSupportDir().

◆ m_isRgbData

bool ossimSrcRecord::m_isRgbData
private

Definition at line 167 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_isVectorData

bool ossimSrcRecord::m_isVectorData
private

The following data members allow users to render vector data.

Definition at line 160 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_maskPath

ossimFilename ossimSrcRecord::m_maskPath
private

Definition at line 156 of file ossimSrcRecord.h.

Referenced by loadState(), and setSupportDir().

◆ m_overviewPath

ossimFilename ossimSrcRecord::m_overviewPath
private

The following data members are usually just a copy of m_supportDir, but are provided in order to support legacy systems where paths to OVR, thumbnails and histogram files.

Definition at line 154 of file ossimSrcRecord.h.

Referenced by loadState(), setGeom(), and setOverview().

◆ m_pixelFlipParams

PixelFlipParams ossimSrcRecord::m_pixelFlipParams
private

Definition at line 168 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_rgbFilenames

std::vector<ossimString> ossimSrcRecord::m_rgbFilenames
private

Definition at line 163 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_rgbHistogramOps

std::vector<ossimString> ossimSrcRecord::m_rgbHistogramOps
private

Definition at line 165 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_rgbHistogramPaths

std::vector<ossimString> ossimSrcRecord::m_rgbHistogramPaths
private

Definition at line 164 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_rgbOverviewPaths

std::vector<ossimString> ossimSrcRecord::m_rgbOverviewPaths
private

Definition at line 166 of file ossimSrcRecord.h.

Referenced by loadState().

◆ m_supportDir

ossimFilename ossimSrcRecord::m_supportDir
private

Definition at line 147 of file ossimSrcRecord.h.

Referenced by loadState(), and setSupportDir().

◆ m_weight

double ossimSrcRecord::m_weight
private

Definition at line 150 of file ossimSrcRecord.h.

Referenced by loadState().


The documentation for this class was generated from the following files: