viewOverrideSimple/viewOverrideSimple.h

viewOverrideSimple/viewOverrideSimple.h
#ifndef viewOverrideSimple_h_
#define viewOverrideSimple_h_
//-
// Copyright 2015 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.
//+
#include <maya/MString.h>
#include <maya/MViewport2Renderer.h>
//
// Simple override class derived from MRenderOverride
//
class viewOverrideSimple : public MHWRender::MRenderOverride
{
public:
viewOverrideSimple( const MString & name );
virtual ~viewOverrideSimple();
// Basic setup and cleanup
virtual MStatus setup( const MString & destination );
virtual MStatus cleanup();
// Operation iteration methods
virtual bool startOperationIterator();
virtual bool nextRenderOperation();
// UI name
virtual MString uiName() const
{
return mUIName;
}
protected:
// UI name
MString mUIName;
// Operations and operation names
MHWRender::MRenderOperation* mOperations[3];
MString mOperationNames[3];
// Temporary of operation iteration
int mCurrentOperation;
};
//
// Simple scene operation override to allow for clear color
// tracking.
//
class simpleViewRenderSceneRender : public MHWRender::MSceneRender
{
public:
simpleViewRenderSceneRender(const MString &name);
};
#endif