Isis Developer Reference
ViewportBufferAction.h
Go to the documentation of this file.
1 #ifndef ViewportBufferAction_h
2 #define ViewportBufferAction_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 namespace Isis {
19  public:
21  virtual ~ViewportBufferAction();
22 
26  enum ActionType {
27  none,
29  fill,
30  stretch
31  };
32 
35  return none;
36  }
37 
39  bool started() {
40  return p_started;
41  };
42 
48  void started(bool started) {
49  p_started = started;
50  };
51 
53  virtual void stop() {};
54 
55  private:
62 
70  ViewportBufferAction &operator=(const ViewportBufferAction &other);
71 
72  private:
73  bool p_started;
74  };
75 }
76 
77 #endif
Isis::ViewportBufferAction::ViewportBufferAction
ViewportBufferAction()
Creates a new viewport buffer action.
Definition: ViewportBufferAction.cpp:15
Isis::ViewportBufferAction::ActionType
ActionType
This uniquely identifies which child is instantiated.
Definition: ViewportBufferAction.h:26
Isis::ViewportBufferAction::stop
virtual void stop()
Cancels the process, used if reinitialize requested for example.
Definition: ViewportBufferAction.h:53
Isis::ViewportBufferAction::none
@ none
Parent was instantiated.
Definition: ViewportBufferAction.h:27
Isis::ViewportBufferAction::fill
@ fill
ViewportBufferFill.
Definition: ViewportBufferAction.h:29
Isis::ViewportBufferAction::stretch
@ stretch
ViewportBufferStretch.
Definition: ViewportBufferAction.h:30
Isis::ViewportBufferAction
Definition: ViewportBufferAction.h:18
Isis::ViewportBufferAction::transform
@ transform
ViewportBufferTransform.
Definition: ViewportBufferAction.h:28
Isis::ViewportBufferAction::started
bool started()
Returns true if this is an action that takes time and has begun.
Definition: ViewportBufferAction.h:39
Isis::ViewportBufferAction::getActionType
virtual ActionType getActionType()
Returns the instantiated type.
Definition: ViewportBufferAction.h:34
Isis::ViewportBufferAction::started
void started(bool started)
Sets started.
Definition: ViewportBufferAction.h:48
ViewportBufferAction.h
Isis::ViewportBufferAction::~ViewportBufferAction
virtual ~ViewportBufferAction()
Destructor.
Definition: ViewportBufferAction.cpp:22
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16