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

Class derived from ossimImageModel, this adds an image projection for lineSampleToWorld and worldToLineSample. More...

#include <ossimImageProjectionModel.h>

Inheritance diagram for ossimImageProjectionModel:
ossimImageModel ossimObject ossimReferenced

Public Member Functions

 ossimImageProjectionModel ()
 default constructor More...
 
virtual void initialize (const ossimImageHandler &ih)
 Method to initialize class from an image handler. More...
 
const ossimProjectiongetProjection () const
 Method to get projection. More...
 
- Public Member Functions inherited from ossimImageModel
 ossimImageModel ()
 default constructor More...
 
void rnToR0 (ossim_uint32 rrds, const ossimDpt &rnPt, ossimDpt &r0Pt) const
 Get r0 point from rn point. More...
 
void rnToR0 (const ossimDpt &rnPt, ossimDpt &r0Pt) const
 Get r0 point from rn point. More...
 
void r0ToRn (ossim_uint32 rrds, const ossimDpt &r0Pt, ossimDpt &rnPt) const
 Get rn point from r0 point. More...
 
void r0ToRn (const ossimDpt &r0Pt, ossimDpt &rnPt) const
 Get rn point from r0 point. More...
 
void getSubImageOffset (ossim_uint32 rrds, ossimDpt &offset) const
 Get the sub image offset for a given resolution level. More...
 
void getImageRectangle (ossim_uint32 rrds, ossimDrect &rect) const
 Gets the zero-based image rectangle for a given reduced resolution data set. More...
 
void getBoundingRectangle (ossim_uint32 rrds, ossimDrect &rect) const
 Gets the model-based image rectangle for a given reduced resolution data set. More...
 
ossim_uint32 getNumberOfDecimationLevels () const
 
void setTargetRrds (ossim_uint32 rrds)
 Set theTargetRrds data member. More...
 
ossim_uint32 getTargetRrds () const
 
- 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
 

Protected Member Functions

virtual ~ossimImageProjectionModel ()
 virtual destructor More...
 
- Protected Member Functions inherited from ossimImageModel
virtual ~ossimImageModel ()
 virtual destructor More...
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Protected Attributes

ossimProjectiontheProjection
 
- Protected Attributes inherited from ossimImageModel
ossimDpt theSubImageOffset
 Offset from the full image. More...
 
std::vector< ossimDpttheDecimationFactors
 Decimation factors for each rrds level. More...
 
ossim_uint32 theLines
 
ossim_uint32 theSamples
 
ossim_uint32 theTargetRrds
 

Detailed Description

Class derived from ossimImageModel, this adds an image projection for lineSampleToWorld and worldToLineSample.

Note that image points fed to projection methods should be full resolution with any sub image offset applied.

Definition at line 30 of file ossimImageProjectionModel.h.

Constructor & Destructor Documentation

◆ ossimImageProjectionModel()

ossimImageProjectionModel::ossimImageProjectionModel ( )

default constructor

◆ ~ossimImageProjectionModel()

ossimImageProjectionModel::~ossimImageProjectionModel ( )
protectedvirtual

virtual destructor

Definition at line 30 of file ossimImageProjectionModel.cpp.

References theProjection.

31 {
32  theProjection = 0;
33 }

Member Function Documentation

◆ getProjection()

const ossimProjection * ossimImageProjectionModel::getProjection ( ) const

Method to get projection.

Returns
Constant pointer to projection or 0 if not initialized.

Definition at line 51 of file ossimImageProjectionModel.cpp.

References theProjection.

52 {
53  return theProjection;
54 }

◆ initialize()

void ossimImageProjectionModel::initialize ( const ossimImageHandler ih)
virtual

Method to initialize class from an image handler.

Parameters
ihImage handler.

Reimplemented from ossimImageModel.

Definition at line 35 of file ossimImageProjectionModel.cpp.

References ossimImageHandler::getImageGeometry(), ossimImageGeometry::getProjection(), ossimImageModel::initialize(), theProjection, and ossimRefPtr< T >::valid().

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 }
virtual void initialize(const ossimImageHandler &ih)
Method to initialize class from an image handler.
bool valid() const
Definition: ossimRefPtr.h:75
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).
This class defines an abstract Handler which all image handlers(loaders) should derive from...

Member Data Documentation

◆ theProjection

ossimProjection* ossimImageProjectionModel::theProjection
protected

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