OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::Wrapper::OutputImageParameter Class Reference

#include <otbWrapperOutputImageParameter.h>

+ Inheritance diagram for otb::Wrapper::OutputImageParameter:
+ Collaboration diagram for otb::Wrapper::OutputImageParameter:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef OutputImageParameter Self
 
typedef Parameter Superclass
 
- Public Types inherited from otb::Wrapper::Parameter
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef Parameter Self
 
typedef itk::Object Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
ImageBaseTypeGetValue (void)
 
 itkGetObjectMacro (Image, ImageBaseType)
 
virtual void SetImage (ImageBaseType *_arg)
 
void SetValue (ImageBaseType *image)
 
- Public Member Functions inherited from otb::Wrapper::Parameter
virtual void SetName (const std::string &)
 
virtual const char * GetName () const
 
virtual void SetDescription (const std::string &)
 
virtual const std::string & GetDescription () const
 
virtual void SetKey (const std::string &)
 
virtual const char * GetKey () const
 
virtual void SetActive (bool flag)
 
bool GetActive (bool recurseParents=false) const
 
virtual void SetMandatory (bool flag)
 
virtual bool GetMandatory () const
 
virtual void MandatoryOn ()
 
virtual void MandatoryOff ()
 
virtual void SetAutomaticValue (bool flag)
 
virtual bool GetAutomaticValue () const
 
void AutomaticValueOn ()
 
void AutomaticValueOff ()
 
virtual void SetUserLevel (const UserLevel level)
 
virtual UserLevel GetUserLevel () const
 
virtual void SetRole (const Role role)
 
virtual Role GetRole () const
 
virtual bool HasUserValue () const
 
virtual void SetUserValue (bool isUserValue)
 
virtual void ClearValue ()
 
virtual void SetRoot (const Parameter::Pointer root)
 
virtual const Parameter::Pointer GetRoot () const
 
virtual bool IsRoot () const
 
virtual void AddChild (Parameter::Pointer child)
 
virtual std::vector< Parameter::PointerGetChildrenList ()
 
void TypeError (const std::string &target_type) const
 
virtual int ToInt () const
 
virtual float ToFloat () const
 
virtual double ToDouble () const
 
virtual std::vector< std::string > ToStringList () const
 
virtual void FromInt (int)
 
virtual void FromFloat (float)
 
virtual void FromDouble (double)
 
virtual void FromStringList (const std::vector< std::string > &)
 

Static Public Member Functions

static Pointer New ()
 
ImageBaseType::Pointer m_Image
 
itk::ProcessObject::Pointer m_InputCaster
 
itk::ProcessObject::Pointer m_OutputCaster
 
itk::ProcessObject::Pointer m_Writer
 
std::string m_FileName
 
ImagePixelType m_PixelType
 
ImagePixelType m_DefaultPixelType
 
unsigned int m_RAMValue
 
otb::MultiImageFileWriter::Pointer m_MultiWriter
 
static std::string ConvertPixelTypeToString (ImagePixelType type)
 
static bool ConvertStringToPixelType (const std::string &value, ImagePixelType &type)
 
virtual void SetPixelType (ImagePixelType _arg)
 
virtual ImagePixelType GetPixelType ()
 
virtual void SetDefaultPixelType (ImagePixelType _arg)
 
virtual ImagePixelType GetDefaultPixelType ()
 
virtual void SetRAMValue (unsigned int _arg)
 
virtual unsigned int GetRAMValue ()
 
bool IsMultiWritingEnabled ()
 
void Reset () override
 
bool HasValue () const override
 
void SetFileName (const char *filename)
 
void SetFileName (const std::string &filename)
 
virtual const char * GetFileName () const
 
void Write ()
 
itk::ProcessObject * GetWriter ()
 
void InitializeWriters (otb::MultiImageFileWriter::Pointer multi=otb::MultiImageFileWriter::Pointer())
 
std::string CheckFileName (bool fixMissingExtension=false)
 
ParameterType GetType () const override
 
std::string ToString () const override
 
void FromString (const std::string &value) override
 
 OutputImageParameter ()
 
 ~OutputImageParameter () override
 
 OutputImageParameter (const Parameter &)=delete
 
void operator= (const Parameter &)=delete
 
template<typename TInputImage >
void SwitchInput (TInputImage *)
 
template<typename TOutputImage , typename TInputImage >
void ClampAndWriteVectorImage (TInputImage *)
 

Additional Inherited Members

- Protected Member Functions inherited from otb::Wrapper::Parameter
 Parameter ()
 
- Protected Attributes inherited from otb::Wrapper::Parameter
std::string m_Name
 
std::string m_Description
 
std::string m_Key
 
bool m_Mandatory
 
bool m_Active
 
bool m_UserValue
 
UserLevel m_UserLevel
 
Role m_Role
 
itk::WeakPointer< Parameterm_Root
 
std::vector< Parameter::Pointerm_ChildrenList
 

Detailed Description

This class represents a OutputImage parameter.

Definition at line 41 of file otbWrapperOutputImageParameter.h.

Member Typedef Documentation

◆ ConstPointer

typedef itk::SmartPointer<const Self> otb::Wrapper::OutputImageParameter::ConstPointer

Definition at line 48 of file otbWrapperOutputImageParameter.h.

◆ Pointer

Definition at line 47 of file otbWrapperOutputImageParameter.h.

◆ Self

Standard class typedef

Definition at line 45 of file otbWrapperOutputImageParameter.h.

◆ Superclass

Definition at line 46 of file otbWrapperOutputImageParameter.h.

Constructor & Destructor Documentation

◆ OutputImageParameter() [1/2]

otb::Wrapper::OutputImageParameter::OutputImageParameter ( )
protected

Constructor

◆ ~OutputImageParameter()

otb::Wrapper::OutputImageParameter::~OutputImageParameter ( )
overrideprotected

Destructor

◆ OutputImageParameter() [2/2]

otb::Wrapper::OutputImageParameter::OutputImageParameter ( const Parameter )
privatedelete

Multi-writer, used in case several OutputImageParameter are written at once

Member Function Documentation

◆ CheckFileName()

std::string otb::Wrapper::OutputImageParameter::CheckFileName ( bool  fixMissingExtension = false)

Multi-writer, used in case several OutputImageParameter are written at once

◆ ClampAndWriteVectorImage()

template<typename TOutputImage , typename TInputImage >
void otb::Wrapper::OutputImageParameter::ClampAndWriteVectorImage ( TInputImage *  )
private

Multi-writer, used in case several OutputImageParameter are written at once

◆ ConvertPixelTypeToString()

static std::string otb::Wrapper::OutputImageParameter::ConvertPixelTypeToString ( ImagePixelType  type)
static

Static method to convert pixel type into string

◆ ConvertStringToPixelType()

static bool otb::Wrapper::OutputImageParameter::ConvertStringToPixelType ( const std::string &  value,
ImagePixelType type 
)
static

Converts a string into a pixel type (returns false if the conversion fails)

◆ CreateAnother()

virtual::itk::LightObject::Pointer otb::Wrapper::OutputImageParameter::CreateAnother ( void  ) const

◆ FromString()

void otb::Wrapper::OutputImageParameter::FromString ( const std::string &  value)
inlineoverridevirtual

Multi-writer, used in case several OutputImageParameter are written at once

Reimplemented from otb::Wrapper::Parameter.

Definition at line 126 of file otbWrapperOutputImageParameter.h.

◆ GetDefaultPixelType()

virtual ImagePixelType otb::Wrapper::OutputImageParameter::GetDefaultPixelType ( )
virtual

Multi-writer, used in case several OutputImageParameter are written at once

◆ GetFileName()

virtual const char* otb::Wrapper::OutputImageParameter::GetFileName ( ) const
virtual

Multi-writer, used in case several OutputImageParameter are written at once

◆ GetNameOfClass()

virtual const char* otb::Wrapper::OutputImageParameter::GetNameOfClass ( ) const
virtual

RTTI support

Reimplemented from otb::Wrapper::Parameter.

◆ GetPixelType()

virtual ImagePixelType otb::Wrapper::OutputImageParameter::GetPixelType ( )
virtual

Multi-writer, used in case several OutputImageParameter are written at once

◆ GetRAMValue()

virtual unsigned int otb::Wrapper::OutputImageParameter::GetRAMValue ( )
virtual

Multi-writer, used in case several OutputImageParameter are written at once

◆ GetType()

ParameterType otb::Wrapper::OutputImageParameter::GetType ( ) const
inlineoverridevirtual

Multi-writer, used in case several OutputImageParameter are written at once

Implements otb::Wrapper::Parameter.

Definition at line 116 of file otbWrapperOutputImageParameter.h.

References otb::Wrapper::ParameterType_OutputImage.

◆ GetValue()

ImageBaseType* otb::Wrapper::OutputImageParameter::GetValue ( void  )

Return any value

◆ GetWriter()

itk::ProcessObject* otb::Wrapper::OutputImageParameter::GetWriter ( )

Multi-writer, used in case several OutputImageParameter are written at once

◆ HasValue()

bool otb::Wrapper::OutputImageParameter::HasValue ( ) const
overridevirtual

Return true if a filename is set

Implements otb::Wrapper::Parameter.

◆ InitializeWriters()

void otb::Wrapper::OutputImageParameter::InitializeWriters ( otb::MultiImageFileWriter::Pointer  multi = otb::MultiImageFileWriter::Pointer())

Initialize internal writers, plus the multi-writer

◆ IsMultiWritingEnabled()

bool otb::Wrapper::OutputImageParameter::IsMultiWritingEnabled ( )

Check if multi-writing is enabled (several output images written together)

◆ itkGetObjectMacro()

otb::Wrapper::OutputImageParameter::itkGetObjectMacro ( Image  ,
ImageBaseType   
)

Get the value

◆ New()

static Pointer otb::Wrapper::OutputImageParameter::New ( )
static

Defining ::New() static method

◆ operator=()

void otb::Wrapper::OutputImageParameter::operator= ( const Parameter )
privatedelete

Multi-writer, used in case several OutputImageParameter are written at once

◆ Reset()

void otb::Wrapper::OutputImageParameter::Reset ( )
inlineoverridevirtual

Implement the reset method (replace pixel type by default type)

Reimplemented from otb::Wrapper::Parameter.

Definition at line 87 of file otbWrapperOutputImageParameter.h.

◆ SetDefaultPixelType()

virtual void otb::Wrapper::OutputImageParameter::SetDefaultPixelType ( ImagePixelType  _arg)
virtual

Set/Get DefaultPixelType

◆ SetFileName() [1/2]

void otb::Wrapper::OutputImageParameter::SetFileName ( const char *  filename)

Multi-writer, used in case several OutputImageParameter are written at once

◆ SetFileName() [2/2]

void otb::Wrapper::OutputImageParameter::SetFileName ( const std::string &  filename)

Multi-writer, used in case several OutputImageParameter are written at once

◆ SetImage()

virtual void otb::Wrapper::OutputImageParameter::SetImage ( ImageBaseType _arg)
virtual

Set the value

◆ SetPixelType()

virtual void otb::Wrapper::OutputImageParameter::SetPixelType ( ImagePixelType  _arg)
virtual

Set/Get PixelType to be used when saving

◆ SetRAMValue()

virtual void otb::Wrapper::OutputImageParameter::SetRAMValue ( unsigned int  _arg)
virtual

Set/Get available RAM value

◆ SetValue()

void otb::Wrapper::OutputImageParameter::SetValue ( ImageBaseType image)

◆ SwitchInput()

template<typename TInputImage >
void otb::Wrapper::OutputImageParameter::SwitchInput ( TInputImage *  )
private

Switch TInputImage according to expected output type.

◆ ToString()

std::string otb::Wrapper::OutputImageParameter::ToString ( ) const
inlineoverridevirtual

Multi-writer, used in case several OutputImageParameter are written at once

Reimplemented from otb::Wrapper::Parameter.

Definition at line 121 of file otbWrapperOutputImageParameter.h.

◆ Write()

void otb::Wrapper::OutputImageParameter::Write ( )

Multi-writer, used in case several OutputImageParameter are written at once

Member Data Documentation

◆ m_DefaultPixelType

ImagePixelType otb::Wrapper::OutputImageParameter::m_DefaultPixelType
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 161 of file otbWrapperOutputImageParameter.h.

◆ m_FileName

std::string otb::Wrapper::OutputImageParameter::m_FileName
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 158 of file otbWrapperOutputImageParameter.h.

◆ m_Image

ImageBaseType::Pointer otb::Wrapper::OutputImageParameter::m_Image
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 151 of file otbWrapperOutputImageParameter.h.

◆ m_InputCaster

itk::ProcessObject::Pointer otb::Wrapper::OutputImageParameter::m_InputCaster
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 153 of file otbWrapperOutputImageParameter.h.

◆ m_MultiWriter

otb::MultiImageFileWriter::Pointer otb::Wrapper::OutputImageParameter::m_MultiWriter
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 166 of file otbWrapperOutputImageParameter.h.

◆ m_OutputCaster

itk::ProcessObject::Pointer otb::Wrapper::OutputImageParameter::m_OutputCaster
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 154 of file otbWrapperOutputImageParameter.h.

◆ m_PixelType

ImagePixelType otb::Wrapper::OutputImageParameter::m_PixelType
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 160 of file otbWrapperOutputImageParameter.h.

◆ m_RAMValue

unsigned int otb::Wrapper::OutputImageParameter::m_RAMValue
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 163 of file otbWrapperOutputImageParameter.h.

◆ m_Writer

itk::ProcessObject::Pointer otb::Wrapper::OutputImageParameter::m_Writer
private

Multi-writer, used in case several OutputImageParameter are written at once

Definition at line 156 of file otbWrapperOutputImageParameter.h.


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