OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimImageProjectionModel.cpp
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2 //
3 // License: LGPL
4 //
5 // See LICENSE.txt file in the top level directory for more details.
6 //
7 // Author: David Burken
8 //
9 // Description: Class definition of ossimImageProjectionModel.
10 //
11 //-----------------------------------------------------------------------------
12 // $Id$
13 
18 #include <string>
19 
21  "ossimImageProjectionModel",
23 
25  : ossimImageModel(),
26  theProjection(0)
27 {
28 }
29 
31 {
32  theProjection = 0;
33 }
34 
36 {
37  // Initialize base.
39 
40  theProjection = 0;
41 
42  // Fetch the handler's image geometry and see if it has a projection:
43  ossimImageHandler* iih = const_cast<ossimImageHandler*>(&ih); // cast away constness
45  if ( image_geom.valid() )
46  {
47  theProjection = image_geom->getProjection();
48  }
49 }
50 
52 {
53  return theProjection;
54 }
const ossimProjection * getProjection() const
Method to get projection.
virtual void initialize(const ossimImageHandler &ih)
Method to initialize class from an image handler.
bool valid() const
Definition: ossimRefPtr.h:75
Class derived from ossimImageModel, this adds an image projection for lineSampleToWorld and worldToLi...
ossimImageProjectionModel()
default constructor
virtual ~ossimImageProjectionModel()
virtual destructor
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if non defined...
const ossimProjection * getProjection() const
Access methods for projection (may be NULL pointer).
RTTI_DEF1(ossimImageProjectionModel, "ossimImageProjectionModel", ossimImageModel) ossimImageProjectionModel
This class defines an abstract Handler which all image handlers(loaders) should derive from...
virtual void initialize(const ossimImageHandler &ih)
Method to initialize class from an image handler.
Class to handle transforming image points, rectangles, and offsets from one reduced resolution data s...