VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtRangeEditorInterface.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2020 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
14 namespace makVrv
15 {
16 
20  {
21  public:
22 
24  typedef std::vector<double> ControlPoint;
25 
27  typedef std::vector<DtRangeEditorInterface::ControlPoint> Gradient;
28 
29  public:
30 
32  virtual ~DtRangeEditorInterface();
33 
35  virtual void clearGradient() = 0;
36 
38  virtual void addControlPoint( double rangeStart, double rangeEnd,
39  double red, double green, double blue, double alpha = 1.0 ) = 0;
40 
42  virtual void addControlPoint( const DtRangeEditorInterface::ControlPoint& cp ) = 0;
43 
45  virtual void setGradient( DtRangeEditorInterface::Gradient grad ) = 0;
46 
48  virtual DtRangeEditorInterface::Gradient gradient() const = 0;
49 
52  boost::signalslib::signal<void (const DtRangeEditorInterface::Gradient&)> signal_gradientChanged;
53 
54  };
55 
56 }
std::vector< double > ControlPoint
Vector type for the double values that make up a control point.
Definition: DtRangeEditorInterface.h:24
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
std::vector< DtRangeEditorInterface::ControlPoint > Gradient
Vector type for storing ControlPoints.
Definition: DtRangeEditorInterface.h:27
Contains DLL export macros.
Abstract interface for range editor widgets.
Definition: DtRangeEditorInterface.h:19
boost::signalslib::signal< void(const DtRangeEditorInterface::Gradient &)> signal_gradientChanged
Signal emitted when the user changes the gradient. This signal is connected to a slot in the logic...
Definition: DtRangeEditorInterface.h:52

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)