OTB  6.7.0
Orfeo Toolbox
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
mvd Namespace Reference

Namespaces

 Ui
 
 Wrapper
 

Classes

class  AboutDialog
 
class  AbstractDragAndDropEventFilter
 
class  AbstractImageViewManipulator
 
class  AbstractImageViewRenderer
 
class  AbstractLayerModel
 
class  AbstractModel
 
class  AbstractModelController
 
class  AbstractWorker
 
class  Application
 
class  ApplicationLauncher
 
class  ApplicationsBrowser
 
class  ApplicationsToolBox
 
class  ApplicationsToolBoxController
 
class  BackgroundTask
 
class  ColorBandDynamicsWidget
 
class  ColorDynamicsController
 
class  ColorDynamicsWidget
 
class  ColorSetupController
 
class  ColorSetupWidget
 
class  DoubleValidator
 
class  DropLineEdit
 
class  FilenameDragAndDropEventFilter
 
class  FilenameInterface
 
class  HistogramController
 
class  HistogramPlotPicker
 
class  HistogramWidget
 
class  I18nApplication
 
class  I18nCoreApplication
 
class  I18nMainWindow
 
class  ImageImporter
 
class  ImagePlacenameLoader
 
class  ImageProperties
 
class  ImageSettings
 
class  ImageSettingsInterface
 
class  ImageViewManipulator
 
class  ImageViewRenderer
 
class  ImageViewWidget
 
class  ImportImagesDialog
 
class  ImportSubDatasetDialog
 
class  KeymapDialog
 
class  LayerStackController
 
class  LayerStackItemModel
 
class  LayerStackWidget
 
class  MainWindow
 
class  MainWindowTitleLoader
 
class  MaplaApplication
 
class  MaplaMainWindow
 
class  ModifiableInterface
 
class  MultiResolutionPyramidWidget
 
class  MyClass
 
class  MyWidget
 
class  OTBApplicationsModel
 
class  OverviewBuilder
 
class  PixelDescriptionWidget
 
struct  PixelInfo
 
class  PreferencesDialog
 
class  ProcessObjectObserver
 
class  ProgressInterface
 
class  ProjectionBarWidget
 
class  QuicklookModel
 
class  QuicklookViewManipulator
 
class  QuicklookViewRenderer
 
class  SearchableTreeWidget
 
class  SerializableInterface
 
class  ShaderWidget
 
class  StackedLayerModel
 
class  StatusBarWidget
 
class  SystemError
 
class  TaskProgressDialog
 
class  TreeWidget
 
class  TreeWidgetItem
 
class  TreeWidgetItemDragAndDropEventFilter
 
class  VectorImageModel
 
class  VectorImageSettings
 
class  VisibleInterface
 

Typedefs

typedef std::map< std::string,
std::string > 
ApplicationDocNameToNameMap
 
typedef std::map< std::string,
StringVector
ApplicationsTagContainer
 
typedef RealType ComponentType
 
typedef unsigned int CountType
 
typedef QString DatasetHash
 
typedef
mvd::VectorImageFileReaderType 
DefaultImageFileReaderType
 
typedef mvd::VectorImageType DefaultImageType
 
typedef std::vector< double > DoubleVector
 
typedef itk::ImageBase
< Monteverdi_DIMENSION > 
ImageBaseType
 
typedef itk::ImageRegion
< Monteverdi_DIMENSION > 
ImageRegionType
 
typedef itk::Index
< Monteverdi_DIMENSION > 
IndexType
 
typedef std::vector< int > IntVector
 
typedef itk::Array< double > ParametersType
 
typedef VectorImageType::PointType PointType
 
typedef std::map< std::string,
PropertiesVector
PropertiesContainer
 
typedef std::vector< PropertyTypePropertiesVector
 
typedef std::pair< std::string,
std::vector< PropertyType > > 
PropertiesVectorByCategory
 
typedef std::pair< std::string,
std::string > 
PropertyType
 
typedef Monteverdi_FLOATING_TYPE RealType
 
typedef otb::ImageFileReader
< ScalarImageType
ScalarImageFileReaderType
 
typedef otb::ImageFileWriter
< ScalarImageType
ScalarImageFileWriterType
 
typedef otb::Image
< ComponentType,
Monteverdi_DIMENSION > 
ScalarImageType
 
typedef itk::Size
< Monteverdi_DIMENSION > 
SizeType
 
typedef
VectorImageType::SpacingType 
SpacingType
 
typedef qlonglong SqlId
 
typedef std::list< std::string > StringList
 
typedef QList< StringPairTypeStringPairListType
 
typedef QPair< QString, QString > StringPairType
 
typedef std::vector< std::string > StringVector
 
typedef std::vector< unsigned int > UIntVector
 
typedef otb::ImageFileReader
< VectorImageType
VectorImageFileReaderType
 
typedef otb::ImageFileWriter
< VectorImageType
VectorImageFileWriterType
 
typedef otb::VectorImage
< ComponentType,
Monteverdi_DIMENSION > 
VectorImageType
 
typedef
itk::VariableLengthVector
< RealType
VectorPixelType
 

Enumerations

enum  Bound {
  BOUND_LOWER = 0,
  BOUND_UPPER,
  BOUND_COUNT
}
 
enum  Effect {
  EFFECT_NONE = -1,
  EFFECT_CHESSBOARD = 0,
  EFFECT_GRADIENT,
  EFFECT_LOCAL_CONTRAST,
  EFFECT_LOCAL_TRANSLUCENCY,
  EFFECT_NORMAL,
  EFFECT_SWIPE_H,
  EFFECT_SWIPE_V,
  EFFECT_SPECTRAL_ANGLE,
  EFFECT_LUT_JET,
  EFFECT_LUT_LOCAL_JET,
  EFFECT_LUT_HOT,
  EFFECT_LUT_LOCAL_HOT,
  EFFECT_LUT_WINTER,
  EFFECT_LUT_LOCAL_WINTER,
  EFFECT_LUT_SUMMER,
  EFFECT_LUT_LOCAL_SUMMER,
  EFFECT_LUT_COOL,
  EFFECT_LUT_LOCAL_COOL,
  EFFECT_COUNT
}
 
enum  Resolution {
  RESOLUTION_NONE = -1,
  RESOLUTION_NEAREST = 0,
  RESOLUTION_LOWER,
  RESOLUTION_UPPER,
  RESOLUTION_COUNT,
  RESOLUTION_DEFAULT = RESOLUTION_NEAREST
}
 
enum  RgbwChannel {
  RGBW_CHANNEL_NONE = -1,
  RGBW_CHANNEL_RED = 0,
  RGBW_CHANNEL_GREEN,
  RGBW_CHANNEL_BLUE,
  RGBW_CHANNEL_WHITE,
  RGBW_CHANNEL_RGB,
  RGBW_CHANNEL_ALL,
  RGBW_CHANNEL_COUNT
}
 
enum  SpatialReferenceType {
  SRT_UNKNOWN =0,
  SRT_CARTO,
  SRT_GEO,
  SRT_SENSOR
}
 
enum  StreamTag {
  STREAM_TAG_SIZE = 0,
  STREAM_TAG_VECTOR,
  STREAM_TAG_VARIABLE_LENGTH_VECTOR,
  STREAM_TAG_COUNT
}
 
enum  TileSize {
  TILE_SIZE_NONE = -1,
  TILE_SIZE_64 = 0,
  TILE_SIZE_128,
  TILE_SIZE_256,
  TILE_SIZE_512,
  TILE_SIZE_COUNT,
  TILE_SIZE_DEFAULT = TILE_SIZE_256
}
 
enum  ZoomType {
  ZOOM_TYPE_NONE = -1,
  ZOOM_TYPE_EXTENT,
  ZOOM_TYPE_FULL,
  ZOOM_TYPE_LAYER,
  ZOOM_TYPE_COUNT
}
 

Functions

OTBMonteverdiGUI_EXPORT void AddItemsInto (QComboBox *comboBox, const char *context, char const *const names[], vcl_size_t count)
 
template<typename TInputIterator , typename TUnaryPredicate >
bool AllOf (TInputIterator first, TInputIterator last, TUnaryPredicate pred)
 
template<typename TInputIterator , typename TUnaryPredicate >
bool AnyOf (TInputIterator first, TInputIterator last, TUnaryPredicate pred)
 
void CheckStreamStatus (QTextStream &stream)
 
QMessageBox & CustomizeMessageBox (QMessageBox &messageBox, QWidget *widget)
 
int DecodeMimeData (QList< QTreeWidgetItem * > &items, const QMimeData *mimeData)
 
QMimeData * EncodeMimeData (QMimeData *mimeData, const QList< QTreeWidgetItem * > &items)
 
OTBMonteverdiCore_EXPORT
SpatialReferenceType 
GetSpatialReferenceType (const std::string &filename)
 
OTBMonteverdiCore_EXPORT
SpatialReferenceType 
GetSpatialReferenceType (const std::string &wkt, bool hasKwl)
 
template<typename X , typename Y , typename K >
void Lerp2 (X &x, Y &y, const K &k, const X &x0, const Y &y0, const X &x1, const Y &y1)
 
template<typename X , typename Y >
const Y & Lerp2 (const X &x, const X &x0, const Y &y0, const X &x1, const Y &y1)
 
template<typename X , typename Y , typename K >
const Y & Lerp2 (const X &x, const X &x0, const Y &y0, const X &x1, const Y &y1)
 
template<typename TInputIterator , typename TUnaryPredicate >
bool NoneOf (TInputIterator first, TInputIterator last, TUnaryPredicate pred)
 
QTextStream & operator<< (QTextStream &stream, StreamTag tag)
 
template<typename T >
QTextStream & operator<< (QTextStream &stream, const itk::VariableLengthVector< T > &vector)
 
template<typename T >
QTextStream & operator<< (QTextStream &stream, const std::vector< T, std::allocator< T > > &vector)
 
template<typename T >
QDataStream & operator<< (QDataStream &stream, const itk::VariableLengthVector< T > &vector)
 
template<typename T >
QTextStream & operator<< (QTextStream &stream, const itk::Array< T > &array)
 
template<>
QTextStream & operator<< (QTextStream &stream, const itk::VariableLengthVector< float > &vector)
 
template<>
QTextStream & operator<< (QTextStream &stream, const itk::VariableLengthVector< double > &vector)
 
template<typename T , typename FC >
QTextStream & operator<< (QTextStream &stream, const itk::Statistics::Histogram< T, FC > &histogram)
 
template<>
QTextStream & operator<< < double > (QTextStream &stream, const std::vector< double > &vector)
 
template<>
QTextStream & operator<< < float > (QTextStream &stream, const std::vector< float > &vector)
 
QTextStream & operator>> (QTextStream &stream, StreamTag &tag)
 
template<typename T >
QTextStream & operator>> (QTextStream &stream, itk::VariableLengthVector< T > &vector)
 
template<typename T >
QDataStream & operator>> (QDataStream &stream, itk::VariableLengthVector< T > &vector)
 
template<typename T , typename Alloc >
QTextStream & operator>> (QTextStream &stream, std::vector< T, Alloc > &vector)
 
template<typename T >
QTextStream & operator>> (QTextStream &stream, itk::Array< T > &array)
 
template<typename T , typename FC >
QTextStream & operator>> (QTextStream &stream, itk::Statistics::Histogram< T, FC > &histogram)
 
template<typename T >
QObjectCast (QObject *object, const QString &string=QString())
 
QString ToHumanReadableSize (qint64 fize, bool isInBits=true)
 
QTextStream & WriteStreamTag (QTextStream &stream, const QString &name, bool enqueueWS=true)
 
QStringList ToQStringList (const StringVector &sv)
 
QStringList & AppendToQStringList (QStringList &qsl, const StringVector &sv)
 
QString FromStdString (const std::string &str)
 
std::string ToLocalStdString (const QString &)
 
const char * ToLocalString (const QString &)
 
std::string ToStdString (const QString &str)
 
const char * ToString (const QString &str)
 
std::string ToStdString (unsigned int val)
 
std::string ToStdString (const SpacingType &spacing)
 
std::string ToStdString (const SizeType &size)
 
std::string ToStdString (const PointType &point)
 
template<typename T >
std::string ToStdString (const std::vector< T > &vec)
 
template<typename T >
QString ToQString (const T &val)
 
template<>
QString ToQString< float > (const float &)
 
template<>
QString ToQString< double > (const double &)
 
bool RgbBounds (CountType &begin, CountType &end, RgbwChannel channels)
 
bool RgbwBounds (CountType &begin, CountType &end, RgbwChannel channels)
 
bool IsVersionLess (const QString &v0, const QString &v1)
 
bool IsVersionGreaterEqual (const QString &v0, const QString &v1)
 
bool IsVersionEqual (const QString &v0, const QString &v1)
 
QTextStream & ReadStreamTag (QTextStream &stream, QString &tag, const QString &expected=QString(), bool skipWS=true)
 

Variables

const char * BOUND_NAMES [BOUND_COUNT]
 
OTBMonteverdiCore_EXPORT char
const *const 
EFFECT_NAMES [EFFECT_COUNT]
 
const int MOUSE_WHEEL_STEP_DEGREES
 
const int MOUSE_WHEEL_STEP_FACTOR
 
OTBMonteverdiCore_EXPORT bool OVERVIEWS_ENABLED_DEFAULT
 
OTBMonteverdiCore_EXPORT int OVERVIEWS_SIZE_DEFAULT
 
OTBMonteverdiGUI_EXPORT char
const *const 
RESOLUTION_NAMES [RESOLUTION_COUNT]
 
OTBMonteverdiCore_EXPORT const
char * 
RGBW_CHANNEL_NAMES [RGBW_CHANNEL_COUNT]
 
const char * STREAM_TAG_NAMES [STREAM_TAG_COUNT]
 
OTBMonteverdiGUI_EXPORT char
const *const 
TILE_SIZE_NAMES [TILE_SIZE_COUNT]
 
OTBMonteverdiGUI_EXPORT int TILE_SIZE_VALUE [TILE_SIZE_COUNT]
 

Typedef Documentation

typedef std::map< std::string, std::string > mvd::ApplicationDocNameToNameMap

Definition at line 248 of file mvdTypes.h.

typedef std::map< std::string, StringVector > mvd::ApplicationsTagContainer

Definition at line 252 of file mvdTypes.h.

Definition at line 97 of file mvdTypes.h.

typedef unsigned int mvd::CountType

Definition at line 89 of file mvdTypes.h.

typedef QString mvd::DatasetHash

Definition at line 264 of file mvdTypes.h.

Definition at line 209 of file mvdTypes.h.

Definition at line 205 of file mvdTypes.h.

typedef std::vector< double > mvd::DoubleVector

Definition at line 124 of file mvdTypes.h.

typedef itk::ImageBase< Monteverdi_DIMENSION > mvd::ImageBaseType

Definition at line 150 of file mvdTypes.h.

typedef itk::ImageRegion< Monteverdi_DIMENSION > mvd::ImageRegionType

Definition at line 138 of file mvdTypes.h.

typedef itk::Index< Monteverdi_DIMENSION > mvd::IndexType
typedef std::vector< int > mvd::IntVector

Definition at line 112 of file mvdTypes.h.

typedef itk::Array< double > mvd::ParametersType
typedef std::map< std::string, PropertiesVector > mvd::PropertiesContainer

Definition at line 281 of file mvdTypes.h.

typedef std::vector< PropertyType > mvd::PropertiesVector

Definition at line 272 of file mvdTypes.h.

typedef std::pair< std::string, std::vector< PropertyType > > mvd::PropertiesVectorByCategory

Definition at line 277 of file mvdTypes.h.

typedef std::pair< std::string, std::string > mvd::PropertyType

Definition at line 268 of file mvdTypes.h.

typedef Monteverdi_FLOATING_TYPE mvd::RealType
Examples:
Patented/SIFTExample.cxx, and Patented/SIFTFastExample.cxx.

Definition at line 93 of file mvdTypes.h.

Definition at line 164 of file mvdTypes.h.

Definition at line 169 of file mvdTypes.h.

typedef otb::Image< ComponentType, Monteverdi_DIMENSION > mvd::ScalarImageType
Examples:
BasicFilters/HillShadingExample.cxx.

Definition at line 159 of file mvdTypes.h.

typedef qlonglong mvd::SqlId

Definition at line 259 of file mvdTypes.h.

typedef std::list< std::string > mvd::StringList

Definition at line 120 of file mvdTypes.h.

Definition at line 292 of file mvdTypes.h.

typedef QPair< QString, QString > mvd::StringPairType

Definition at line 288 of file mvdTypes.h.

typedef std::vector< std::string > mvd::StringVector

Definition at line 108 of file mvdTypes.h.

typedef std::vector< unsigned int > mvd::UIntVector

Definition at line 116 of file mvdTypes.h.

Definition at line 182 of file mvdTypes.h.

Definition at line 186 of file mvdTypes.h.

typedef otb::VectorImage< ComponentType, Monteverdi_DIMENSION > mvd::VectorImageType

Enumeration Type Documentation

enum mvd::Bound
Enumerator
BOUND_LOWER 
BOUND_UPPER 
BOUND_COUNT 

Definition at line 110 of file mvdCore.h.

Enumerator
EFFECT_NONE 
EFFECT_CHESSBOARD 
EFFECT_GRADIENT 
EFFECT_LOCAL_CONTRAST 
EFFECT_LOCAL_TRANSLUCENCY 
EFFECT_NORMAL 
EFFECT_SWIPE_H 
EFFECT_SWIPE_V 
EFFECT_SPECTRAL_ANGLE 
EFFECT_LUT_JET 
EFFECT_LUT_LOCAL_JET 
EFFECT_LUT_HOT 
EFFECT_LUT_LOCAL_HOT 
EFFECT_LUT_WINTER 
EFFECT_LUT_LOCAL_WINTER 
EFFECT_LUT_SUMMER 
EFFECT_LUT_LOCAL_SUMMER 
EFFECT_LUT_COOL 
EFFECT_LUT_LOCAL_COOL 
EFFECT_COUNT 

Definition at line 126 of file mvdCore.h.

Enumerator
RESOLUTION_NONE 
RESOLUTION_NEAREST 
RESOLUTION_LOWER 
RESOLUTION_UPPER 
RESOLUTION_COUNT 
RESOLUTION_DEFAULT 

Definition at line 94 of file mvdGui.h.

Constants identifying the video-channels.

Enumerator
RGBW_CHANNEL_NONE 
RGBW_CHANNEL_RED 
RGBW_CHANNEL_GREEN 
RGBW_CHANNEL_BLUE 
RGBW_CHANNEL_WHITE 
RGBW_CHANNEL_RGB 
RGBW_CHANNEL_ALL 
RGBW_CHANNEL_COUNT 

Definition at line 84 of file mvdCore.h.

Enumerator
SRT_UNKNOWN 
SRT_CARTO 
SRT_GEO 
SRT_SENSOR 

Definition at line 79 of file mvdAbstractLayerModel.h.

TODO.

Enumerator
STREAM_TAG_SIZE 
STREAM_TAG_VECTOR 
STREAM_TAG_VARIABLE_LENGTH_VECTOR 
STREAM_TAG_COUNT 

Definition at line 78 of file mvdTextStream.h.

Enumerator
TILE_SIZE_NONE 
TILE_SIZE_64 
TILE_SIZE_128 
TILE_SIZE_256 
TILE_SIZE_512 
TILE_SIZE_COUNT 
TILE_SIZE_DEFAULT 

Definition at line 117 of file mvdGui.h.

Enumerator
ZOOM_TYPE_NONE 
ZOOM_TYPE_EXTENT 
ZOOM_TYPE_FULL 
ZOOM_TYPE_LAYER 
ZOOM_TYPE_COUNT 

Definition at line 148 of file mvdGui.h.

Function Documentation

OTBMonteverdiGUI_EXPORT void mvd::AddItemsInto ( QComboBox *  comboBox,
const char *  context,
char const *const  names[],
vcl_size_t  count 
)
template<typename TInputIterator , typename TUnaryPredicate >
bool mvd::AllOf ( TInputIterator  first,
TInputIterator  last,
TUnaryPredicate  pred 
)
inline

Test condition on all elements in range.

Parameters
firstFirst element of range to test.
lastUpper (external) boundary of range to test.
predPredicate testing element in range.
Returns
true if predicate is true on all elements in the range [first, last[ or if range is empty.

Definition at line 688 of file mvdAlgorithm.h.

template<typename TInputIterator , typename TUnaryPredicate >
bool mvd::AnyOf ( TInputIterator  first,
TInputIterator  last,
TUnaryPredicate  pred 
)
inline

Test if any of element in range fulfills condition.

Parameters
firstFirst element of range to test.
lastUpper (external) boundary of range to test.
predPredicate testing element in range.
Returns
true if predicated is true for, at least, one element in range [first, last[. If range is empty, this function returns false.

Definition at line 705 of file mvdAlgorithm.h.

QStringList & mvd::AppendToQStringList ( QStringList &  qsl,
const StringVector &  sv 
)
inline

Append the content of a StringVector object to the content of a QStringList object.

Because Qt uses a shallow mechanism to copy containers, the returned QStringList is shallow-copied.

Definition at line 481 of file mvdAlgorithm.h.

Referenced by ToQStringList().

void mvd::CheckStreamStatus ( QTextStream &  stream)
inline

Check status Qt stream and throw SystemError exception if status is not Ok.

Definition at line 348 of file mvdTextStream.h.

Referenced by operator<<(), operator>>(), ReadStreamTag(), and WriteStreamTag().

QMessageBox& mvd::CustomizeMessageBox ( QMessageBox &  messageBox,
QWidget *  widget 
)
int mvd::DecodeMimeData ( QList< QTreeWidgetItem * > &  items,
const QMimeData *  mimeData 
)
QMimeData* mvd::EncodeMimeData ( QMimeData *  mimeData,
const QList< QTreeWidgetItem * > &  items 
)
QString mvd::FromStdString ( const std::string &  str)
inline

Convert and copy an STL std::string to a QString.

The 8-bit data is converted to Unicode using the QString::fromAscii() method.

Parameters
strThe 8-bit STL string to convert.
Returns
The Unicode converted QString.

Definition at line 513 of file mvdAlgorithm.h.

OTBMonteverdiCore_EXPORT SpatialReferenceType mvd::GetSpatialReferenceType ( const std::string &  filename)
OTBMonteverdiCore_EXPORT SpatialReferenceType mvd::GetSpatialReferenceType ( const std::string &  wkt,
bool  hasKwl 
)
bool mvd::IsVersionEqual ( const QString &  v0,
const QString &  v1 
)
inline

Provide a lexicographical version-string 'M.m.p' equal operator.

Parameters
v0Left-operand version string.
v1Right-operand version string.
Returns
true if left-operand is equal than right-operand.

Definition at line 374 of file mvdCore.h.

bool mvd::IsVersionGreaterEqual ( const QString &  v0,
const QString &  v1 
)
inline

Provide a lexicographical version-string 'M.m.p' greater-or-equal operator.

Parameters
v0Left-operand version string.
v1Right-operand version string.
Returns
true if left-operand is greater-or-equal than right-operand.

Definition at line 392 of file mvdCore.h.

bool mvd::IsVersionLess ( const QString &  v0,
const QString &  v1 
)
inline

Provide a lexicographical version-string 'M.m.p' less operator.

Parameters
v0Left-operand version string.
v1Right-operand version string.
Returns
true if left-operand is lesser than right-operand.

Definition at line 352 of file mvdCore.h.

template<typename X , typename Y , typename K >
void mvd::Lerp2 ( X &  x,
Y &  y,
const K &  k,
const X &  x0,
const Y &  y0,
const X &  x1,
const Y &  y1 
)

Definition at line 141 of file mvdMath.h.

template<typename X , typename Y >
const Y& mvd::Lerp2 ( const X &  x,
const X &  x0,
const Y &  y0,
const X &  x1,
const Y &  y1 
)

Definition at line 155 of file mvdMath.h.

template<typename X , typename Y , typename K >
const Y& mvd::Lerp2 ( const X &  x,
const X &  x0,
const Y &  y0,
const X &  x1,
const Y &  y1 
)

Definition at line 155 of file mvdMath.h.

template<typename TInputIterator , typename TUnaryPredicate >
bool mvd::NoneOf ( TInputIterator  first,
TInputIterator  last,
TUnaryPredicate  pred 
)
inline

Test if no element in range fulfills condition.

Parameters
firstFirst element of range to test.
lastUpper (external) boundary of range to test.
predPredicate testing element in range.
Returns
true if predicated is false for all elements in range [first, last[. If range is empty, this function returns true.

Definition at line 722 of file mvdAlgorithm.h.

QTextStream & mvd::operator<< ( QTextStream &  stream,
StreamTag  tag 
)
inline

Write an StreamTag followed by a whitespace separator into a QTextStream.

Parameters
streamQTextStream into which to write data.
tagStreamTag data to write.
Returns
stream instance.

Definition at line 407 of file mvdTextStream.h.

References STREAM_TAG_NAMES, and WriteStreamTag().

template<typename T >
QTextStream & mvd::operator<< ( QTextStream &  stream,
const itk::VariableLengthVector< T > &  vector 
)
inline

Write an itk::VariableLengthVector< T > into a QTextStream.

Parameters
streamQTextStream into which to write data.
vectoritk::VariableLengthVector< T > data to write.
Returns
stream instance.

Definition at line 606 of file mvdTextStream.h.

References CheckStreamStatus(), itk::VariableLengthVector< TValue >::Size(), and STREAM_TAG_VARIABLE_LENGTH_VECTOR.

template<typename T >
QTextStream & mvd::operator<< ( QTextStream &  stream,
const std::vector< T, std::allocator< T > > &  vector 
)
inline

Write an std::vector< T, std::allocator< T > > into a QTextStream.

Parameters
streamQTextStream into which to write data.
vectorstd::vector< T, std::allocator< T > > data to write.
Returns
stream instance.

Definition at line 456 of file mvdTextStream.h.

References STREAM_TAG_VECTOR.

template<typename T >
QDataStream& mvd::operator<< ( QDataStream &  stream,
const itk::VariableLengthVector< T > &  vector 
)
inline

Write an itk::VariableLengthVector< T > into a QDataStream.

Parameters
streamQDataStream into which to write data.
vectoritk::VariableLengthVector< T > data to write.
Returns
stream instance.
template<typename T >
QTextStream & mvd::operator<< ( QTextStream &  stream,
const itk::Array< T > &  array 
)
inline

Write an itk::Array< T > into a QTextStream.

Parameters
streamQTextStream into which to write data.
arrayitk::Array< T > data to write.
Returns
stream instance.

Definition at line 547 of file mvdTextStream.h.

References CheckStreamStatus(), itk::Array< TValue >::GetSize(), and STREAM_TAG_SIZE.

template<>
QTextStream & mvd::operator<< ( QTextStream &  stream,
const itk::VariableLengthVector< float > &  vector 
)
inline
template<>
QTextStream & mvd::operator<< ( QTextStream &  stream,
const itk::VariableLengthVector< double > &  vector 
)
inline
template<typename T , typename FC >
QTextStream & mvd::operator<< ( QTextStream &  stream,
const itk::Statistics::Histogram< T, FC > &  histogram 
)
inline
template<>
QTextStream & mvd::operator<< < double > ( QTextStream &  stream,
const std::vector< double > &  vector 
)
inline

Definition at line 498 of file mvdTextStream.h.

References STREAM_TAG_VECTOR, and ToQString().

template<>
QTextStream & mvd::operator<< < float > ( QTextStream &  stream,
const std::vector< float > &  vector 
)
inline

Definition at line 477 of file mvdTextStream.h.

References STREAM_TAG_VECTOR, and ToQString().

QTextStream & mvd::operator>> ( QTextStream &  stream,
StreamTag &  tag 
)
inline

Read a StreamTag followed by a whitespace from a QTextStream.

Parameters
streamQTextStream from which to read data.
tagStreamTag to data read.
Returns
stream instance.

Definition at line 418 of file mvdTextStream.h.

References ReadStreamTag(), STREAM_TAG_COUNT, STREAM_TAG_NAMES, and ToStdString().

template<typename T >
QTextStream & mvd::operator>> ( QTextStream &  stream,
itk::VariableLengthVector< T > &  vector 
)
inline

Write an itk::VariableLengthVector< T > into a QTextStream.

Read an itk::VariableLengthVector< T > from a QTextStream.

Parameters
streamQTextStream into which to write data.
vectoritk::VariableLengthVector< T > data to write.
Returns
stream instance.
Parameters
streamQTextStream from which to read data.
vectoritk::VariableLengthVector< T > container to read data into.
Returns
stream instance.

Definition at line 681 of file mvdTextStream.h.

References CheckStreamStatus(), ReadStreamTag(), itk::VariableLengthVector< TValue >::SetSize(), itk::VariableLengthVector< TValue >::Size(), STREAM_TAG_NAMES, STREAM_TAG_VARIABLE_LENGTH_VECTOR, and type.

template<typename T >
QDataStream& mvd::operator>> ( QDataStream &  stream,
itk::VariableLengthVector< T > &  vector 
)
inline

Write an itk::VariableLengthVector< T > into a QDataStream.

Parameters
streamQDataStream into which to write data.
vectoritk::VariableLengthVector< T > data to write.
Returns
stream instance.
template<typename T , typename Alloc >
QTextStream & mvd::operator>> ( QTextStream &  stream,
std::vector< T, Alloc > &  vector 
)
inline

Read an std::vector< T, Alloc > from a QTextStream.

Parameters
streamQTextStream from which to read data.
vectorstd::vector< T, Alloc > container to read data into.
Returns
stream instance.

Definition at line 519 of file mvdTextStream.h.

References ReadStreamTag(), STREAM_TAG_NAMES, STREAM_TAG_VECTOR, and type.

template<typename T >
QTextStream & mvd::operator>> ( QTextStream &  stream,
itk::Array< T > &  array 
)
inline

Read an itk::Array< T > from a QTextStream.

Parameters
streamQTextStream from which to read data.
arrayitk::Array< T > container to read data into.
Returns
stream instance.

Definition at line 567 of file mvdTextStream.h.

References CheckStreamStatus(), itk::Array< TValue >::GetSize(), ReadStreamTag(), STREAM_TAG_NAMES, STREAM_TAG_SIZE, ToStdString(), and type.

template<typename T , typename FC >
QTextStream & mvd::operator>> ( QTextStream &  stream,
itk::Statistics::Histogram< T, FC > &  histogram 
)
inline
template<typename T >
T mvd::QObjectCast ( QObject *  object,
const QString &  string = QString() 
)
inline

Definition at line 298 of file mvdTypes.h.

QTextStream & mvd::ReadStreamTag ( QTextStream &  stream,
QString &  tag,
const QString &  expected = QString(),
bool  skipWS = true 
)
inline

Read a text tag followed by a whitespace from the stream and check it against an expected value.

Parameters
streamStream to read from.
tagText tag which has been read.
expectedThe expected tag name. If non-empty, value read from stream is checked against expected value; an std::runtime_exception is thrown if both values doest not match.
skipWSSkip whitespace following tag name.
Returns
stream instance.

Definition at line 374 of file mvdTextStream.h.

References CheckStreamStatus(), and ToStdString().

Referenced by operator>>().

bool mvd::RgbBounds ( CountType &  begin,
CountType &  end,
RgbwChannel  channels 
)
inline

Convenience method used to compute integer indices in order to iterate through RGB channels such as, for example:

for( i=begin; i<end; ++i ) {}
Parameters
beginThe resulting first index where to begin iteration.
endThe resulting upper-boundary index of the iteration.
channelsThe channels to be iterated. Valid values are: _ RGBA_CHANNEL_NONE to select no video-channel at all;
  • RGBA_CHANNEL_RED to select red video-channel;
  • RGBA_CHANNEL_GREEN to select green video-channel;
  • RGBA_CHANNEL_BLUE to select blue video-channel;
  • RGBA_CHANNEL_WHITE is equivalent to RGBA_CHANNEL_NONE;
  • RGBA_CHANNEL_RGB to select all RGB video-channels;
  • RGBA_CHANNEL_ALL to select all RGB (without the alpha) video-channels.
Returns
true if iteration indices have been set and loop can be processed.

Definition at line 274 of file mvdCore.h.

References RGBW_CHANNEL_ALL, RGBW_CHANNEL_BLUE, RGBW_CHANNEL_COUNT, RGBW_CHANNEL_GREEN, RGBW_CHANNEL_NONE, RGBW_CHANNEL_RED, RGBW_CHANNEL_RGB, and RGBW_CHANNEL_WHITE.

Referenced by mvd::ColorDynamicsController::RgbwBounds().

bool mvd::RgbwBounds ( CountType &  begin,
CountType &  end,
RgbwChannel  channels 
)
inline

Convenience method used to compute integer indices in order to iterate through RGBA channels such as, for example:

for( i=begin; i<end; ++i ) {}
Parameters
beginThe first index where to begin iteration.
endThe upper-boundary index of the iteration.
channelsThe channels to be iterated. Valid values are: _ RGBA_CHANNEL_NONE to select no video-channel at all;
  • RGBA_CHANNEL_RED to select red video-channel;
  • RGBA_CHANNEL_GREEN to select green video-channel;
  • RGBA_CHANNEL_BLUE to select blue video-channel;
  • RGBA_CHANNEL_WHITE to select the white video-channel;
  • RGBA_CHANNEL_RGB to select all RGB (without the alpha) video-channels;
  • RGBA_CHANNEL_ALL to select all RGBA video-channels.
Returns
true if iteration indices have been set and loop can be processed.

Definition at line 311 of file mvdCore.h.

References RGBW_CHANNEL_ALL, RGBW_CHANNEL_BLUE, RGBW_CHANNEL_COUNT, RGBW_CHANNEL_GREEN, RGBW_CHANNEL_NONE, RGBW_CHANNEL_RED, RGBW_CHANNEL_RGB, and RGBW_CHANNEL_WHITE.

Referenced by mvd::ColorDynamicsController::RgbwBounds().

QString mvd::ToHumanReadableSize ( qint64  fize,
bool  isInBits = true 
)
inline

Definition at line 738 of file mvdAlgorithm.h.

std::string mvd::ToLocalStdString ( const QString &  str)
inline

Append the content of a StringVector object to the content of a QStringList object.

Because Qt uses a shallow mechanism to copy containers, the returned QStringList is shallow-copied.

Definition at line 497 of file mvdAlgorithm.h.

const char * mvd::ToLocalString ( const QString &  str)
inline

Append the content of a StringVector object to the content of a QStringList object.

Because Qt uses a shallow mechanism to copy containers, the returned QStringList is shallow-copied.

Definition at line 505 of file mvdAlgorithm.h.

template<typename T >
QString mvd::ToQString ( const T &  val)
inline

Definition at line 600 of file mvdAlgorithm.h.

Referenced by operator<<(), operator<< < double >(), and operator<< < float >().

template<>
QString mvd::ToQString< double > ( const double &  val)
inline

Definition at line 646 of file mvdAlgorithm.h.

References ToStdString().

template<>
QString mvd::ToQString< float > ( const float &  val)
inline

Definition at line 609 of file mvdAlgorithm.h.

References ToStdString().

QStringList mvd::ToQStringList ( const StringVector &  sv)
inline

Convert a StringVector object to a QStringList object.

Because Qt uses a shallow mechanism to copy containers, the returned QStringList is shallow-copied.

Definition at line 471 of file mvdAlgorithm.h.

References AppendToQStringList().

std::string mvd::ToStdString ( const QString &  str)
inline

Convert and copy a QString to a STL std::string.

The Unicode data is converted to 8-bit using the QString::toLatin1() method.

Parameters
strThe Unicode string to convert.
Returns
The 8-bit converted STL std::string.

Definition at line 521 of file mvdAlgorithm.h.

Referenced by operator<<(), operator>>(), ReadStreamTag(), mvd::I18nCoreApplication::SynchronizeSettings(), ToQString< double >(), and ToQString< float >().

std::string mvd::ToStdString ( unsigned int  val)
inline
Returns
a std::string form various types.

Definition at line 537 of file mvdAlgorithm.h.

std::string mvd::ToStdString ( const SpacingType &  spacing)
inline

Definition at line 548 of file mvdAlgorithm.h.

std::string mvd::ToStdString ( const SizeType &  size)
inline

Definition at line 559 of file mvdAlgorithm.h.

std::string mvd::ToStdString ( const PointType &  point)
inline

Definition at line 570 of file mvdAlgorithm.h.

template<typename T >
std::string mvd::ToStdString ( const std::vector< T > &  vec)
inline

Definition at line 582 of file mvdAlgorithm.h.

const char * mvd::ToString ( const QString &  str)
inline

Append the content of a StringVector object to the content of a QStringList object.

Because Qt uses a shallow mechanism to copy containers, the returned QStringList is shallow-copied.

Definition at line 529 of file mvdAlgorithm.h.

Referenced by otb::Wrapper::ParameterList< T >::GetNthFileName(), and otb::Wrapper::ParameterList< T >::GetStrings().

QTextStream & mvd::WriteStreamTag ( QTextStream &  stream,
const QString &  name,
bool  enqueueWS = true 
)
inline

Write a text tag followed by a white space to the stream.

Parameters
streamStream to write into.
nameTag name to write.
enqueueWSEnqueue a whitespace following the tag name.
Returns
stream instance.

Definition at line 357 of file mvdTextStream.h.

References CheckStreamStatus().

Referenced by operator<<().

Variable Documentation

const char* mvd::BOUND_NAMES[BOUND_COUNT]

Constant naming bound values.

OTBMonteverdiCore_EXPORT char const* const mvd::EFFECT_NAMES[EFFECT_COUNT]

Constant naming effect values.

const int mvd::MOUSE_WHEEL_STEP_DEGREES
const int mvd::MOUSE_WHEEL_STEP_FACTOR
OTBMonteverdiCore_EXPORT bool mvd::OVERVIEWS_ENABLED_DEFAULT
OTBMonteverdiCore_EXPORT int mvd::OVERVIEWS_SIZE_DEFAULT
OTBMonteverdiGUI_EXPORT char const* const mvd::RESOLUTION_NAMES[RESOLUTION_COUNT]

Constant naming effect values.

OTBMonteverdiCore_EXPORT const char* mvd::RGBW_CHANNEL_NAMES[RGBW_CHANNEL_COUNT]

Constant naming video-channels.

const char* mvd::STREAM_TAG_NAMES[STREAM_TAG_COUNT]

TODO.

Referenced by operator<<(), and operator>>().

OTBMonteverdiGUI_EXPORT char const* const mvd::TILE_SIZE_NAMES[TILE_SIZE_COUNT]

Constant naming effect values.

OTBMonteverdiGUI_EXPORT int mvd::TILE_SIZE_VALUE[TILE_SIZE_COUNT]