[Qgis-developer] [QGIS Commit] SVN [ersts] r7424

Peter Ersts ersts at amnh.org
Fri Nov 16 18:19:55 EST 2007


Martin Dobias wrote:
> Looking at the implementation of QgsContrastEnhancement, this class
> looks like a perfect candidate for delegation of
> calculateContrastEnhancementValue() function to derived classes. How
> should it look like:
> - that function will become a pure virtual function
> - derived classes (e.g. QgsContrastNoStretch,
> QgsContrastStretchToMinMax etc.) will implement only that function
> - creating a new algorithm would mean creating another class with
> implementation of that function
>
> This can be easily used in PyQGIS - it's quite straightforward to
> derive own QgsContrastEnhancement class and assign it to raster layer.
>
> What do you think?
>
> Martin
>
>   

I had already thought about as an option. And don't know why i did not 
stick with the idea. It think this is the much better way to go.

-pete

-- 
====================================
Peter J. Ersts, Project Specialist
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Tel: Home Office (518)-632-4745 or NYC Office (212)-496-3488
Web: http://biodiversityinformatics.amnh.org
Web: http://cbc.amnh.org

Quantum GIS Raster Development Team. Visit http://www.qgis.org
to learn more about QGIS, a free and open source desktop GIS

Open Source,
...evolving through community cooperation to change the world bit by bit




More information about the Qgis-developer mailing list