Workspace 6.21.5
|
Specialization of DataAnalysis::ImageOverlay for use as an overlay on a rendered scene.
#include <Rendering/SceneComponents/sceneoverlay.h>
Public Member Functions | |
SceneOverlay () | |
SceneOverlay (const DataAnalysis::ImageOverlay &overlay) | |
SceneOverlay (const SceneOverlay &overlay) | |
~SceneOverlay () override | |
void | clearCameraNames () |
SceneOverlay * | clone () const override |
QStringList | getCameraNames () const |
bool | getEnabled () const |
SceneOverlay & | operator= (const SceneOverlay &overlay) |
void | setCameraNames (const QStringList &names) |
void | setEnabled (bool b) |
Public Member Functions inherited from ImageOverlay | |
ImageOverlay () | |
ImageOverlay (const ImageOverlay &overlay) | |
~ImageOverlay () override | |
ImageOverlay * | clone () const override |
Anchor | getAnchor () const |
const QImage & | getImage () const |
int | getOffsetX () const |
int | getOffsetY () const |
double | getOpacity () const |
QPoint | getPlacement (int width, int height) const |
ImageOverlay & | operator= (const ImageOverlay &overlay) |
void | setAnchor (Anchor anchor) |
void | setImage (const QImage &image) |
void | setOffsetX (int x) |
void | setOffsetY (int y) |
void | setOpacity (double opacity) |
Public Member Functions inherited from ObjectGroup | |
~ObjectGroup () override | |
bool | add (const QString &name, DataObject &obj) |
bool | canSerialize () const override |
ObjectGroup * | clone () const override=0 |
bool | empty () const |
void | ensureGroupHasData () |
void | erase (int index) |
DataObject * | getChild (const QString &name) |
const DataObject * | getChild (const QString &name) const |
DataObject & | getDataObject (int index) |
const DataObject & | getDataObject (int index) const |
int | getIndex (const QString &name) const |
const QString & | getName (int index) const |
virtual QString | getPreferedWidget (const QString &name) const |
bool | hasData () const |
bool | haveName (const QString &name) const |
bool | insert (const QString &name, DataObject &obj, int index=-1) |
bool | load (const QJsonDocument &doc) |
bool | load (const SerializedItem &item) override |
bool | save (QJsonDocument &doc) const |
bool | save (SerializedItem &item) const override |
unsigned | size () const |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Public Member Functions inherited from Serialize | |
virtual | ~Serialize ()=default |
virtual bool | canSerialize () const =0 |
virtual bool | load (const SerializedItem &item)=0 |
virtual bool | save (SerializedItem &item) const =0 |
Additional Inherited Members | |
Public Types inherited from ImageOverlay | |
enum | Anchor { TopLeft , TopCenter , TopRight , CenterLeft , Center , CenterRight , BottomLeft , BottomCenter , BottomRight , Tiled } |
Protected Member Functions inherited from ObjectGroup | |
ObjectGroup () | |
void | clear () |
ObjectGroup & | operator= (const ObjectGroup &rhs) |
bool | operator== (const ObjectGroup &rhs) const |
void | swap (ObjectGroup &rhs) |
SceneOverlay | ( | ) |
SceneOverlay | ( | const SceneOverlay & | overlay | ) |
overlay | The scene overlay item to be copied. |
SceneOverlay | ( | const DataAnalysis::ImageOverlay & | overlay | ) |
overlay | The image overlay item to be copied. |
When created with this constructor, the scene overlay will have an empty list of camera names and will be enabled by default.
|
override |
void clearCameraNames | ( | ) |
Clears the list of camera names this scene overlay item is associated with. This will make it apply to all cameras.
|
overridevirtual |
We redeclare this function only so that the more derived return type is available without casting.
Reimplemented from ImageOverlay.
QStringList getCameraNames | ( | ) | const |
bool getEnabled | ( | ) | const |
When a scene overlay item is not enabled, all scene processors must ignore it as though it was not even present. Items are enabled by default.
SceneOverlay & operator= | ( | const SceneOverlay & | overlay | ) |
overlay | The scene overlay item to be copied. |
void setCameraNames | ( | const QStringList & | names | ) |
names | The list of camera names for which this scene overlay item should be shown. If the list is empty, it will be shown for all cameras. |
void setEnabled | ( | bool | b | ) |
b | Specifies whether or not this particular scene overlay item should be processed by scene processors. |
When a scene overlay item is not enabled, all scene processors must ignore it as though it was not even present. Items are enabled by default.