VolumeTexture/VolumeTexture.h

VolumeTexture/VolumeTexture.h
//**************************************************************************/
// Copyright (c) 2012 Autodesk, Inc.
// All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies this software in either electronic or hard copy form.
//
//**************************************************************************/
// DESCRIPTION: Volume Texture Sampler for map extraction
// CREATED: March 2012
//**************************************************************************/
#if defined (JAMBUILD)
#include <Mudbox/mudbox.h>
#else
#include "../../include/Mudbox/mudbox.h"
#include "../../include/MapExtractor/MapExtractorInterface.h"
#endif
using namespace mudbox;
using namespace mapextractionmodules;
// This class represents the new Sampler. Samplers must be derived from
// mapextractionmodules::Sampler.
class VolumeTexture : public Sampler
{
// This macro is needed to make the class ready for RTTI.
// The name returned here will be displayed in the list of Samplers.
virtual QString Name( const ClassDesc * ) const { return QObject::tr("Volume Texture"); };
// This function is only called once, and has to return some basic info about the Sampler.
virtual struct DataInfo DataInfo( void ) const;
// Main function of the Sampler, it will be called by the map extractor for every surface point.
virtual Data ProcessSurfacePoint( const TargetLocation &cTarget, const SurfacePoint &cSource );
};