Inviwo  0.9.10.1
Inviwo documentation
inviwo::ProgressBarOwner Class Reference

#include <progressbarowner.h>

+ Inheritance diagram for inviwo::ProgressBarOwner:

Public Member Functions

ProgressBargetProgressBar ()
 
const ProgressBargetProgressBar () const
 
void updateProgress (float progress)
 

Protected Attributes

ProgressBar progressBar_
 

Detailed Description

Class to support processors owning a ProgressBar. This class allows a progress bar contained within a processor to be visible in the network.

Example

Example of how to apply it to a processor.

class IVW_XXX_API MyProcessor: public Processor, public ProgressBarOwner {
public:
MyProcessor(): Processor(), ProgressBarOwner() {};
// Need to overload serialize/deseralize
virtual void serialize(Serializer& s) const {
Processor::serialize(s);
s.serialize("ProgressBar", getProgressBar());
}
virtual void deserialize(Deserializer& d) {
Processor::deserialize(d);
d.deserialize("ProgressBar", getProgressBar());
}
};
See also
ProgressBar
ProgressBarObservable

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