Public Member Functions | Protected Attributes | List of all members
GUIObjectManager Class Reference

This overrides a few methods in the object manager class mainly to update the GUI More...

#include <GUIObjectManager.h>

Inheritance diagram for GUIObjectManager:
Inheritance graph
Collaboration diagram for GUIObjectManager:
Collaboration graph

Public Member Functions

virtual void SetSelectedObject (IInteractiveObject *const o) override
bool MouseMove (IScreen *screen, const ScreenCoords &sC) override
 Handler for a mouse move event More...
PhotonicaGUIFrameGetFrame ()
void SetFrame (PhotonicaGUIFrame *f)
void InitializeProblemSpace ()
- Public Member Functions inherited from ObjectManager
Mode GetMode () const
void SetMode (const Mode mode)
virtual bool MouseDown (IScreen *, const ScreenCoords &)
 Handler for a mouse down event More...
virtual bool MouseUp (IScreen *, const ScreenCoords &)
 Handler for a mouse up event More...
virtual bool RightClick (IScreen *, const ScreenCoords &)
 Handler for a right click event More...
ScreenCoords GetLastScreenCoords () const
void SetLastScreenCoords (const ScreenCoords lastScreenCoords)
virtual IScreen::CursorType GetCursor (IScreen *, const ScreenCoords &) const
 Returns the cursor that should be used More...
void Drag (std::shared_ptr< IInteractiveObject > o)
 Enables automatic movement of object o (through a simulated click) until the mouse is clicked. More...
IInteractiveObjectGetSelectedObject () const
void SetSelectedObject (std::shared_ptr< IInteractiveObject > o)
IInteractiveObjectGetHoveredObject () const
void SetHoveredObject (IInteractiveObject *const o)
void SetHoveredObject (std::shared_ptr< IInteractiveObject > o)
std::pair< std::shared_ptr< IInteractiveObject >, ModeGetObject (const ScreenCoords &, const Flags=0)
 Checks if an object exists at a given point and if so returns it and the mode in which it should be manipulated. More...
template<class I , typename... Args>
std::shared_ptr< I > AddInteractiveObject (Args...args)
std::shared_ptr< IInteractiveObjectGetIInteractiveObject (const std::string &name)
 Retrieves an object by name More...
std::shared_ptr< IInteractiveObjectGetIInteractiveObject (const IInteractiveObject *)
 Accessor for objects by base pointer More...
template<class T >
std::shared_ptr< T > GetInteractiveObject (const std::string &name)
 Retrieves an object by name and enables casting More...
void DrawGrid ()
void DrawAll2D ()
IScreenGetScreen () const
void SetScreen (IScreen *const s)
Pixel GetHorizontalScreenShift () const
void SetHorizontalScreenShift (const Pixel horizontalScreenShift)
Pixel GetVerticalScreenShift () const
void SetVerticalScreenShift (const Pixel verticalScreenShift)
double CalculateGridSpacingPixels () const
double GetPointToGridIndexRatio () const
GridIndex ToGridIndex (const Point< Spatial > &) const
 Converts a supplied point to a grid index More...
Point< Spatial > ToPoint (const GridIndex &) const
 Converts a supplied grid index to a point More...
std::array< Point< Spatial >, 4 > GetGridIndexRect (const GridIndex &) const
 Returns a rectangle representing the four corners of a supplied grid index More...
void SetStatus (const std::string &)
virtual void Event (ParserString id, std::shared_ptr< IParameter >=nullptr)
 This handles events sent by different parts of the program (e.g. configuration panels) More...
std::shared_ptr< ProgressorGetProgressor (const std::string &name)
std::shared_ptr< ProgressorAddProgressor (const std::string &name)
std::map< std::string, std::shared_ptr< Progressor > > GetProgressors () const

Protected Attributes

- Protected Attributes inherited from ObjectManager
std::vector< std::shared_ptr< IInteractiveObject > > m_InteractiveObjects
 Stores all boundraries More...
Spatial m_PointToGridIndexRatio
 This is a multiplier for grid spacing More...
std::map< std::string, std::shared_ptr< Progressor > > m_Progressors

Additional Inherited Members

- Public Types inherited from ObjectManager
enum  Mode : unsigned int {
  None, Create, Move, Rotate,
  Scale, Deform
 This describes all the things a Object can do More...
- Protected Member Functions inherited from ObjectManager
void ConfUpdate_SimulationSettings (std::shared_ptr< IParameter > simSettingsParamCollection)
 This handles updates resulting from changing one of the values of the simulation settings screen More...

Detailed Description

This overrides a few methods in the object manager class mainly to update the GUI

Member Function Documentation

bool GUIObjectManager::MouseMove ( IScreen screen,
const ScreenCoords sC 

Handler for a mouse move event

Reimplemented from ObjectManager.

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