VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtGradientEditorInterface.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2007 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtGradientEditorInterface.h,v $ $Revision: 1.5 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtGradientEditorInterface_H_
00014 #define DtGradientEditorInterface_H_
00015 
00016 #include <vrvCoreQt/vrvCoreQt.h>
00017 
00018 namespace makVrv
00019 {
00022    class DT_DLL_VRVCOREQT DtGradientEditorInterface
00023    {
00024    public:
00025       typedef std::vector<double> ControlPoint;
00026       typedef std::vector<DtGradientEditorInterface::ControlPoint> Gradient;
00027 
00029       virtual ~DtGradientEditorInterface();
00030 
00031       virtual void clearGradient() = 0;
00032 
00033       virtual void addControlPoint(double location, double red, double green, double blue, double alpha = 1.0) = 0;
00034 
00035       virtual void addControlPoint(DtGradientEditorInterface::ControlPoint cp) = 0;
00036 
00037       virtual void setGradient(DtGradientEditorInterface::Gradient grad) = 0;
00038 
00039 
00040       virtual const DtGradientEditorInterface::Gradient gradient() const = 0;
00041 
00044       boost::signal<void (const DtGradientEditorInterface::Gradient&)> signal_gradientChanged;
00045    };
00046 }
00047 
00048 #endif
00049 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)