OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Functions | Variables
ossimOpenCvPluginInit.cpp File Reference
#include <ossim/plugin/ossimSharedObjectBridge.h>
#include <ossim/plugin/ossimPluginConstants.h>
#include "ossimOpenCvObjectFactory.h"
#include <ossim/base/ossimString.h>
#include <ossim/base/ossimObjectFactoryRegistry.h>

Go to the source code of this file.

Functions

const char * getOpenCVDescription ()
 
int getOpenCVNumberOfClassNames ()
 
const char * getOpenCVClassName (int idx)
 
OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize (ossimSharedObjectInfo **info)
 
OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize ()
 

Variables

ossimSharedObjectInfo myOpenCVInfo
 
ossimString theOpenCVDescription
 
std::vector< ossimStringtheOpenCVObjList
 

Function Documentation

◆ getOpenCVClassName()

const char* getOpenCVClassName ( int  idx)

Definition at line 40 of file ossimOpenCvPluginInit.cpp.

References theOpenCVObjList.

Referenced by ossimSharedLibraryInitialize().

41  {
42  if(idx < (int)theOpenCVObjList.size())
43  {
44  return theOpenCVObjList[idx].c_str();
45  }
46  return (const char*)0;
47  }
std::vector< ossimString > theOpenCVObjList

◆ getOpenCVDescription()

const char* getOpenCVDescription ( )

Definition at line 30 of file ossimOpenCvPluginInit.cpp.

References ossimString::c_str(), and theOpenCVDescription.

Referenced by ossimSharedLibraryInitialize().

31  {
32  return theOpenCVDescription.c_str();
33  }
ossimString theOpenCVDescription
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396

◆ getOpenCVNumberOfClassNames()

int getOpenCVNumberOfClassNames ( )

Definition at line 35 of file ossimOpenCvPluginInit.cpp.

References theOpenCVObjList.

Referenced by ossimSharedLibraryInitialize().

36  {
37  return (int)theOpenCVObjList.size();
38  }
std::vector< ossimString > theOpenCVObjList

◆ ossimSharedLibraryFinalize()

OSSIM_PLUGINS_DLL void ossimSharedLibraryFinalize ( )

Definition at line 68 of file ossimOpenCvPluginInit.cpp.

References ossimObjectFactoryRegistry::instance(), and ossimOpenCvObjectFactory::instance().

69  {
71  unregisterFactory(ossimOpenCvObjectFactory::instance());
72  }
static ossimOpenCvObjectFactory * instance()
static method to return instance (the only one) of this class.
static ossimObjectFactoryRegistry * instance()

◆ ossimSharedLibraryInitialize()

OSSIM_PLUGINS_DLL void ossimSharedLibraryInitialize ( ossimSharedObjectInfo **  info)

Definition at line 50 of file ossimOpenCvPluginInit.cpp.

References ossimSharedObjectInfo::getClassName, ossimSharedObjectInfo::getDescription, ossimSharedObjectInfo::getNumberOfClassNames, getOpenCVClassName(), getOpenCVDescription(), getOpenCVNumberOfClassNames(), ossimObjectFactoryRegistry::instance(), ossimOpenCvObjectFactory::instance(), and myOpenCVInfo.

52  {
56 
57  *info = &myOpenCVInfo;
58 
59  /* Register objects... */
61  registerFactory(ossimOpenCvObjectFactory::instance());
62 
63  setOpenCVDescription(theOpenCVDescription);
65  }
ossimString theOpenCVDescription
const char * getOpenCVClassName(int idx)
ossimSharedObjectInfo myOpenCVInfo
static ossimOpenCvObjectFactory * instance()
static method to return instance (the only one) of this class.
ossimSharedLibraryGetNumberOfClassNamesPtr getNumberOfClassNames
static ossimObjectFactoryRegistry * instance()
const char * getOpenCVDescription()
ossimSharedLibraryGetDescriptionPtr getDescription
ossimSharedLibraryGetClassNamesPtr getClassName
virtual void getTypeNameList(std::vector< ossimString > &typeList) const
Adds ossimLasWriter to the typeList.
int getOpenCVNumberOfClassNames()
std::vector< ossimString > theOpenCVObjList

Variable Documentation

◆ myOpenCVInfo

ossimSharedObjectInfo myOpenCVInfo

Definition at line 26 of file ossimOpenCvPluginInit.cpp.

Referenced by ossimSharedLibraryInitialize().

◆ theOpenCVDescription

ossimString theOpenCVDescription

Definition at line 27 of file ossimOpenCvPluginInit.cpp.

Referenced by getOpenCVDescription().

◆ theOpenCVObjList

std::vector<ossimString> theOpenCVObjList

Definition at line 28 of file ossimOpenCvPluginInit.cpp.

Referenced by getOpenCVClassName(), and getOpenCVNumberOfClassNames().