#include <inviwo/core/interaction/events/resizeevent.h>
|
| virtual ResizeEvent * | clone () const override |
| virtual uint64_t | hash () const override |
|
ResizeEvent & | operator= (const ResizeEvent &that)=default |
|
size2_t | previousSize () const |
| virtual void | print (std::ostream &ss) const override |
|
| ResizeEvent (const ResizeEvent &rhs)=default |
|
| ResizeEvent (size2_t newSize) |
|
| ResizeEvent (size2_t newSize, size2_t previousSize) |
|
void | setPreviousSize (size2_t previousSize) |
|
void | setSize (size2_t csize) |
| virtual bool | shouldPropagateTo (Inport *inport, Processor *processor, Outport *source) override |
|
size2_t | size () const |
|
template<typename EventType> |
| EventType * | getAs () |
|
template<typename EventType> |
| const EventType * | getAs () const |
|
const std::vector< Processor * > & | getVisitedProcessors () const |
|
bool | hasBeenUsed () const |
|
bool | hasVisitedProcessor (Processor *) const |
| bool | markAsUnused () |
| bool | markAsUsed () |
|
void | markAsVisited (Event &) |
| bool | markAsVisited (Processor *) |
| bool | setUsed (bool isUsed) |
|
|
static constexpr uint64_t | chash () |
|
|
| Event (const Event &rhs)=default |
|
Event & | operator= (const Event &that)=default |
Event propagating image/canvas size changes upwards in the network. Image inports and outports within a processor must be in the same group for the event to be propagated.
As soon as the network adds or removes a connection, all the image sinks (processors that consume images) are responsible for pushing a new resize event to the network to make sure that all the image ports in the network above it have an up-to-date view on which image sizes to use. (
- See also
- ImageExport,
-
CanvasProcessorWidget)
-
BaseImageInport
-
ImageOutport
-
Processor::addPort
◆ clone()
| virtual ResizeEvent * inviwo::ResizeEvent::clone |
( |
| ) |
const |
|
overridevirtual |
◆ hash()
| virtual uint64_t inviwo::ResizeEvent::hash |
( |
| ) |
const |
|
overridevirtual |
◆ print()
| virtual void inviwo::ResizeEvent::print |
( |
std::ostream & | ss | ) |
const |
|
overridevirtual |
◆ shouldPropagateTo()
| virtual bool inviwo::ResizeEvent::shouldPropagateTo |
( |
Inport * | inport, |
|
|
Processor * | processor, |
|
|
Outport * | source ) |
|
overridevirtual |
Determine if the event should be propagated upwards to inport. Can be overloaded to limit the number or ports a event is propagated through.
Reimplemented from inviwo::Event.
The documentation for this class was generated from the following file:
- include/inviwo/core/interaction/events/resizeevent.h