API Reference OSGeo FDO Provider for GDAL

FdoGrfpRasterImageDefinition.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2006  Autodesk, Inc.
00003  * 
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of version 2.1 of the GNU Lesser
00006  * General Public License as published by the Free Software Foundation.
00007  * 
00008  * This library is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * Lesser General Public License for more details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public
00014  * License along with this library; if not, write to the Free Software
00015  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016  *
00017  */
00018 /// <library>GRFPOverrides.lib</library>
00019 
00020 #ifndef FDOGRFPRASTERIMAGEDEFINITION_H
00021 #define FDOGRFPRASTERIMAGEDEFINITION_H
00022 
00023 #ifdef _WIN32
00024 #pragma once
00025 #endif //_WIN32
00026 
00027 class FdoGrfpRasterExtents;
00028 class FdoGrfpRasterGeoreferenceLocation;
00029 
00030 /// <summary> 
00031 /// The FdoGrfpRasterImageDefinition class defines a raster image which contains a name 
00032 /// and the extents of the raster image.
00033 /// </summary>
00034 class FdoGrfpRasterImageDefinition : public FdoPhysicalElementMapping
00035 {
00036     typedef FdoPhysicalElementMapping BaseType;
00037     friend class FdoGrfpRasterBandDefinition;
00038 
00039 public:
00040     /// <summary>Constructs a new Raster Image Definition.</summary>
00041     /// <returns>Returns the newly created FdoGrfpRasterImageDefinition instance.</returns> 
00042     FDOGRFP_API static FdoGrfpRasterImageDefinition* Create();
00043 
00044     /// <summary>Gets the frame number of the raster image.</summary>
00045     /// <returns>Returns the frame number of the raster image.</returns> 
00046     FDOGRFP_API FdoInt32 GetFrameNumber();
00047 
00048     /// <summary>Sets the frame number of the raster image.</summary>
00049     /// <param name="extents">Input the frame number of the raster image.</param>
00050     /// <returns>Returns nothing</returns> 
00051     FDOGRFP_API void SetFrameNumber(FdoInt32 frameNumber);
00052 
00053     /// <summary>Gets the georeferenced location of the raster image.</summary>
00054     /// <returns>Returns the georeferenced location of the raster image.</returns> 
00055     FDOGRFP_API FdoGrfpRasterGeoreferenceLocation * GetGeoreferencedLocation();
00056 
00057     /// <summary>Sets the georeferenced location of the raster image.</summary>
00058     /// <param name="location">Input the georeferenced location of the raster image.</param>
00059     /// <returns>Returns nothing</returns> 
00060     FDOGRFP_API void SetGeoreferencedLocation (FdoGrfpRasterGeoreferenceLocation * location);
00061 
00062 //DOM-IGNORE-BEGIN
00063 
00064     // XML Serialization functions, not part of supported API.
00065     FDOGRFP_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs);
00066     FDOGRFP_API virtual FdoXmlSaxHandler* XmlStartElement(
00067         FdoXmlSaxContext* context, 
00068         FdoString* uri, 
00069         FdoString* name, 
00070         FdoString* qname, 
00071         FdoXmlAttributeCollection* atts
00072     );
00073     FDOGRFP_API virtual FdoBoolean XmlEndElement(
00074         FdoXmlSaxContext* context, 
00075         FdoString* uri, 
00076         FdoString* name, 
00077         FdoString* qname
00078     );
00079     FDOGRFP_API virtual void XmlCharacters(FdoXmlSaxContext*, FdoString*);
00080     FDOGRFP_API void _writeXml( FdoXmlWriter* xmlWriter, const FdoXmlFlags* flags );
00081 
00082 protected:
00083     FDOGRFP_API FdoGrfpRasterImageDefinition(void);
00084     FDOGRFP_API virtual ~FdoGrfpRasterImageDefinition(void);
00085     void Dispose(void);
00086 
00087 private:
00088     FdoInt32 m_state;
00089     FdoInt32 m_frameNumber;
00090     FdoPtr<FdoGrfpRasterGeoreferenceLocation> m_geoReference;
00091 
00092 //DOM-IGNORE-END
00093 };
00094 
00095 /// <summary> FdoGrfpRasterImageDefinitionP is a FdoPtr on FdoGrfpRasterImageDefinition, provided for convenience. </summary>
00096 typedef FdoPtr<FdoGrfpRasterImageDefinition> FdoGrfpRasterImageDefinitionP;
00097 
00098 #endif

Comments?