OTB  6.7.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::GlImageActor Class Reference

#include <otbGlImageActor.h>

+ Inheritance diagram for otb::GlImageActor:
+ Collaboration diagram for otb::GlImageActor:

Classes

struct  ResolutionAlgorithm
 
class  Tile
 

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
VectorImageType::ImageKeywordlistType 
ImageKeywordlistType
 
typedef VectorImageType::IndexType IndexType
 
typedef itk::MetaDataDictionary MetaDataDictionaryType
 
typedef VectorImageType::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef VectorImageType::PointType PointType
 
typedef VectorImageType::RegionType RegionType
 
typedef
VectorRescaleIntensityImageFilter
< VectorImageType,
UCharVectorImageType
RescaleFilterType
 
typedef GlImageActor Self
 
typedef VectorImageType::SizeType SizeType
 
typedef
VectorImageType::SpacingType 
SpacingType
 
typedef GlActor Superclass
 
typedef VectorImage< unsigned
char > 
UCharVectorImageType
 
typedef VectorImage< float > VectorImageType
 
- Public Types inherited from otb::GlActor
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef GlActor Self
 
typedef itk::Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 
- Public Types inherited from otb::GeoInterface
typedef itk::Point
< itk::SpacePrecisionType, 2 > 
Point2
 
typedef itk::Point< double, 2 > Point2d
 
typedef itk::Vector
< itk::SpacePrecisionType, 2 > 
Spacing2
 

Public Member Functions

void AutoColorAdjustment (double &minRed, double &maxRed, double &minGreen, double &maxGreen, double &minBlue, double &maxBlue, bool full=true, unsigned int refSize=500, double lcp=0.02, double hcp=0.02)
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
void CreateShader ()
 
virtual unsigned int GetBlueIdx ()
 
virtual unsigned int GetCurrentResolution ()
 
void GetExtent (double &ulx, double &uly, double &lrx, double &lry) const override
 
virtual unsigned int GetGreenIdx ()
 
ImageKeywordlistType GetKwl () const
 
bool GetKwl (ImageKeywordlist &) const override
 
virtual RegionType GetLargestRegion ()
 
MetaDataDictionaryTypeGetMetaDataDictionary () const
 
virtual unsigned int GetNumberOfComponents ()
 
const PointTypeGetOrigin () const
 
bool GetPixel (const PointType &physical, PixelType &pixel, IndexType &index) const
 
bool GetPixelFromViewport (const PointType &in, PixelType &pixel) const
 
bool GetPixelFromViewport (const PointType &view, PixelType &pixel, PointType &physical, IndexType &index) const
 
virtual unsigned int GetRedIdx ()
 
ResolutionAlgorithm::type GetResolutionAlgorithm () const
 
virtual bool GetSoftwareRendering ()
 
const GeoInterface::Spacing2GetSpacing () const override
 
virtual unsigned int GetTileSize ()
 
std::string GetWkt () const override
 
bool HasKwl () const override
 
PointType ImageToViewportTransform (const PointType &in, bool physical=true) const
 
void Initialize (const std::string &filename)
 
 itkGetObjectMacro (Shader, FragmentShader)
 
 itkGetObjectMacro (ImageSettings, ImageSettings)
 
void ProcessViewSettings () override
 
void Render () override
 
virtual void SetBlueIdx (const unsigned int idx)
 
virtual void SetGreenIdx (const unsigned int idx)
 
virtual void SetRedIdx (const unsigned int idx)
 
void SetResolutionAlgorithm (ResolutionAlgorithm::type alg)
 
virtual void SetShader (FragmentShader *_arg)
 
virtual void SetSoftwareRendering (bool _arg)
 
virtual void SetTileSize (unsigned int _arg)
 
virtual void SoftwareRenderingOff ()
 
virtual void SoftwareRenderingOn ()
 
bool TransformFromViewport (Point2d &out, const Point2d &in, bool isPhysical=true) const override
 
bool TransformToViewport (Point2d &out, const Point2d &in, bool isPhysical=true) const override
 
void UpdateData () override
 
void UpdateTransforms ()
 
PointType ViewportToImageTransform (const PointType &in, bool physical=true) const
 
- Public Member Functions inherited from otb::GlActor
virtual void GeometryChangedOff ()
 
virtual void GeometryChangedOn ()
 
virtual bool GetGeometryChanged ()
 
virtual const char * GetName () const
 
virtual bool GetOverlay ()
 
virtual const ViewSettingsGetSettings () const
 
virtual bool GetVisible ()
 
 itkGetObjectMacro (Settings, ViewSettings)
 
virtual void OverlayOff ()
 
virtual void OverlayOn ()
 
virtual void SetGeometryChanged (bool _arg)
 
virtual void SetName (const char *_arg)
 
virtual void SetOverlay (bool _arg)
 
virtual void SetSettings (ViewSettings *_arg)
 
virtual void SetVisible (bool _arg)
 
virtual void VisibleOff ()
 
virtual void VisibleOn ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const char * GetNameOfClass () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Types

typedef MultiChannelExtractROI
< float, float > 
ExtractROIFilterType
 
typedef ImageFileReader
< VectorImageType
ReaderType
 
typedef std::vector< unsigned int > ResolutionVectorType
 
typedef
itk::CenteredRigid2DTransform 
RigidTransformType
 
typedef otb::GenericRSTransform RSTransformType
 
typedef std::vector< TileTileVectorType
 

Protected Member Functions

 GlImageActor ()
 
 ~GlImageActor () override
 
- Protected Member Functions inherited from otb::GlActor
 GlActor ()
 
 ~GlActor () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 
- Protected Member Functions inherited from otb::GeoInterface
 GeoInterface ()
 
virtual ~GeoInterface ()
 

Private Member Functions

void CleanLoadedTiles ()
 
void ClearLoadedTiles ()
 
 GlImageActor (const Self &)
 
void ImageRegionToViewportExtent (const RegionType &region, double &ulx, double &uly, double &lrx, double &lry) const
 
void ImageRegionToViewportQuad (const RegionType &region, PointType &ul, PointType &ur, PointType &ll, PointType &lr, bool rotate=true) const
 
void LoadTile (Tile &tile)
 
void operator= (const Self &)
 
bool TileAlreadyLoaded (const Tile &tile)
 
void UnloadTile (Tile &tile)
 
void UpdateResolution ()
 
void ViewportExtentToImageRegion (const double &ulx, const double &uly, const double &lrx, const double &lry, RegionType &region) const
 

Private Attributes

ResolutionVectorType m_AvailableResolutions
 
unsigned int m_BlueIdx
 
unsigned int m_CurrentResolution
 
std::string m_FileName
 
ReaderType::Pointer m_FileReader
 
unsigned int m_GreenIdx
 
ImageSettings::Pointer m_ImageSettings
 
RSTransformType::Pointer m_ImageToViewportTransform
 
RegionType m_LargestRegion
 
TileVectorType m_LoadedTiles
 
unsigned int m_NumberOfComponents
 
PointType m_Origin
 
unsigned int m_RedIdx
 
ResolutionAlgorithm::type m_ResolutionAlgorithm
 
FragmentShader::Pointer m_Shader
 
bool m_SoftwareRendering
 
SpacingType m_Spacing
 
unsigned int m_TileSize
 
RigidTransformType::Pointer m_ViewportBackwardRotationTransform
 
RigidTransformType::Pointer m_ViewportForwardRotationTransform
 
RSTransformType::Pointer m_ViewportToImageTransform
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

Definition at line 44 of file otbGlImageActor.h.

Member Typedef Documentation

Definition at line 51 of file otbGlImageActor.h.

Definition at line 210 of file otbGlImageActor.h.

Definition at line 58 of file otbGlImageActor.h.

Definition at line 61 of file otbGlImageActor.h.

Definition at line 59 of file otbGlImageActor.h.

Definition at line 57 of file otbGlImageActor.h.

Definition at line 50 of file otbGlImageActor.h.

Definition at line 64 of file otbGlImageActor.h.

Definition at line 209 of file otbGlImageActor.h.

Definition at line 62 of file otbGlImageActor.h.

Definition at line 65 of file otbGlImageActor.h.

typedef std::vector<unsigned int> otb::GlImageActor::ResolutionVectorType
protected

Definition at line 213 of file otbGlImageActor.h.

Definition at line 212 of file otbGlImageActor.h.

Definition at line 211 of file otbGlImageActor.h.

Definition at line 48 of file otbGlImageActor.h.

Definition at line 60 of file otbGlImageActor.h.

Definition at line 63 of file otbGlImageActor.h.

Definition at line 49 of file otbGlImageActor.h.

typedef std::vector<Tile> otb::GlImageActor::TileVectorType
protected

Definition at line 257 of file otbGlImageActor.h.

Definition at line 56 of file otbGlImageActor.h.

Definition at line 53 of file otbGlImageActor.h.

Constructor & Destructor Documentation

otb::GlImageActor::GlImageActor ( )
protected
otb::GlImageActor::~GlImageActor ( )
overrideprotected
otb::GlImageActor::GlImageActor ( const Self )
private

Member Function Documentation

void otb::GlImageActor::AutoColorAdjustment ( double &  minRed,
double &  maxRed,
double &  minGreen,
double &  maxGreen,
double &  minBlue,
double &  maxBlue,
bool  full = true,
unsigned int  refSize = 500,
double  lcp = 0.02,
double  hcp = 0.02 
)
void otb::GlImageActor::CleanLoadedTiles ( )
private
void otb::GlImageActor::ClearLoadedTiles ( )
private
virtual::itk::LightObject::Pointer otb::GlImageActor::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

void otb::GlImageActor::CreateShader ( )
virtual unsigned int otb::GlImageActor::GetBlueIdx ( )
virtual
virtual unsigned int otb::GlImageActor::GetCurrentResolution ( )
virtual
void otb::GlImageActor::GetExtent ( double &  ulx,
double &  uly,
double &  lrx,
double &  lry 
) const
overridevirtual

Implements otb::GlActor.

virtual unsigned int otb::GlImageActor::GetGreenIdx ( )
virtual
ImageKeywordlistType otb::GlImageActor::GetKwl ( ) const
bool otb::GlImageActor::GetKwl ( ImageKeywordlist ) const
overridevirtual

Reimplemented from otb::GeoInterface.

virtual RegionType otb::GlImageActor::GetLargestRegion ( )
virtual
MetaDataDictionaryType& otb::GlImageActor::GetMetaDataDictionary ( ) const
virtual unsigned int otb::GlImageActor::GetNumberOfComponents ( )
virtual
const PointType& otb::GlImageActor::GetOrigin ( ) const
bool otb::GlImageActor::GetPixel ( const PointType physical,
PixelType pixel,
IndexType index 
) const
bool otb::GlImageActor::GetPixelFromViewport ( const PointType in,
PixelType pixel 
) const
bool otb::GlImageActor::GetPixelFromViewport ( const PointType view,
PixelType pixel,
PointType physical,
IndexType index 
) const
virtual unsigned int otb::GlImageActor::GetRedIdx ( )
virtual
ResolutionAlgorithm::type otb::GlImageActor::GetResolutionAlgorithm ( ) const
inline

Definition at line 139 of file otbGlImageActor.h.

virtual bool otb::GlImageActor::GetSoftwareRendering ( )
virtual
const GeoInterface::Spacing2& otb::GlImageActor::GetSpacing ( ) const
overridevirtual

Reimplemented from otb::GeoInterface.

virtual unsigned int otb::GlImageActor::GetTileSize ( )
virtual
std::string otb::GlImageActor::GetWkt ( ) const
overridevirtual

Reimplemented from otb::GeoInterface.

bool otb::GlImageActor::HasKwl ( ) const
overridevirtual

Reimplemented from otb::GeoInterface.

void otb::GlImageActor::ImageRegionToViewportExtent ( const RegionType region,
double &  ulx,
double &  uly,
double &  lrx,
double &  lry 
) const
private
void otb::GlImageActor::ImageRegionToViewportQuad ( const RegionType region,
PointType ul,
PointType ur,
PointType ll,
PointType lr,
bool  rotate = true 
) const
private
PointType otb::GlImageActor::ImageToViewportTransform ( const PointType in,
bool  physical = true 
) const
void otb::GlImageActor::Initialize ( const std::string &  filename)
otb::GlImageActor::itkGetObjectMacro ( Shader  ,
FragmentShader   
)
otb::GlImageActor::itkGetObjectMacro ( ImageSettings  ,
ImageSettings   
)
void otb::GlImageActor::LoadTile ( Tile tile)
private
static Pointer otb::GlImageActor::New ( )
static
void otb::GlImageActor::operator= ( const Self )
private
void otb::GlImageActor::ProcessViewSettings ( )
overridevirtual

Implements otb::GlActor.

void otb::GlImageActor::Render ( )
overridevirtual

Implements otb::GlActor.

virtual void otb::GlImageActor::SetBlueIdx ( const unsigned int  idx)
inlinevirtual

Definition at line 162 of file otbGlImageActor.h.

virtual void otb::GlImageActor::SetGreenIdx ( const unsigned int  idx)
inlinevirtual

Definition at line 153 of file otbGlImageActor.h.

virtual void otb::GlImageActor::SetRedIdx ( const unsigned int  idx)
inlinevirtual

Definition at line 144 of file otbGlImageActor.h.

void otb::GlImageActor::SetResolutionAlgorithm ( ResolutionAlgorithm::type  alg)
inline

Definition at line 134 of file otbGlImageActor.h.

virtual void otb::GlImageActor::SetShader ( FragmentShader _arg)
virtual
virtual void otb::GlImageActor::SetSoftwareRendering ( bool  _arg)
virtual
virtual void otb::GlImageActor::SetTileSize ( unsigned int  _arg)
virtual
virtual void otb::GlImageActor::SoftwareRenderingOff ( )
virtual
virtual void otb::GlImageActor::SoftwareRenderingOn ( )
virtual
bool otb::GlImageActor::TileAlreadyLoaded ( const Tile tile)
private
bool otb::GlImageActor::TransformFromViewport ( Point2d out,
const Point2d in,
bool  isPhysical = true 
) const
overridevirtual

Transform given point from viewport coordinate-system to this actor coordinate-system.

By default this method return false. It should be implemented in derived classes if needed.

Parameters
outThe transformed point (in this actor coordinate-system).
inThe given point (in viewport coordinate-system).
isPhysicalIndicate physical coordates are desired.
Returns
true if the operation has succeeded; false otherwise.

Reimplemented from otb::GeoInterface.

bool otb::GlImageActor::TransformToViewport ( Point2d out,
const Point2d in,
bool  isPhysical = true 
) const
overridevirtual

Transform given point from viewport coordinate-system to this actor coordinate-system.

By default this method return false. It should be implemented in derived classes if needed.

Parameters
outThe transformed point (in this actor coordinate-system).
inThe given point (in viewport coordinate-system).
isPhysicalIndicate physical coordates are desired.
Returns
true if the operation has succeeded; false otherwise.

Reimplemented from otb::GeoInterface.

void otb::GlImageActor::UnloadTile ( Tile tile)
private
void otb::GlImageActor::UpdateData ( )
overridevirtual

Implements otb::GlActor.

void otb::GlImageActor::UpdateResolution ( )
private
void otb::GlImageActor::UpdateTransforms ( )
void otb::GlImageActor::ViewportExtentToImageRegion ( const double &  ulx,
const double &  uly,
const double &  lrx,
const double &  lry,
RegionType region 
) const
private
PointType otb::GlImageActor::ViewportToImageTransform ( const PointType in,
bool  physical = true 
) const

Member Data Documentation

ResolutionVectorType otb::GlImageActor::m_AvailableResolutions
private

Definition at line 303 of file otbGlImageActor.h.

unsigned int otb::GlImageActor::m_BlueIdx
private

Definition at line 299 of file otbGlImageActor.h.

unsigned int otb::GlImageActor::m_CurrentResolution
private

Definition at line 301 of file otbGlImageActor.h.

std::string otb::GlImageActor::m_FileName
private

Definition at line 289 of file otbGlImageActor.h.

ReaderType::Pointer otb::GlImageActor::m_FileReader
private

Definition at line 291 of file otbGlImageActor.h.

unsigned int otb::GlImageActor::m_GreenIdx
private

Definition at line 297 of file otbGlImageActor.h.

ImageSettings::Pointer otb::GlImageActor::m_ImageSettings
private

Definition at line 310 of file otbGlImageActor.h.

RSTransformType::Pointer otb::GlImageActor::m_ImageToViewportTransform
private

Definition at line 314 of file otbGlImageActor.h.

RegionType otb::GlImageActor::m_LargestRegion
private

Definition at line 307 of file otbGlImageActor.h.

TileVectorType otb::GlImageActor::m_LoadedTiles
private

Definition at line 293 of file otbGlImageActor.h.

unsigned int otb::GlImageActor::m_NumberOfComponents
private

Definition at line 308 of file otbGlImageActor.h.

PointType otb::GlImageActor::m_Origin
private

Definition at line 305 of file otbGlImageActor.h.

unsigned int otb::GlImageActor::m_RedIdx
private

Definition at line 295 of file otbGlImageActor.h.

ResolutionAlgorithm::type otb::GlImageActor::m_ResolutionAlgorithm
private

Definition at line 319 of file otbGlImageActor.h.

FragmentShader::Pointer otb::GlImageActor::m_Shader
private

Definition at line 311 of file otbGlImageActor.h.

bool otb::GlImageActor::m_SoftwareRendering
private

Definition at line 321 of file otbGlImageActor.h.

SpacingType otb::GlImageActor::m_Spacing
private

Definition at line 306 of file otbGlImageActor.h.

unsigned int otb::GlImageActor::m_TileSize
private

Definition at line 287 of file otbGlImageActor.h.

RigidTransformType::Pointer otb::GlImageActor::m_ViewportBackwardRotationTransform
private

Definition at line 317 of file otbGlImageActor.h.

RigidTransformType::Pointer otb::GlImageActor::m_ViewportForwardRotationTransform
private

Definition at line 316 of file otbGlImageActor.h.

RSTransformType::Pointer otb::GlImageActor::m_ViewportToImageTransform
private

Definition at line 313 of file otbGlImageActor.h.


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