Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (38 sloc) 1.666 kb
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// __END_LICENSE__
#ifndef __VW_GUI_IMAGETILEGENERATOR_H__
#define __VW_GUI_IMAGETILEGENERATOR_H__
#include <vw/gui/TileGenerator.h>
namespace vw {
namespace gui {
class ImageTileGenerator : public TileGenerator {
boost::shared_ptr<SrcImageResource> m_rsrc;
public:
ImageTileGenerator(std::string filename);
virtual ~ImageTileGenerator() {}
virtual PixelRGBA<float> sample(int x, int y, int level, int transaction_id);
virtual boost::shared_ptr<SrcImageResource> generate_tile(TileLocator const& tile_info);
virtual Vector2 minmax();
virtual int cols() const;
virtual int rows() const;
virtual PixelFormatEnum pixel_format() const;
virtual ChannelTypeEnum channel_type() const;
virtual Vector2i tile_size() const;
virtual int32 num_levels() const;
};
}} // namespace vw::gui
#endif // __VW_GUI_IMAGETILEGENERATOR_H__
Jump to Line
Something went wrong with that request. Please try again.