OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
ossimPointCloudHandlerRegistry Class Reference

#include <ossimPointCloudHandlerRegistry.h>

Inheritance diagram for ossimPointCloudHandlerRegistry:
ossimObjectFactory ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler > ossimObject ossimReferenced

Public Member Functions

virtual ~ossimPointCloudHandlerRegistry ()
 
virtual ossimPointCloudHandleropen (const ossimFilename &fileName) const
 
virtual ossimPointCloudHandleropen (const ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual ossimRefPtr< ossimPointCloudHandleropen (std::istream *str, std::streamoff restartPosition, bool youOwnIt) const
 
virtual ossimObjectcreateObject (const ossimString &typeName) const
 
virtual ossimObjectcreateObject (const ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual void getTypeNameList (std::vector< ossimString > &typeList) const
 
- Public Member Functions inherited from ossimObjectFactory
virtual ~ossimObjectFactory ()
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () const
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () const
 
virtual ossimString getDescription () const
 
virtual ossimString getClassName () const
 
virtual RTTItypeid getType () const
 
virtual bool canCastTo (ossimObject *obj) const
 
virtual bool canCastTo (const RTTItypeid &id) const
 
virtual bool canCastTo (const ossimString &parentClassName) const
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 
virtual std::ostream & print (std::ostream &out) const
 Generic print method. More...
 
virtual bool isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const
 
virtual void accept (ossimVisitor &visitor)
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 
- Public Member Functions inherited from ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >
 ossimFactoryListInterface ()
 
void addFactory (ossimPointCloudHandlerFactory *factory)
 This is for backward compatability and calls registerFactory for simple adds. More...
 
bool isFactoryRegistered (ossimPointCloudHandlerFactory *factory) const
 Public access method to determine if a factory is already registered to this list. More...
 
void registerFactory (ossimPointCloudHandlerFactory *factory, bool pushToFrontFlag=false)
 Will register a factory to the factory list. More...
 
void unregisterFactory (ossimPointCloudHandlerFactory *factory)
 Will remove the factory from the registry. More...
 
void unregisterFactory (const ossimString &factoryTypeName)
 Will remove the factory from the registry by name. More...
 
void unregisterAllFactories ()
 Will remove all factories from the registry. More...
 
void registerFactoryToFront (ossimPointCloudHandlerFactory *factory)
 Inserts the factory to the front of the list. More...
 
void registerFactoryBefore (ossimPointCloudHandlerFactory *factory, ossimPointCloudHandlerFactory *beforeThisFactory)
 Will insert the factory before the beforeThisFactory. More...
 
void getAllTypeNamesFromRegistry (std::vector< ossimString > &typeList) const
 Will add all object types the factories can allocate. More...
 
ossimObjectcreateObjectFromRegistry (const ossimString &typeName) const
 This is the base object return for all objects in the system. More...
 
ossimObjectcreateObjectFromRegistry (const ossimKeywordlist &kwl, const char *prefix=0) const
 This is the base object return for all objects in the system. More...
 
ossimPointCloudHandlercreateNativeObjectFromRegistry (const ossimString &typeName) const
 This is a helper method that calls the createObject and makes sure that the returned object is of the NativeType base type this registry supports. More...
 
ossimPointCloudHandlercreateNativeObjectFromRegistry (const ossimKeywordlist &kwl, const char *prefix=0) const
 This is a helper method that calls the createObject and makes sure that the returned object is of the NativeType base type this registry supports. More...
 

Static Public Member Functions

static ossimPointCloudHandlerRegistryinstance ()
 

Protected Member Functions

 ossimPointCloudHandlerRegistry ()
 
const ossimPointCloudHandlerRegistryoperator= (const ossimPointCloudHandlerRegistry &rhs)
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 
- Protected Member Functions inherited from ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >
bool findFactory (ossimPointCloudHandlerFactory *factory) const
 Utility to find a factory in the list. More...
 

Static Protected Attributes

static ossimPointCloudHandlerRegistrym_instance = 0
 

Additional Inherited Members

- Public Types inherited from ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >
typedef std::vector< ossimPointCloudHandlerFactory *> FactoryListType
 
typedef ossimPointCloudHandlerFactory FactoryType
 
typedef ossimPointCloudHandler NativeReturnType
 
- Protected Attributes inherited from ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >
std::mutex m_factoryListMutex
 
FactoryListType m_factoryList
 

Detailed Description

Definition at line 20 of file ossimPointCloudHandlerRegistry.h.

Constructor & Destructor Documentation

◆ ~ossimPointCloudHandlerRegistry()

ossimPointCloudHandlerRegistry::~ossimPointCloudHandlerRegistry ( )
virtual

Definition at line 23 of file ossimPointCloudHandlerRegistry.cpp.

24 {
25  // TODO Auto-generated destructor stub
26 }

◆ ossimPointCloudHandlerRegistry()

ossimPointCloudHandlerRegistry::ossimPointCloudHandlerRegistry ( )
protected

Definition at line 18 of file ossimPointCloudHandlerRegistry.cpp.

Referenced by instance().

19 {
20  // TODO Auto-generated constructor stub
21 }

Member Function Documentation

◆ createObject() [1/2]

ossimObject * ossimPointCloudHandlerRegistry::createObject ( const ossimString typeName) const
virtual

Creates an object given a type name.

Implements ossimObjectFactory.

Definition at line 75 of file ossimPointCloudHandlerRegistry.cpp.

References ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >::createObjectFromRegistry().

76 {
77  return createObjectFromRegistry(typeName);
78 }
ossimObject * createObjectFromRegistry(const ossimString &typeName) const
This is the base object return for all objects in the system.

◆ createObject() [2/2]

ossimObject * ossimPointCloudHandlerRegistry::createObject ( const ossimKeywordlist kwl,
const char *  prefix = 0 
) const
virtual

Creates and object given a keyword list.

Implements ossimObjectFactory.

Definition at line 80 of file ossimPointCloudHandlerRegistry.cpp.

References ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >::createObjectFromRegistry().

82 {
83  return createObjectFromRegistry(kwl, prefix);
84 }
ossimObject * createObjectFromRegistry(const ossimString &typeName) const
This is the base object return for all objects in the system.

◆ getTypeNameList()

void ossimPointCloudHandlerRegistry::getTypeNameList ( std::vector< ossimString > &  typeList) const
virtual

This should return the type name of all objects in all factories. This is the name used to construct the objects dynamially and this name must be unique.

Implements ossimObjectFactory.

Definition at line 92 of file ossimPointCloudHandlerRegistry.cpp.

References ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >::getAllTypeNamesFromRegistry().

93 {
95 }
void getAllTypeNamesFromRegistry(std::vector< ossimString > &typeList) const
Will add all object types the factories can allocate.

◆ instance()

ossimPointCloudHandlerRegistry * ossimPointCloudHandlerRegistry::instance ( )
static

◆ open() [1/3]

ossimPointCloudHandler * ossimPointCloudHandlerRegistry::open ( const ossimFilename fileName) const
virtual

Definition at line 36 of file ossimPointCloudHandlerRegistry.cpp.

References ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >::m_factoryList, and ossimPointCloudHandler::open().

Referenced by ossimPointCloudTool::loadPC(), and ossimPointCloudImageHandler::open().

37 {
38  ossimPointCloudHandler* result = NULL;
39  std::vector<ossimPointCloudHandlerFactory*>::const_iterator factory;
40 
41  factory = m_factoryList.begin();
42  while((factory != m_factoryList.end()) && !result)
43  {
44  result = (*factory)->open(fileName);
45  ++factory;
46  }
47 
48  return result;
49 }
virtual bool open(const ossimFilename &imageFile)=0
Method to open input point cloud dataset.
Base class for all point-cloud file readers.

◆ open() [2/3]

ossimPointCloudHandler * ossimPointCloudHandlerRegistry::open ( const ossimKeywordlist kwl,
const char *  prefix = 0 
) const
virtual

Definition at line 51 of file ossimPointCloudHandlerRegistry.cpp.

References ossimFactoryListInterface< ossimPointCloudHandlerFactory, ossimPointCloudHandler >::m_factoryList, and ossimPointCloudHandler::open().

53 {
54  ossimPointCloudHandler* result = NULL;
55  std::vector<ossimPointCloudHandlerFactory*>::const_iterator factory;
56 
57  factory = m_factoryList.begin();
58  while((factory != m_factoryList.end()) && !result)
59  {
60  result = (*factory)->open(kwl, prefix);
61  ++factory;
62  }
63 
64  return result;
65 }
virtual bool open(const ossimFilename &imageFile)=0
Method to open input point cloud dataset.
Base class for all point-cloud file readers.

◆ open() [3/3]

ossimRefPtr< ossimPointCloudHandler > ossimPointCloudHandlerRegistry::open ( std::istream *  str,
std::streamoff  restartPosition,
bool  youOwnIt 
) const
virtual

Definition at line 67 of file ossimPointCloudHandlerRegistry.cpp.

70 {
71  // TODO Auto-generated constructor stub
72  return 0;
73 }

◆ operator=()

const ossimPointCloudHandlerRegistry & ossimPointCloudHandlerRegistry::operator= ( const ossimPointCloudHandlerRegistry rhs)
protected

Definition at line 86 of file ossimPointCloudHandlerRegistry.cpp.

88 {
89  return *this;
90 }

Member Data Documentation

◆ m_instance

ossimPointCloudHandlerRegistry * ossimPointCloudHandlerRegistry::m_instance = 0
staticprotected

Definition at line 52 of file ossimPointCloudHandlerRegistry.h.

Referenced by instance().


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