OTB  6.7.0
Orfeo Toolbox
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
mvd::VectorImageModel Class Reference

#include <mvdVectorImageModel.h>

+ Inheritance diagram for mvd::VectorImageModel:
+ Collaboration diagram for mvd::VectorImageModel:

Public Types

typedef DefaultImageType SourceImageType
 

Public Slots

void OnPhysicalCursorPositionChanged (const QPoint &, const PointType &, const PointType &, const DefaultImageType::PixelType &)
 

Signals

void PropertiesUpdated (AbstractImageModel *imageModel=NULL)
 
void SettingsUpdated (AbstractImageModel *imageModel=NULL)
 
void ViewportRegionChanged (double, double)
 
void CurrentIndexUpdated (const IndexType &, bool isInside)
 
void CurrentIndexUpdated (const QString &)
 
void CurrentPhysicalUpdated (const QStringList &)
 
void CurrentGeographicUpdated (const QStringList &)
 
void CurrentRadioUpdated (const QString &)
 
void CurrentPixelValueUpdated (const VectorImageType::PixelType &, const QStringList &)
 

Public Member Functions

void ClearModified () override
 
CountType ComputeBestLod (double ZoomFactor) const
 
CountType ComputeBestLod (int width, int height) const
 
std::string GetCenterPixelPlaceName ()
 
const otb::GenericRSTransformGetGenericRSTransform () const
 
std::streamoff GetImageSizeInBytes ()
 
CountType GetNbLod () const override
 
const VectorImageSettingsGetSettings () const
 
VectorImageSettingsGetSettings ()
 
bool IsModified () const override
 
void SetFilename (const QString &filename, int width, int height)
 
void SetSettings (const VectorImageSettings &settings)
 
SourceImageType::ConstPointer ToImage () const
 
const SourceImageType::PointerToImage ()
 
ImageBaseType::ConstPointer ToImageBase () const override
 
ImageBaseType::Pointer ToImageBase () override
 
 VectorImageModel (QObject *p=NULL)
 
 ~VectorImageModel () override
 
- Public Member Functions inherited from mvd::FilenameInterface
const QString & GetFilename () const
 
virtual ~FilenameInterface ()
 

Static Public Member Functions

static void EnsureValidImage (const QString &filename)
 

Static Public Attributes

static const unsigned int DEFAULT_LOD_SIZE
 

Protected Member Functions

void InitializeColorDynamicsSettings ()
 
void InitializeColorSetupSettings ()
 
void virtual_BuildModel (void *context=NULL) override
 
- Protected Member Functions inherited from mvd::FilenameInterface
 FilenameInterface ()
 
void SetFilename (const QString &)
 

Protected Attributes

SourceImageType::Pointer m_Image
 

Private Slots

void OnModelUpdated ()
 

Private Member Functions

void ApplySettings ()
 
void BuildGdalOverviews ()
 
void SetupCurrentLodImage (int w, int h)
 
std::string virtual_GetWkt () const override
 
bool virtual_HasKwl () const override
 
void virtual_RefreshHistogram () override
 
void virtual_SetCurrentLod (CountType lod) override
 
void virtual_ToWgs84 (const PointType &, PointType &, double &alt) const override
 

Static Private Member Functions

static unsigned int Closest (double invZoomfactor, unsigned int lodCount)
 

Private Attributes

DefaultImageFileReaderType::Pointer m_ImageFileReader
 
CountType m_LodCount
 
VectorImageSettings m_Settings
 
otb::GenericRSTransform::Pointer m_ToWgs84
 

Detailed Description

Definition at line 83 of file mvdVectorImageModel.h.

Member Typedef Documentation

In-memory storage type of source image (from file).

Definition at line 90 of file mvdVectorImageModel.h.

Constructor & Destructor Documentation

mvd::VectorImageModel::VectorImageModel ( QObject *  p = NULL)

Constructor

mvd::VectorImageModel::~VectorImageModel ( )
override

Destructor

Member Function Documentation

void mvd::VectorImageModel::ApplySettings ( )
private
void mvd::VectorImageModel::BuildGdalOverviews ( )
private
void mvd::VectorImageModel::ClearModified ( )
override
static unsigned int mvd::VectorImageModel::Closest ( double  invZoomfactor,
unsigned int  lodCount 
)
staticprivate

Helper method to get the best closest Jpeg2K level of detail.

CountType mvd::VectorImageModel::ComputeBestLod ( double  ZoomFactor) const

Following the zoom factor, get the best level of detail

CountType mvd::VectorImageModel::ComputeBestLod ( int  width,
int  height 
) const

Following the zoom factor, get the best level of detail

void mvd::VectorImageModel::CurrentGeographicUpdated ( const QStringList &  )
signal
void mvd::VectorImageModel::CurrentIndexUpdated ( const IndexType ,
bool  isInside 
)
signal
void mvd::VectorImageModel::CurrentIndexUpdated ( const QString &  )
signal
void mvd::VectorImageModel::CurrentPhysicalUpdated ( const QStringList &  )
signal
void mvd::VectorImageModel::CurrentPixelValueUpdated ( const VectorImageType::PixelType ,
const QStringList &   
)
signal
void mvd::VectorImageModel::CurrentRadioUpdated ( const QString &  )
signal
static void mvd::VectorImageModel::EnsureValidImage ( const QString &  filename)
static
std::string mvd::VectorImageModel::GetCenterPixelPlaceName ( )

Get the placename from the center pixel

const otb::GenericRSTransform * mvd::VectorImageModel::GetGenericRSTransform ( ) const
inline

Definition at line 390 of file mvdVectorImageModel.h.

std::streamoff mvd::VectorImageModel::GetImageSizeInBytes ( )
inline

Definition at line 187 of file mvdVectorImageModel.h.

CountType mvd::VectorImageModel::GetNbLod ( ) const
override

Get the number of available LOD.

const VectorImageSettings & mvd::VectorImageModel::GetSettings ( ) const
inline

Definition at line 372 of file mvdVectorImageModel.h.

VectorImageSettings & mvd::VectorImageModel::GetSettings ( )
inline

Definition at line 381 of file mvdVectorImageModel.h.

void mvd::VectorImageModel::InitializeColorDynamicsSettings ( )
protected
void mvd::VectorImageModel::InitializeColorSetupSettings ( )
protected
bool mvd::VectorImageModel::IsModified ( ) const
override
void mvd::VectorImageModel::OnModelUpdated ( )
privateslot
void mvd::VectorImageModel::OnPhysicalCursorPositionChanged ( const QPoint &  ,
const PointType ,
const PointType ,
const DefaultImageType::PixelType  
)
slot
void mvd::VectorImageModel::PropertiesUpdated ( AbstractImageModel *  imageModel = NULL)
signal
void mvd::VectorImageModel::SetFilename ( const QString &  filename,
int  width,
int  height 
)

Width and height are added to compute the best level of detail to load from the image if multi-resolution image.

void mvd::VectorImageModel::SetSettings ( const VectorImageSettings settings)
inline

Definition at line 363 of file mvdVectorImageModel.h.

void mvd::VectorImageModel::SettingsUpdated ( AbstractImageModel *  imageModel = NULL)
signal
void mvd::VectorImageModel::SetupCurrentLodImage ( int  w,
int  h 
)
private

helper to setup the lod image using a width/height or a zoom factor

VectorImageModel::SourceImageType::ConstPointer mvd::VectorImageModel::ToImage ( ) const
inline

Definition at line 344 of file mvdVectorImageModel.h.

const VectorImageModel::SourceImageType::Pointer & mvd::VectorImageModel::ToImage ( )
inline

Definition at line 354 of file mvdVectorImageModel.h.

ImageBaseType::ConstPointer mvd::VectorImageModel::ToImageBase ( ) const
override

Get a smart-pointer to the current LOD image-base.

ImageBaseType::Pointer mvd::VectorImageModel::ToImageBase ( )
override

Get a smart-pointer to the current LOD image-base.

void mvd::VectorImageModel::ViewportRegionChanged ( double  ,
double   
)
signal
void mvd::VectorImageModel::virtual_BuildModel ( void *  context = NULL)
overrideprotected
std::string mvd::VectorImageModel::virtual_GetWkt ( ) const
overrideprivate
bool mvd::VectorImageModel::virtual_HasKwl ( ) const
overrideprivate
void mvd::VectorImageModel::virtual_RefreshHistogram ( )
overrideprivate
void mvd::VectorImageModel::virtual_SetCurrentLod ( CountType  lod)
overrideprivate
void mvd::VectorImageModel::virtual_ToWgs84 ( const PointType ,
PointType ,
double &  alt 
) const
overrideprivate

Member Data Documentation

const unsigned int mvd::VectorImageModel::DEFAULT_LOD_SIZE
static

Definition at line 108 of file mvdVectorImageModel.h.

SourceImageType::Pointer mvd::VectorImageModel::m_Image
protected

Definition at line 253 of file mvdVectorImageModel.h.

DefaultImageFileReaderType::Pointer mvd::VectorImageModel::m_ImageFileReader
private

Definition at line 306 of file mvdVectorImageModel.h.

CountType mvd::VectorImageModel::m_LodCount
private

List of all Level of detail (Resolution) available from the file

Definition at line 314 of file mvdVectorImageModel.h.

VectorImageSettings mvd::VectorImageModel::m_Settings
private

User-configurable settings of image-model.

Definition at line 311 of file mvdVectorImageModel.h.

otb::GenericRSTransform ::Pointer mvd::VectorImageModel::m_ToWgs84
private

Definition at line 317 of file mvdVectorImageModel.h.


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