Isis Developer Reference
Isis::ViewportBufferTransform Class Reference

#include <ViewportBufferTransform.h>

Inheritance diagram for Isis::ViewportBufferTransform:
Inheritance graph
Collaboration diagram for Isis::ViewportBufferTransform:
Collaboration graph

Public Types

enum  ActionType { none, transform, fill, stretch }
 This uniquely identifies which child is instantiated. More...
 

Public Member Functions

 ViewportBufferTransform ()
 Constructor. More...
 
virtual ActionType getActionType ()
 Returns the instance type. More...
 
void setTranslation (int x, int y)
 Sets the translation amount in x and y. More...
 
int getXTranslation ()
 Gets the amount the buffer should be translated in X. More...
 
int getYTranslation ()
 Gets the amount the buffer should be translated in Y. More...
 
void setResize (int width, int height)
 Sets the size the buffer should be resized to. More...
 
const int & getBufferWidth ()
 Returns the new buffer width. More...
 
const int & getBufferHeight ()
 Returns the new buffer height. More...
 
bool resizeFirst ()
 Returns true if the resize should happen before the translation. More...
 
void resizeFirst (bool resizeFirst)
 Sets whether the resize should happen before the translation. More...
 
bool started ()
 Returns true if this is an action that takes time and has begun. More...
 
void started (bool started)
 Sets started. More...
 
virtual void stop ()
 Cancels the process, used if reinitialize requested for example. More...
 

Detailed Description

Author
????-??-?? Unknown

Member Enumeration Documentation

◆ ActionType

This uniquely identifies which child is instantiated.

Enumerator
none 

Parent was instantiated.

transform 

ViewportBufferTransform.

fill 

ViewportBufferFill.

stretch 

ViewportBufferStretch.

Constructor & Destructor Documentation

◆ ViewportBufferTransform()

Isis::ViewportBufferTransform::ViewportBufferTransform ( )

Constructor.

Member Function Documentation

◆ getActionType()

virtual ActionType Isis::ViewportBufferTransform::getActionType ( )
inlinevirtual

Returns the instance type.

Reimplemented from Isis::ViewportBufferAction.

References Isis::ViewportBufferAction::transform.

◆ getBufferHeight()

const int& Isis::ViewportBufferTransform::getBufferHeight ( )
inline

Returns the new buffer height.

Returns
const int&

◆ getBufferWidth()

const int& Isis::ViewportBufferTransform::getBufferWidth ( )
inline

Returns the new buffer width.

Returns
const int&

◆ getXTranslation()

int Isis::ViewportBufferTransform::getXTranslation ( )
inline

Gets the amount the buffer should be translated in X.

Returns
int

◆ getYTranslation()

int Isis::ViewportBufferTransform::getYTranslation ( )
inline

Gets the amount the buffer should be translated in Y.

Returns
int

◆ resizeFirst() [1/2]

bool Isis::ViewportBufferTransform::resizeFirst ( )
inline

Returns true if the resize should happen before the translation.

Returns
bool

Referenced by Isis::ViewportBuffer::pan(), Isis::ViewportBuffer::resizedViewport(), and resizeFirst().

◆ resizeFirst() [2/2]

void Isis::ViewportBufferTransform::resizeFirst ( bool  resizeFirst)
inline

Sets whether the resize should happen before the translation.

Parameters
resizeFirst

References resizeFirst().

◆ setResize()

void Isis::ViewportBufferTransform::setResize ( int  width,
int  height 
)

Sets the size the buffer should be resized to.

Parameters
width
height

Referenced by Isis::ViewportBuffer::pan(), and Isis::ViewportBuffer::resizedViewport().

◆ setTranslation()

void Isis::ViewportBufferTransform::setTranslation ( int  x,
int  y 
)

Sets the translation amount in x and y.

Parameters
x
y

Referenced by Isis::ViewportBuffer::pan(), and Isis::ViewportBuffer::resizedViewport().

◆ started() [1/2]

bool Isis::ViewportBufferAction::started ( )
inlineinherited

Returns true if this is an action that takes time and has begun.

Referenced by Isis::ViewportBuffer::DataReady(), and Isis::ViewportBufferAction::started().

◆ started() [2/2]

void Isis::ViewportBufferAction::started ( bool  started)
inlineinherited

Sets started.

Parameters
startedTrue if starting

References Isis::ViewportBufferAction::started().

◆ stop()

virtual void Isis::ViewportBufferAction::stop ( )
inlinevirtualinherited

Cancels the process, used if reinitialize requested for example.

Reimplemented in Isis::ViewportBufferFill.


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