Inviwo  0.9.10.1
Inviwo documentation
inviwo::TFSelectionWatcher Class Reference

observes a selection of primitives in a particular TF and sends signals to inform on position, alpha, and color changes More...

#include <tfselectionwatcher.h>

+ Inheritance diagram for inviwo::TFSelectionWatcher:

Public Slots

void setPosition (double pos)
 
void setAlpha (double alpha)
 
void setColor (const QColor &c)
 
void updateSelection (const std::vector< TFPrimitive * > selection)
 

Signals

void updateWidgetPosition (double pos, bool ambiguous=false)
 
void updateWidgetAlpha (double alpha, bool ambiguous=false)
 
void updateWidgetColor (const QColor &c, bool ambiguous=false)
 

Public Member Functions

 TFSelectionWatcher (TFEditor *editor, Property *property, const std::vector< TFPrimitiveSet * > &primitiveSets)
 
- Public Member Functions inherited from inviwo::Observer
 Observer (const Observer &other)
 
 Observer (Observer &&other)
 
Observeroperator= (Observer &&other)
 
Observeroperator= (const Observer &other)
 
virtual ~Observer ()
 
void removeObservation (ObservableInterface *observable)
 
void removeObservations ()
 

Additional Inherited Members

- Protected Types inherited from inviwo::Observer
using ObservableSet = std::unordered_set< ObservableInterface * >
 
- Protected Member Functions inherited from inviwo::Observer
void addObservation (ObservableInterface *observable)
 
- Protected Attributes inherited from inviwo::Observer
ObservableSet observables_
 

Detailed Description

observes a selection of primitives in a particular TF and sends signals to inform on position, alpha, and color changes

Member Function Documentation

◆ setAlpha

void inviwo::TFSelectionWatcher::setAlpha ( double  alpha)
slot

set the alpha value of all currently selected TF primitives

Parameters
alphanew alpha value

◆ setColor

void inviwo::TFSelectionWatcher::setColor ( const QColor &  c)
slot

set the color of all currently selected TF primitives

Parameters
cthe new color

◆ setPosition

void inviwo::TFSelectionWatcher::setPosition ( double  pos)
slot

set the position of all currently selected TF primitives

Parameters
posnew position

◆ updateSelection

void inviwo::TFSelectionWatcher::updateSelection ( const std::vector< TFPrimitive * >  selection)
slot

updates the selection state and sends out signals for position, alpha, and color. In case, multiple primitives are selected, the values are considered ambiguous unless they all have the same value. The position, alpha, and color are considered separately.


The documentation for this class was generated from the following files: