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

#include <mvdStackedLayerModel.h>

+ Inheritance diagram for mvd::StackedLayerModel:
+ Collaboration diagram for mvd::StackedLayerModel:

Public Types

typedef
LayerModelMap::const_iterator 
ConstIterator
 
typedef LayerModelMap::key_type KeyType
 
typedef std::vector
< LayerModelMap::key_type > 
KeyVector
 
typedef LayerModelMap::size_type SizeType
 

Public Slots

void Clear ()
 
void Delete (const KeyType &)
 
void DeleteCurrent ()
 
void Deleting (unsigned int index)
 

Signals

void AboutToChangeSelectedLayerModel (const StackedLayerModel::KeyType &)
 
void ContentAboutToBeChanged ()
 
void ContentAboutToBeReset ()
 
void ContentChanged ()
 
void ContentReset ()
 
void CurrentAboutToBeChanged (vcl_size_t)
 
void CurrentChanged (vcl_size_t)
 
void LayerAboutToBeDeleted (vcl_size_t index)
 
void LayerAdded (vcl_size_t index)
 
void LayerDeleted (vcl_size_t index)
 
void LayerRenamed ()
 
void OrderAboutToBeChanged ()
 
void OrderChanged ()
 
void PixelInfoChanged (const QPoint &, const PointType &, const PixelInfo::Vector &)
 
void ReferenceAboutToBeChanged (vcl_size_t)
 
void ReferenceChanged (vcl_size_t)
 
void ResolutionsChanged (const PixelInfo::Vector &)
 
void SelectedLayerModelChanged (const StackedLayerModel::KeyType &)
 

Public Member Functions

KeyType Add (AbstractLayerModel *)
 
const AbstractLayerModelAt (SizeType) const
 
AbstractLayerModelAt (SizeType)
 
ConstIterator Begin () const
 
void BeginEditPixelInfo ()
 
void BeginEditResolutions ()
 
bool Contains (const KeyType &key) const
 
bool Contains (const AbstractLayerModel *) const
 
void CountSRT (vcl_size_t &unknown, vcl_size_t &carto, vcl_size_t &geo, vcl_size_t &sensor) const
 
ConstIterator End () const
 
void EndEditPixelInfo (const QPoint &, const PointType &)
 
void EndEditResolutions ()
 
SizeType GetCount () const
 
const KeyVectorGetKeys () const
 
bool HasCurrent () const
 
bool HasReference () const
 
KeyType Insert (AbstractLayerModel *, SizeType index)
 
const AbstractLayerModeloperator[] (SizeType) const
 
AbstractLayerModeloperator[] (SizeType)
 
void SetCurrent (const KeyType &)
 
void SetCurrent (const AbstractLayerModel *)
 
void SetReference (const KeyType &)
 
void SetReference (const AbstractLayerModel *)
 
 StackedLayerModel (QObject *p=NULL)
 
 ~StackedLayerModel () override
 
- Public Member Functions inherited from mvd::AbstractModel
void attachChildModel (AbstractModel *model, void *context=NULL)
 
void BuildModel (void *context=NULL)
 
virtual void ClearModified ()
 
template<typename TModel >
const TModel * GetParentModel () const
 
template<typename TModel >
TModel * GetParentModel ()
 
virtual bool IsModified () const
 
template<typename TModel >
TModel * newChildModel (void *context=NULL)
 
template<typename T >
T * newChildModel (void *context)
 
void Save ()
 
 ~AbstractModel () override
 

Static Public Attributes

static const SizeType NIL_INDEX
 

Private Types

typedef std::map< std::string,
AbstractLayerModel * > 
LayerModelMap
 

Private Member Functions

void ClearPixelInfos ()
 
void Delete (SizeType)
 
SizeType FindKey (const KeyType &) const
 
void LowerLayer (SizeType)
 
void MoveTo (SizeType index, SizeType position)
 
void MoveToBottom (SizeType)
 
void MoveToTop (SizeType)
 
void RaiseLayer (SizeType)
 
void RotateLayerDown (SizeType)
 
void RotateLayerUp (SizeType)
 

Static Private Member Functions

static KeyType GenerateKey (AbstractLayerModel *)
 

Private Attributes

SizeType m_Current
 
KeyVector m_Keys
 
LayerModelMap m_LayerModels
 
PixelInfo::Vector m_PixelInfos
 
SizeType m_Reference
 

Static Private Attributes

static SizeType m_LayerCount
 
static const KeyType NIL_KEY
 
ConstIterator Find (const AbstractLayerModel *) const
 
const AbstractLayerModelGet (const KeyType &) const
 
AbstractLayerModelGet (const KeyType &)
 
const KeyTypeGetKey (SizeType) const
 
template<typename T >
T * GetCurrent () const
 
template<typename T >
T * GetCurrent ()
 
AbstractLayerModelGetCurrent () const
 
AbstractLayerModelGetCurrent ()
 
SizeType GetCurrentIndex () const
 
const KeyTypeGetCurrentKey () const
 
template<typename T >
T * GetReference () const
 
template<typename T >
T * GetReference ()
 
AbstractLayerModelGetReference () const
 
AbstractLayerModelGetReference ()
 
SizeType GetReferenceIndex () const
 
SizeType IndexOf (const AbstractLayerModel *) const
 
bool IsEmpty () const
 
const PixelInfo::VectorPixelInfos () const
 
PixelInfo::VectorPixelInfos ()
 
void SetCurrent (SizeType, bool=false)
 
void SetReference (SizeType, bool=false)
 
void LowerCurrent ()
 
void MoveCurrentToBottom ()
 
void MoveCurrentToTop ()
 
void RaiseCurrent ()
 
void RotateLayers (int)
 
void SelectFirst ()
 
void SelectLast ()
 
void SelectPrevious ()
 
void SelectNext ()
 
SizeType Next (SizeType)
 
SizeType Prev (SizeType)
 
const KeyTypeKeyOf (const AbstractLayerModel *) const
 

Additional Inherited Members

- Protected Member Functions inherited from mvd::AbstractModel
 AbstractModel (QObject *p=NULL)
 
virtual void virtual_BuildModel (void *context=NULL)
 

Detailed Description

WIP.

Definition at line 78 of file mvdStackedLayerModel.h.

Member Typedef Documentation

typedef LayerModelMap::const_iterator mvd::StackedLayerModel::ConstIterator

Definition at line 104 of file mvdStackedLayerModel.h.

typedef LayerModelMap::key_type mvd::StackedLayerModel::KeyType

Definition at line 103 of file mvdStackedLayerModel.h.

typedef std::vector< LayerModelMap::key_type > mvd::StackedLayerModel::KeyVector

Definition at line 100 of file mvdStackedLayerModel.h.

typedef std::map< std::string, AbstractLayerModel * > mvd::StackedLayerModel::LayerModelMap
private

Definition at line 84 of file mvdStackedLayerModel.h.

typedef LayerModelMap::size_type mvd::StackedLayerModel::SizeType

Definition at line 102 of file mvdStackedLayerModel.h.

Constructor & Destructor Documentation

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

Constructor.

mvd::StackedLayerModel::~StackedLayerModel ( )
override

Destructor.

Member Function Documentation

void mvd::StackedLayerModel::AboutToChangeSelectedLayerModel ( const StackedLayerModel::KeyType )
signal
KeyType mvd::StackedLayerModel::Add ( AbstractLayerModel )
const AbstractLayerModel * mvd::StackedLayerModel::At ( SizeType  i) const
inline

Definition at line 371 of file mvdStackedLayerModel.h.

AbstractLayerModel * mvd::StackedLayerModel::At ( SizeType  i)
inline

Definition at line 380 of file mvdStackedLayerModel.h.

StackedLayerModel::ConstIterator mvd::StackedLayerModel::Begin ( void  ) const
inline

Definition at line 400 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::BeginEditPixelInfo ( )
inline

Definition at line 127 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::BeginEditResolutions ( )
inline

Definition at line 129 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::Clear ( )
slot
void mvd::StackedLayerModel::ClearPixelInfos ( )
inlineprivate

Definition at line 409 of file mvdStackedLayerModel.h.

bool mvd::StackedLayerModel::Contains ( const KeyType key) const
inline

Definition at line 418 of file mvdStackedLayerModel.h.

bool mvd::StackedLayerModel::Contains ( const AbstractLayerModel ) const
void mvd::StackedLayerModel::ContentAboutToBeChanged ( )
signal
void mvd::StackedLayerModel::ContentAboutToBeReset ( )
signal
void mvd::StackedLayerModel::ContentChanged ( )
signal
void mvd::StackedLayerModel::ContentReset ( )
signal
void mvd::StackedLayerModel::CountSRT ( vcl_size_t &  unknown,
vcl_size_t &  carto,
vcl_size_t &  geo,
vcl_size_t &  sensor 
) const
void mvd::StackedLayerModel::CurrentAboutToBeChanged ( vcl_size_t  )
signal
void mvd::StackedLayerModel::CurrentChanged ( vcl_size_t  )
signal
void mvd::StackedLayerModel::Delete ( const KeyType key)
inlineslot

Definition at line 427 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::Delete ( SizeType  )
private
void mvd::StackedLayerModel::DeleteCurrent ( )
inlineslot

Definition at line 438 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::Deleting ( unsigned int  index)
slot
StackedLayerModel::ConstIterator mvd::StackedLayerModel::End ( void  ) const
inline

Definition at line 499 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::EndEditPixelInfo ( const QPoint &  screen,
const PointType view 
)
inline

Definition at line 508 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::EndEditResolutions ( )
StackedLayerModel::ConstIterator mvd::StackedLayerModel::Find ( const AbstractLayerModel layer) const
inline

Definition at line 516 of file mvdStackedLayerModel.h.

StackedLayerModel::SizeType mvd::StackedLayerModel::FindKey ( const KeyType key) const
inlineprivate

Definition at line 449 of file mvdStackedLayerModel.h.

References NIL_INDEX.

static KeyType mvd::StackedLayerModel::GenerateKey ( AbstractLayerModel )
staticprivate
const AbstractLayerModel * mvd::StackedLayerModel::Get ( const KeyType key) const
inline

Definition at line 531 of file mvdStackedLayerModel.h.

AbstractLayerModel * mvd::StackedLayerModel::Get ( const KeyType key)
inline

Definition at line 539 of file mvdStackedLayerModel.h.

StackedLayerModel::SizeType mvd::StackedLayerModel::GetCount ( ) const
inline

Definition at line 463 of file mvdStackedLayerModel.h.

template<typename T >
T * mvd::StackedLayerModel::GetCurrent ( ) const
inline

Definition at line 564 of file mvdStackedLayerModel.h.

template<typename T >
T * mvd::StackedLayerModel::GetCurrent ( )
inline

Definition at line 554 of file mvdStackedLayerModel.h.

AbstractLayerModel * mvd::StackedLayerModel::GetCurrent ( ) const
inline

Definition at line 592 of file mvdStackedLayerModel.h.

AbstractLayerModel * mvd::StackedLayerModel::GetCurrent ( )
inline

Definition at line 573 of file mvdStackedLayerModel.h.

StackedLayerModel::SizeType mvd::StackedLayerModel::GetCurrentIndex ( ) const
inline

Definition at line 601 of file mvdStackedLayerModel.h.

const StackedLayerModel::KeyType & mvd::StackedLayerModel::GetCurrentKey ( ) const
inline

Definition at line 610 of file mvdStackedLayerModel.h.

const StackedLayerModel::KeyType & mvd::StackedLayerModel::GetKey ( SizeType  index) const
inline

Definition at line 619 of file mvdStackedLayerModel.h.

References NIL_KEY.

const StackedLayerModel::KeyVector & mvd::StackedLayerModel::GetKeys ( ) const
inline

Definition at line 472 of file mvdStackedLayerModel.h.

template<typename T >
T * mvd::StackedLayerModel::GetReference ( ) const
inline

Definition at line 642 of file mvdStackedLayerModel.h.

template<typename T >
T * mvd::StackedLayerModel::GetReference ( )
inline

Definition at line 632 of file mvdStackedLayerModel.h.

AbstractLayerModel * mvd::StackedLayerModel::GetReference ( ) const
inline

Definition at line 670 of file mvdStackedLayerModel.h.

AbstractLayerModel * mvd::StackedLayerModel::GetReference ( )
inline

Definition at line 651 of file mvdStackedLayerModel.h.

StackedLayerModel::SizeType mvd::StackedLayerModel::GetReferenceIndex ( ) const
inline

Definition at line 679 of file mvdStackedLayerModel.h.

bool mvd::StackedLayerModel::HasCurrent ( ) const
inline

Definition at line 481 of file mvdStackedLayerModel.h.

bool mvd::StackedLayerModel::HasReference ( ) const
inline

Definition at line 490 of file mvdStackedLayerModel.h.

StackedLayerModel::SizeType mvd::StackedLayerModel::IndexOf ( const AbstractLayerModel layer) const
inline

Definition at line 689 of file mvdStackedLayerModel.h.

References NIL_INDEX, and NIL_KEY.

KeyType mvd::StackedLayerModel::Insert ( AbstractLayerModel ,
SizeType  index 
)
bool mvd::StackedLayerModel::IsEmpty ( ) const
inline

Definition at line 709 of file mvdStackedLayerModel.h.

const StackedLayerModel::KeyType & mvd::StackedLayerModel::KeyOf ( const AbstractLayerModel layerModel) const
inlineprivate

Definition at line 718 of file mvdStackedLayerModel.h.

References NIL_KEY.

void mvd::StackedLayerModel::LayerAboutToBeDeleted ( vcl_size_t  index)
signal
void mvd::StackedLayerModel::LayerAdded ( vcl_size_t  index)
signal
void mvd::StackedLayerModel::LayerDeleted ( vcl_size_t  index)
signal
void mvd::StackedLayerModel::LayerRenamed ( )
signal
void mvd::StackedLayerModel::LowerCurrent ( )
inlineslot

Definition at line 734 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::LowerLayer ( SizeType  )
private
void mvd::StackedLayerModel::MoveCurrentToBottom ( )
inlineslot

Definition at line 750 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::MoveCurrentToTop ( )
inlineslot

Definition at line 761 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::MoveTo ( SizeType  index,
SizeType  position 
)
private
void mvd::StackedLayerModel::MoveToBottom ( SizeType  )
private
void mvd::StackedLayerModel::MoveToTop ( SizeType  )
private
StackedLayerModel::SizeType mvd::StackedLayerModel::Next ( SizeType  index)
inlineprivate

Definition at line 773 of file mvdStackedLayerModel.h.

const AbstractLayerModel * mvd::StackedLayerModel::operator[] ( SizeType  i) const
inline

Definition at line 353 of file mvdStackedLayerModel.h.

AbstractLayerModel * mvd::StackedLayerModel::operator[] ( SizeType  i)
inline

Definition at line 362 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::OrderAboutToBeChanged ( )
signal
void mvd::StackedLayerModel::OrderChanged ( )
signal
void mvd::StackedLayerModel::PixelInfoChanged ( const QPoint &  ,
const PointType ,
const PixelInfo::Vector  
)
signal
const PixelInfo::Vector & mvd::StackedLayerModel::PixelInfos ( ) const
inline

Definition at line 785 of file mvdStackedLayerModel.h.

PixelInfo::Vector & mvd::StackedLayerModel::PixelInfos ( )
inline

Definition at line 794 of file mvdStackedLayerModel.h.

StackedLayerModel::SizeType mvd::StackedLayerModel::Prev ( SizeType  index)
inlineprivate

Definition at line 803 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::RaiseCurrent ( )
inlineslot

Definition at line 815 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::RaiseLayer ( SizeType  )
private
void mvd::StackedLayerModel::ReferenceAboutToBeChanged ( vcl_size_t  )
signal
void mvd::StackedLayerModel::ReferenceChanged ( vcl_size_t  )
signal
void mvd::StackedLayerModel::ResolutionsChanged ( const PixelInfo::Vector )
signal
void mvd::StackedLayerModel::RotateLayerDown ( SizeType  )
private
void mvd::StackedLayerModel::RotateLayers ( int  steps)
inlineslot

Definition at line 832 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::RotateLayerUp ( SizeType  )
private
void mvd::StackedLayerModel::SelectedLayerModelChanged ( const StackedLayerModel::KeyType )
signal
void mvd::StackedLayerModel::SelectFirst ( )
inlineslot

Definition at line 848 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::SelectLast ( )
inlineslot

Definition at line 860 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::SelectNext ( )
inlineslot

Definition at line 872 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::SelectPrevious ( )
inlineslot

Definition at line 884 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::SetCurrent ( SizeType  index,
bool  force = false 
)
inline

Definition at line 896 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::SetCurrent ( const KeyType )
void mvd::StackedLayerModel::SetCurrent ( const AbstractLayerModel )
void mvd::StackedLayerModel::SetReference ( SizeType  index,
bool  force = false 
)
inline

Definition at line 923 of file mvdStackedLayerModel.h.

void mvd::StackedLayerModel::SetReference ( const KeyType )
void mvd::StackedLayerModel::SetReference ( const AbstractLayerModel )

Member Data Documentation

SizeType mvd::StackedLayerModel::m_Current
private

Definition at line 305 of file mvdStackedLayerModel.h.

KeyVector mvd::StackedLayerModel::m_Keys
private

Definition at line 304 of file mvdStackedLayerModel.h.

SizeType mvd::StackedLayerModel::m_LayerCount
staticprivate

Definition at line 301 of file mvdStackedLayerModel.h.

LayerModelMap mvd::StackedLayerModel::m_LayerModels
private

Definition at line 303 of file mvdStackedLayerModel.h.

PixelInfo::Vector mvd::StackedLayerModel::m_PixelInfos
private

Definition at line 312 of file mvdStackedLayerModel.h.

SizeType mvd::StackedLayerModel::m_Reference
private

Definition at line 306 of file mvdStackedLayerModel.h.

const SizeType mvd::StackedLayerModel::NIL_INDEX
static

Definition at line 105 of file mvdStackedLayerModel.h.

Referenced by FindKey(), and IndexOf().

const KeyType mvd::StackedLayerModel::NIL_KEY
staticprivate

Definition at line 299 of file mvdStackedLayerModel.h.

Referenced by GetKey(), IndexOf(), and KeyOf().


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