OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimImageViewTransformFactory.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 //
7 // Description:
8 //
9 //*******************************************************************
10 // $Id: ossimImageViewTransformFactory.cpp 9963 2006-11-28 21:11:01Z gpotts $
15 
16 RTTI_DEF1(ossimImageViewTransformFactory, "ossimImageViewTransformFactory", ossimObject)
17 
19 
21 {
22  if(!theInstance)
23  {
25  }
26 
27  return theInstance;
28 }
29 
31  const char* prefix)
32 {
33  ossimImageViewTransform* result=NULL;
34 
35  const char *lookup = kwl.find(prefix, "type");
36 
37  if(lookup)
38  {
40  {
42  }
44  {
45  result = new ossimImageViewAffineTransform;
46  }
47  }
48  if(result)
49  {
50  result->loadState(kwl, prefix);
51  }
52 
53  return result;
54 }
55 
static ossimImageViewTransformFactory * instance()
Represents serializable keyword/value map.
const char * find(const char *key) const
#define STATIC_TYPE_NAME(T)
Definition: ossimRtti.h:325
static ossimImageViewTransformFactory * theInstance
virtual ossimImageViewTransform * createTransform(const ossimKeywordlist &kwl, const char *prefix=0)
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
#define RTTI_DEF1(cls, name, b1)
Definition: ossimRtti.h:485