Into

Modules

Documentation

classPiiMatrixFlipper

#include <PiiMatrixFlipper.h>

Flip a matrix vertically or horizontally.

Inherits PiiDefaultOperation

Description

Inputs

inputany matrix

Outputs

outputthe input matrix flipped either vertically or horizontally.

Properties

Flip mode.

Public types

enum
{ FlipHorizontally, FlipVertically, FlipBoth }

Flip modes.

Constructors and destructor

Protected member functions

virtual void

Executes one round of processing.

void
( )

Property details

  • FlipMode flipMode

    [read, write]

    Flip mode.

    Default is FlipHorizontally.

Enumeration details

  • enum FlipMode

    Flip modes.

    • FlipHorizontally - retain row order but turn data on each row around.

    • FlipVertically - retain column order but turn rows around.

    • FlipBoth - flip horizontally and then vertically (same as 180 degrees rotation)

Function details

  • PiiMatrixFlipper

    ()
  • FlipMode flipMode

    ()
    [protected]
  • virtual void process

    ()
    [protected, virtual]

    Executes one round of processing.

    This function is invoked by the processor if the necessary preconditions for a new processing round are met. This function does all the necessary calculations to create output objects and sends them to output sockets.

    Calls to process(), syncEvent(), and setProperty() are synchronized and cannot occur simultaneously. PiiDefaultOperation ensures this by locking processLock() for reading before calling process().

    Note: With time-consuming operations, one should occasionally check that the operation hasn't been interrupted, i.e. that state() returns Running.

    Exceptions
    PiiExecutionException

    whenever an unrecoverable error occurs during a processing round, the operation is interrupted, or finishes execution due to end of input data.

    Reimplemented from PiiDefaultOperation.

  • void setFlipMode

    ( )
    [protected]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.