VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGradientEditorInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtGradientEditorInterface.h,v $ $Revision: 1.5 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtGradientEditorInterface_H_
14 #define DtGradientEditorInterface_H_
15 
16 #include <vrvCoreQt/vrvCoreQt.h>
17 
18 namespace makVrv
19 {
23  {
24  public:
25  typedef std::vector<double> ControlPoint;
26  typedef std::vector<DtGradientEditorInterface::ControlPoint> Gradient;
27 
29  virtual ~DtGradientEditorInterface();
30 
31  virtual void clearGradient() = 0;
32 
33  virtual void addControlPoint(double location, double red, double green, double blue, double alpha = 1.0) = 0;
34 
35  virtual void addControlPoint(const DtGradientEditorInterface::ControlPoint & cp) = 0;
36 
37  virtual void setGradient(DtGradientEditorInterface::Gradient grad) = 0;
38 
39 
40  virtual const DtGradientEditorInterface::Gradient gradient() const = 0;
41 
44  boost::signal<void (const DtGradientEditorInterface::Gradient&)> signal_gradientChanged;
45  };
46 }
47 
48 #endif
49 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)