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

#include <otbKMLVectorDataIO.h>

+ Inheritance diagram for otb::KMLVectorDataIO:
+ Collaboration diagram for otb::KMLVectorDataIO:

Public Types

typedef Superclass::ByteOrder ByteOrder
 
typedef
InternalTreeNodeType::ChildrenListType 
ChildrenListType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef DataNodeType::Pointer DataNodePointerType
 
typedef
VectorDataType::DataNodeType 
DataNodeType
 
typedef DataTreeType::ConstPointer DataTreeConstPointerType
 
typedef DataTreeType::Pointer DataTreePointerType
 
typedef
VectorDataType::DataTreeType 
DataTreeType
 
typedef DataTreeType::TreeNodeType InternalTreeNodeType
 
typedef LineType::Pointer LinePointerType
 
typedef DataNodeType::LineType LineType
 
typedef itk::SmartPointer< SelfPointer
 
typedef DataNodeType::PointType PointType
 
typedef PolygonListType::Pointer PolygonListPointerType
 
typedef
DataNodeType::PolygonListType 
PolygonListType
 
typedef PolygonType::Pointer PolygonPointerType
 
typedef DataNodeType::PolygonType PolygonType
 
typedef
VectorDataProjectionFilter
< VectorDataType,
VectorDataType
ProjectionFilterType
 
typedef KMLVectorDataIO Self
 
typedef VectorDataIOBase Superclass
 
typedef
VectorDataType::ConstPointer 
VectorDataConstPointerType
 
typedef VectorDataType::Pointer VectorDataPointerType
 
typedef VectorData< double, 2 > VectorDataType
 
typedef
VertexListType::ConstPointer 
VertexListConstPointerType
 
typedef LineType::VertexListType VertexListType
 
typedef LineType::VertexType VertexType
 
- Public Types inherited from otb::VectorDataIOBase
enum  ByteOrder {
  BigEndian,
  LittleEndian,
  OrderNotApplicable
}
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::Point< double,
VDimension
PointType
 
typedef VectorDataIOBase Self
 
typedef std::streamoff SizeType
 
typedef itk::Vector< double,
VDimension
SpacingType
 
typedef itk::LightProcessObject Superclass
 
- Public Types inherited from itk::LightProcessObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightProcessObject Self
 
typedef 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 Member Functions

bool CanReadFile (const char *) const override
 
bool CanWriteFile (const char *) const override
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
void Read (itk::DataObject *data) override
 
void Write (const itk::DataObject *data, char **papszOptions=nullptr) override
 
- Public Member Functions inherited from otb::VectorDataIOBase
virtual bool CanStreamRead () const
 
virtual bool CanStreamWrite () const
 
std::string GetByteOrderAsString (ByteOrder) const
 
virtual void SetFileName (const char *_arg)
 
virtual const char * GetFileName () const
 
virtual void SetByteOrder (const ByteOrder _arg)
 
virtual ByteOrder GetByteOrder () const
 
void SetByteOrderToBigEndian ()
 
void SetByteOrderToLittleEndian ()
 
- Public Member Functions inherited from itk::LightProcessObject
virtual void AbortGenerateDataOff ()
 
virtual void AbortGenerateDataOn ()
 
virtual const bool & GetAbortGenerateData () const
 
virtual const float & GetProgress () const
 
virtual void SetAbortGenerateData (bool _arg)
 
virtual void SetProgress (float _arg)
 
virtual void UpdateOutputData ()
 
void UpdateProgress (float amount)
 
- 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 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::LightProcessObject
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 Member Functions

DataNodePointerType ConvertGeometryToLinearRingNode (const kmldom::GeometryPtr &geometry)
 
DataNodePointerType ConvertGeometryToLineStringNode (const kmldom::GeometryPtr &geometry)
 
DataNodePointerType ConvertGeometryToPointNode (const kmldom::GeometryPtr &geometry)
 
DataNodePointerType ConvertGeometryToPolygonNode (const kmldom::GeometryPtr &geometry)
 
 KMLVectorDataIO ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void ProcessNodeWrite (InternalTreeNodeType *source, kmldom::KmlFactory *factory, kmldom::KmlPtr kml, kmldom::DocumentPtr currentDocument, kmldom::FolderPtr currentFolder, kmldom::MultiGeometryPtr currentMultiGeometry)
 
void WalkContainer (const kmldom::ContainerPtr &container, DataNodePointerType father)
 
void WalkFeature (const kmldom::FeaturePtr &feature, DataNodePointerType father)
 
void WalkGeometry (const kmldom::GeometryPtr &geometry, DataNodePointerType father)
 
 ~KMLVectorDataIO () override
 
- Protected Member Functions inherited from otb::VectorDataIOBase
virtual void Reset (const bool freeDynamic=true)
 
 VectorDataIOBase ()
 
 ~VectorDataIOBase () override
 
- Protected Member Functions inherited from itk::LightProcessObject
virtual void GenerateData ()
 
 LightProcessObject ()
 
 ~LightProcessObject ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
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 ()
 

Static Protected Member Functions

static const kmldom::FeaturePtr GetRootFeature (const kmldom::ElementPtr &root)
 
static void PrintFeature (const kmldom::FeaturePtr &feature, int depth)
 
static void PrintIndented (const std::string &item, int depth)
 

Private Member Functions

 KMLVectorDataIO (const Self &)=delete
 
void operator= (const Self &)=delete
 

Private Attributes

unsigned int m_Kept
 
DataTreePointerType m_Tree
 

Additional Inherited Members

- Static Public Attributes inherited from otb::VectorDataIOBase
static const unsigned int VDimension = 3
 
- Protected Attributes inherited from otb::VectorDataIOBase
ByteOrder m_ByteOrder
 
std::string m_FileName
 
bool m_Initialized
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

ImageIO object for reading/writing KML format vector data.

Definition at line 47 of file otbKMLVectorDataIO.h.

Member Typedef Documentation

typedef Superclass::ByteOrder otb::KMLVectorDataIO::ByteOrder

Byte order typedef

Definition at line 62 of file otbKMLVectorDataIO.h.

Definition at line 71 of file otbKMLVectorDataIO.h.

Definition at line 56 of file otbKMLVectorDataIO.h.

Definition at line 75 of file otbKMLVectorDataIO.h.

Definition at line 74 of file otbKMLVectorDataIO.h.

Definition at line 73 of file otbKMLVectorDataIO.h.

Definition at line 72 of file otbKMLVectorDataIO.h.

Definition at line 69 of file otbKMLVectorDataIO.h.

Definition at line 70 of file otbKMLVectorDataIO.h.

Definition at line 80 of file otbKMLVectorDataIO.h.

Definition at line 77 of file otbKMLVectorDataIO.h.

Definition at line 55 of file otbKMLVectorDataIO.h.

Definition at line 76 of file otbKMLVectorDataIO.h.

Definition at line 85 of file otbKMLVectorDataIO.h.

Definition at line 84 of file otbKMLVectorDataIO.h.

Definition at line 83 of file otbKMLVectorDataIO.h.

Definition at line 82 of file otbKMLVectorDataIO.h.

Definition at line 88 of file otbKMLVectorDataIO.h.

Standard class typedefs.

Definition at line 53 of file otbKMLVectorDataIO.h.

Definition at line 54 of file otbKMLVectorDataIO.h.

Definition at line 87 of file otbKMLVectorDataIO.h.

Definition at line 86 of file otbKMLVectorDataIO.h.

Data typedef

Definition at line 68 of file otbKMLVectorDataIO.h.

typedef VertexListType::ConstPointer otb::KMLVectorDataIO::VertexListConstPointerType

Definition at line 79 of file otbKMLVectorDataIO.h.

Definition at line 78 of file otbKMLVectorDataIO.h.

Definition at line 81 of file otbKMLVectorDataIO.h.

Constructor & Destructor Documentation

otb::KMLVectorDataIO::KMLVectorDataIO ( )
protected

Constructor.

otb::KMLVectorDataIO::~KMLVectorDataIO ( )
overrideprotected

Destructor.

otb::KMLVectorDataIO::KMLVectorDataIO ( const Self )
privatedelete

Member Function Documentation

bool otb::KMLVectorDataIO::CanReadFile ( const char *  ) const
overridevirtual

Determine the file type. Returns true if this VectorDataIO can read the file specified.

Implements otb::VectorDataIOBase.

bool otb::KMLVectorDataIO::CanWriteFile ( const char *  ) const
overridevirtual

Determine the file type. Returns true if this VectorDataIO can read the file specified.

Implements otb::VectorDataIOBase.

DataNodePointerType otb::KMLVectorDataIO::ConvertGeometryToLinearRingNode ( const kmldom::GeometryPtr &  geometry)
protected
DataNodePointerType otb::KMLVectorDataIO::ConvertGeometryToLineStringNode ( const kmldom::GeometryPtr &  geometry)
protected
DataNodePointerType otb::KMLVectorDataIO::ConvertGeometryToPointNode ( const kmldom::GeometryPtr &  geometry)
protected

Conversion tools

DataNodePointerType otb::KMLVectorDataIO::ConvertGeometryToPolygonNode ( const kmldom::GeometryPtr &  geometry)
protected
virtual::itk::LightObject::Pointer otb::KMLVectorDataIO::CreateAnother ( void  ) const
virtual

Reimplemented from itk::LightProcessObject.

virtual const char* otb::KMLVectorDataIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::VectorDataIOBase.

static const kmldom::FeaturePtr otb::KMLVectorDataIO::GetRootFeature ( const kmldom::ElementPtr &  root)
staticprotected
static Pointer otb::KMLVectorDataIO::New ( )
static

Method for creation through the object factory.

void otb::KMLVectorDataIO::operator= ( const Self )
privatedelete
static void otb::KMLVectorDataIO::PrintFeature ( const kmldom::FeaturePtr &  feature,
int  depth 
)
staticprotected
static void otb::KMLVectorDataIO::PrintIndented ( const std::string &  item,
int  depth 
)
staticprotected
void otb::KMLVectorDataIO::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotectedvirtual

Reimplemented from otb::VectorDataIOBase.

void otb::KMLVectorDataIO::ProcessNodeWrite ( InternalTreeNodeType source,
kmldom::KmlFactory *  factory,
kmldom::KmlPtr  kml,
kmldom::DocumentPtr  currentDocument,
kmldom::FolderPtr  currentFolder,
kmldom::MultiGeometryPtr  currentMultiGeometry 
)
protected

end conversion tools

void otb::KMLVectorDataIO::Read ( itk::DataObject data)
overridevirtual

Reads the data from disk into the data structure provided.

Implements otb::VectorDataIOBase.

void otb::KMLVectorDataIO::WalkContainer ( const kmldom::ContainerPtr &  container,
DataNodePointerType  father 
)
protected
void otb::KMLVectorDataIO::WalkFeature ( const kmldom::FeaturePtr &  feature,
DataNodePointerType  father 
)
protected
void otb::KMLVectorDataIO::WalkGeometry ( const kmldom::GeometryPtr &  geometry,
DataNodePointerType  father 
)
protected
void otb::KMLVectorDataIO::Write ( const itk::DataObject data,
char **  papszOptions = nullptr 
)
overridevirtual

Writes the data to disk from the data structure provided

Implements otb::VectorDataIOBase.

Member Data Documentation

unsigned int otb::KMLVectorDataIO::m_Kept
private

Definition at line 146 of file otbKMLVectorDataIO.h.

DataTreePointerType otb::KMLVectorDataIO::m_Tree
private

Definition at line 144 of file otbKMLVectorDataIO.h.


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